Skip to content
Fencer Intel
high 7.5

CVE-2016-1000338 json

In Bouncy Castle JCE Provider it is possible to inject extra elements in the sequence making up the signature and still have it validate

published 8y ago modified 4mo ago also GHSA-4vhj-98r6-424h , EUVD-2018-0506

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.8%
EPSS 1.8% chance of exploitation in 30 days, percentile 78%
public exploits
0
none known

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.

Patch / fix

  • maven org.bouncycastle:bcprov-jdk14 1.56
  • maven org.bouncycastle:bcprov-jdk15 1.56
  • maven org.bouncycastle:bcprov-jdk15on 1.56
  • bouncycastle legion-of-the-bouncy-castle-java-crytography-api 1.56
  • bouncycastle Debian 14, Debian 13, Debian 12 1.56-1

debian advisories DEBIAN-CVE-2016-1000338

  • bouncycastle Ubuntu 14.04 LTS 1.49+dfsg-2ubuntu0.1

ubuntu advisories UBUNTU-CVE-2016-1000338

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • v8 satellite capsule 6.4 1:3.14.5.10-19.el7sat
  • tfm satellite capsule 6.4, satellite 6.4 4.0-3.el7sat
  • kobo satellite capsule 6.4, satellite 6.4 0.5.1-1.el7sat
  • pulp satellite capsule 6.4, satellite 6.4 2.16.4.1-1.el7sat
  • gofer satellite capsule 6.4, satellite 6.4 2.12.1-1.el7sat
  • ostree satellite capsule 6.4, satellite 6.4 2017.1-2.atomic.el7
  • SOAPpy satellite capsule 6.4, satellite 6.4 0.11.6-17.el7
  • foreman satellite capsule 6.4, satellite 6.4 1.18.0.37-1.el7sat

red hat advisories RHSA-2018:2927

  • bouncycastle openSUSE Tumbleweed 1.68-3.2

opensuse advisories openSUSE-SU-2024:10661-1

Is CVE-2016-1000338 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2016-1000338 updated cvss 4.8

bouncycastle: DSA does not fully validate ASN.1 encoding during signature verification allowing for injection of unsigned data

  • Red Hat JBoss Data Virtualization 6 bouncycastle bouncycastle
    affected: no fix planned “Out of support scope”
  • Red Hat JBoss Fuse 6 bouncycastle bouncycastle Red Hat Software Collections rh-eclipse46-bouncycastle, rh-eclipse46-bouncycastle-javadoc
    affected: no fix planned “Will not fix”
  • Red Hat Fuse 7
    fixed: vendor fix RHSA-2018:2669
  • Red Hat Satellite 6.4 tfm 4.0-3.el7sat, kobo 0.5.1-1.el7sat, SOAPpy 0.11.6-17.el7, candlepin 2.4.8-1.el7, gofer 2.12.1-1.el7sat, liquibase 3.1.0-1.el7, +383 more Red Hat Satellite Capsule 6.4 tfm 4.0-3.el7sat, kobo 0.5.1-1.el7sat, SOAPpy 0.11.6-17.el7, gofer 2.12.1-1.el7sat, katello 3.7.0-8.el7sat, pulp 2.16.4.1-1.el7sat, +217 more
    fixed: vendor fix RHSA-2018:2927
  • Red Hat JBoss Developer Studio 11 bouncycastle bouncycastle Red Hat JBoss Data Grid 7 bouncycastle bouncycastle Red Hat JBoss Enterprise Application Platform 7 bouncycastle bouncycastle Red Hat JBoss Fuse Integration Service 2 bouncycastle bouncycastle Red Hat OpenShift Application Runtimes bouncycastle bouncycastle Red Hat Single Sign-On 7 bouncycastle bouncycastle
    +2 more products
    Red Hat Subscription Asset Manager bouncycastle Red Hat Virtualization 4 eap7-bouncycastle
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.79% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:P/A:N
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected packages

ecosystem package affected fixed in
maven org.bouncycastle:bcprov-jdk14
>=1.38, <1.56
1.56
maven org.bouncycastle:bcprov-jdk15
>=1.38, <1.56
1.56
maven org.bouncycastle:bcprov-jdk15on
>=1.38, <1.56
1.56

Classification

Weakness
  • CWE-347 Improper Verification of Cryptographic Signature

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.