ADVISORIES

GitHub Advisory Database

GHSA-wjxj-5m7g-mg7q

Bouncy Castle Denial of Service (DoS)

Moderate CVE-2023-33202

Details

Bouncy Castle for Java before 1.73 contains a potential Denial of Service (DoS) issue within the Bouncy Castle org.bouncycastle.openssl.PEMParser class. This class parses OpenSSL PEM encoded streams containing X.509 certificates, PKCS8 encoded keys, and PKCS7 objects. Parsing a file that has crafted ASN.1 data through the PEMParser causes an OutOfMemoryError, which can enable a denial of service attack.

Affected packages

EcosystemPackageAffected versions
Mavenorg.bouncycastle:bcprov-ext-jdk16
All versions before 1.73 (fixed in 1.73)
Mavenorg.bouncycastle:bcprov-jdk14
All versions before 1.73 (fixed in 1.73)
Mavenorg.bouncycastle:bcprov-jdk15
All versions before 1.73 (fixed in 1.73)
Mavenorg.bouncycastle:bcprov-jdk15to18
All versions before 1.73 (fixed in 1.73)
Mavenorg.bouncycastle:bcprov-jdk16
All versions before 1.73 (fixed in 1.73)
Mavenorg.bouncycastle:bcprov-jdk15on
All versions, no fix listed
Mavenorg.bouncycastle:bcpkix-jdk18on
All versions before 1.73 (fixed in 1.73)
Mavenorg.bouncycastle:bcprov-ext-jdk15on
All versions before 1.73 (fixed in 1.73)
Mavenorg.bouncycastle:bcprov-jdk18on
All versions before 1.73 (fixed in 1.73)

References