GHSA-4vhj-98r6-424h

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

At a glance

Published
Updated
CVE
CVE-2016-1000338
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

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.

Affected packages

PackageVersions
Maven · org.bouncycastle:bcprov-jdk14introduced 1.38, fixed 1.56
Maven · org.bouncycastle:bcprov-jdk15introduced 1.38, fixed 1.56
Maven · org.bouncycastle:bcprov-jdk15onintroduced 1.38, fixed 1.56

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database