High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-1000338
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:09 UTC · Revision 1
Source evidence
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.
osv:CVE-2016-1000338
Complete source record
{
"id": "2a1f46f5d763a9d0134ef8f2428749004b96f72c6940ace042f4d74f69d3788a",
"url": "https://osv.dev/vulnerability/CVE-2016-1000338",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-1000338",
"summary": "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.",
"evidence": "osv:CVE-2016-1000338",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2016-1000338",
"aliases": [
"CVE-2016-1000338",
"GHSA-4vhj-98r6-424h"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/bcgit/bc-java",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "996763c72e128cd677fcd97d3fa74beb2c12124b"
},
{
"fixed": "b0c3ce99d43d73a096268831d0d120ffc89eac7f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:bouncycastle:legion-of-the-bouncy-castle-java-crytography-api:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.38"
},
{
"fixed": "1.56"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "b0c3ce99d43d73a096268831d0d120ffc89eac7f"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"r1rv55",
"r1rv54",
"r1rv53",
"r1rv52",
"r1rv51",
"r1rv50",
"r1rv49"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-1000338.json",
"vanir_signatures": [
{
"id": "CVE-2016-1000338-087c7fa8",
"digest": {
"length": 2322,
"function_hash": "260934301005839087771033825261480613861"
},
"source": "https://github.com/bcgit/bc-java/commit/b0c3ce99d43d73a096268831d0d120ffc89eac7f",
"target": {
"file": "prov/src/test/java/org/bouncycastle/jce/provider/test/DSATest.java",
"function": "performTest"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2016-1000338-7c04278f",
"digest": {
"threshold": 0.9,
"line_hashes": [
"136163138208565596251691075970191609612",
"107562756255838380340501290306204437774",
"256405273294590351025306411110688622024",
"321391742634389090900092687248037489853",
"6668448620659695156447218389951777055",
"114414081459311079942728053419609401083",
"224667266301163910456003187272837519895",
"332764780958810242807759347728695018005",
"2754744943816587054499795256365031272",
"54339207175021658509884097720332228201",
"260804928531546614162744774821933798241",
"78059865186365016316398972156821482959",
"197034695221731228794406326079488881854"
]
},
"source": "https://github.com/bcgit/bc-java/commit/b0c3ce99d43d73a096268831d0d120ffc89eac7f",
"target": {
"file": "prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/DSASigner.java"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2016-1000338-9c489c5a",
"digest": {
"length": 237,
"function_hash": "62843566931630879095861907111734894785"
},
"source": "https://github.com/bcgit/bc-java/commit/b0c3ce99d43d73a096268831d0d120ffc89eac7f",
"target": {
"file": "prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/DSASigner.java",
"function": "derDecode"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2016-1000338-d475fda9",
"digest": {
"threshold": 0.9,
"line_hashes": [
"27619101407773283894022340957986395790",
"53925406762360604861398560861262849999",
"216990679076247254168542336595971957581",
"14297879978164554187003311429379829455",
"11867573160650489211141619707597149843",
"207007376803811096500197258371319649111",
"312819499243767890488137211355596467932"
]
},
"source": "https://github.com/bcgit/bc-java/commit/b0c3ce99d43d73a096268831d0d120ffc89eac7f",
"target": {
"file": "prov/src/test/java/org/bouncycastle/jce/provider/test/DSATest.java"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:13:35Z"
}
}
],
"modified": "2026-10-20T13:13:35.832819791Z",
"provider": "osv",
"references": [
"https://access.redhat.com/errata/RHSA-2018:2669",
"https://access.redhat.com/errata/RHSA-2018:2927",
"https://lists.apache.org/thread.html/708d94141126eac03011144a971a6411fcac16d9c248d1d535a39451%40%3Csolr-user.lucene.apache.org%3E",
"https://lists.debian.org/debian-lts-announce/2018/07/msg00009.html",
"https://security.netapp.com/advisory/ntap-20231006-0011/",
"https://usn.ubuntu.com/3727-1/",
"https://www.oracle.com/security-alerts/cpuoct2020.html",
"https://github.com/bcgit/bc-java/commit/b0c3ce99d43d73a096268831d0d120ffc89eac7f#diff-3679f5a9d2b939d0d3ee1601a7774fb0"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:*:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"extracted_events": [
{
"range": [
{
"introduced": "14.04"
},
{
"last_affected": "14.04"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:a:redhat:satellite:6.4:-:*:*:*:*:*:*"
],
"vendor_product": "redhat:satellite",
"extracted_events": [
{
"range": [
{
"introduced": "6.4-NA"
},
{
"last_affected": "6.4-NA"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:a:redhat:satellite_capsule:6.4:*:*:*:*:*:*:*"
],
"vendor_product": "redhat:satellite_capsule",
"extracted_events": [
{
"range": [
{
"introduced": "6.4"
},
{
"last_affected": "6.4"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2016-1000338",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387344,
"published_at": "2018-06-01T20:29:00.217+00:00"
}