Bouncy Castle Denial of Service (DoS)
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.bouncycastle:bcprov-ext-jdk16 Maven |
|
|
| org.bouncycastle:bcprov-jdk14 Maven |
|
|
| org.bouncycastle:bcprov-jdk15 |
| Product | Affected | Fixed in |
|---|---|---|
| org.bouncycastle:bcprov-ext-jdk16 Maven |
|
|
| org.bouncycastle:bcprov-jdk14 Maven |
|
|
| org.bouncycastle:bcprov-jdk15 |
|
|
| org.bouncycastle:bcprov-jdk15to18 Maven |
|
|
| org.bouncycastle:bcprov-jdk16 Maven |
|
|
| org.bouncycastle:bcprov-jdk15on Maven |
| No fix yet |
| org.bouncycastle:bcpkix-jdk18on Maven |
|
|
| org.bouncycastle:bcprov-ext-jdk15on Maven |
|
|
| org.bouncycastle:bcprov-jdk18on Maven |
|
|
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. (For users of the FIPS Java API: BC-FJA 1.0.2.3 and earlier are affected; BC-FJA 1.0.2.4 is fixed.)
From the CVE record · mitre
Bouncy Castle's PEMParser can run out of memory when it parses a file containing crafted ASN.1 data. An attacker could cause a denial of service if an application parses such a file; the input does not specify whether network access, authentication, or user interaction is required.
Check applications using the listed Bouncy Castle Maven packages before 1.73, bcprov-jdk15on at any version, or BC-FJA 1.0.2.3 and earlier.