ADVISORIES

GitHub Advisory Database

GHSA-qcj7-g2j5-g7r3

In Bouncy Castle JCE Provider ECDSA does not fully validate ASN.1 encoding of signature on verification

Details

In the Bouncy Castle JCE Provider version 1.55 and earlier ECDSA 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

EcosystemPackageAffected versions
Mavenorg.bouncycastle:bcprov-jdk14
All versions before 1.56 (fixed in 1.56)
Mavenorg.bouncycastle:bcprov-jdk15
All versions before 1.56 (fixed in 1.56)
Mavenorg.bouncycastle:bcprov-jdk15on
All versions before 1.56 (fixed in 1.56)

References