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

High 7.5 Published Updated

Attackers can inject invisible data into signed structures by exploiting insufficient ASN.1 validation in DSA signatures, compromising data integrity.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2016-1000338?

CVE-2016-1000338 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 1 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-347

Which versions are affected by CVE-2016-1000338?

6 open source packages ship an affected version, including org.bouncycastle:bcprov-jdk14, org.bouncycastle:bcprov-jdk15 and org.bouncycastle:bcprov-jdk15on. It affects 5 products.

PackageAffectedFixed in
org.bouncycastle:bcprov-jdk14 MavenFrom 1.381.56
org.bouncycastle:bcprov-jdk14 MavenFrom 1.381.56
org.bouncycastle:bcprov-jdk15 MavenFrom 1.381.56
org.bouncycastle:bcprov-jdk15 MavenFrom 1.381.56
org.bouncycastle:bcprov-jdk15on MavenFrom 1.381.56
org.bouncycastle:bcprov-jdk15on MavenFrom 1.381.56

Products include Bouncycastle Legion-of-the-Bouncy-Castle-Java-Crytography-Api, Canonical Ubuntu Linux, Netapp 7-Mode Transition Tool, Redhat Satellite, Redhat Satellite Capsule.

How do I fix CVE-2016-1000338?

Upgrade org.bouncycastle:bcprov-jdk14 to 1.56 or later.

Is CVE-2016-1000338 being exploited?

There is no known exploitation of CVE-2016-1000338 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2016-1000338, GHSA-4vhj-98r6-424h, UBUNTU-CVE-2016-1000338.

Is CVE-2016-1000338 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free