CVE-2016-1000338

Source
https://cve.org/CVERecord?id=CVE-2016-1000338
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2016-1000338.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2016-1000338
Aliases
Downstream
Related
Published
2018-06-01T20:29:00.217Z
Modified
2026-01-31T04:35:25.526545Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
[none]
Details

In Bouncy Castle JCE Provider version 1.55 and earlier the DSA does not fully validate ASN.1 encoding of signature on verification. It is possible to inject extra elements in the sequence making up the signature and still have it validate, which in some cases may allow the introduction of 'invisible' data into a signed structure.

References

Affected packages

Git / github.com/bcgit/bc-java

Affected ranges

Type
GIT
Repo
https://github.com/bcgit/bc-java
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2016-1000338.json"
vanir_signatures
[
    {
        "signature_type": "Function",
        "source": "https://github.com/bcgit/bc-java/commit/b0c3ce99d43d73a096268831d0d120ffc89eac7f",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "prov/src/test/java/org/bouncycastle/jce/provider/test/DSATest.java",
            "function": "performTest"
        },
        "id": "CVE-2016-1000338-087c7fa8",
        "digest": {
            "length": 2322.0,
            "function_hash": "260934301005839087771033825261480613861"
        }
    },
    {
        "signature_type": "Line",
        "source": "https://github.com/bcgit/bc-java/commit/b0c3ce99d43d73a096268831d0d120ffc89eac7f",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/DSASigner.java"
        },
        "id": "CVE-2016-1000338-7c04278f",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "136163138208565596251691075970191609612",
                "107562756255838380340501290306204437774",
                "256405273294590351025306411110688622024",
                "321391742634389090900092687248037489853",
                "6668448620659695156447218389951777055",
                "114414081459311079942728053419609401083",
                "224667266301163910456003187272837519895",
                "332764780958810242807759347728695018005",
                "2754744943816587054499795256365031272",
                "54339207175021658509884097720332228201",
                "260804928531546614162744774821933798241",
                "78059865186365016316398972156821482959",
                "197034695221731228794406326079488881854"
            ]
        }
    },
    {
        "signature_type": "Function",
        "source": "https://github.com/bcgit/bc-java/commit/b0c3ce99d43d73a096268831d0d120ffc89eac7f",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/DSASigner.java",
            "function": "derDecode"
        },
        "id": "CVE-2016-1000338-9c489c5a",
        "digest": {
            "length": 237.0,
            "function_hash": "62843566931630879095861907111734894785"
        }
    },
    {
        "signature_type": "Line",
        "source": "https://github.com/bcgit/bc-java/commit/b0c3ce99d43d73a096268831d0d120ffc89eac7f",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "prov/src/test/java/org/bouncycastle/jce/provider/test/DSATest.java"
        },
        "id": "CVE-2016-1000338-d475fda9",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "27619101407773283894022340957986395790",
                "53925406762360604861398560861262849999",
                "216990679076247254168542336595971957581",
                "14297879978164554187003311429379829455",
                "11867573160650489211141619707597149843",
                "207007376803811096500197258371319649111",
                "312819499243767890488137211355596467932"
            ]
        }
    }
]