CVE-2023-33202
Description
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.)
How to fix
- bouncycastle bouncy_castle_for_java1.73 or later
- bouncycastle fips_java_api1.0.2.4 or later
- org.bouncycastle:bcprov-ext-jdk161.73 or later
- org.bouncycastle:bcprov-jdk141.73 or later
- org.bouncycastle:bcprov-jdk151.73 or later
- org.bouncycastle:bcprov-jdk15to181.73 or later
- org.bouncycastle:bcprov-jdk161.73 or later
- org.bouncycastle:bcpkix-jdk18on1.73 or later
- org.bouncycastle:bcprov-ext-jdk15on1.73 or later
- org.bouncycastle:bcprov-jdk18on1.73 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| bouncycastle bouncy_castle_for_java | v < 1.73 | 1.73 |
| bouncycastle fips_java_api | v < 1.0.2.4 | 1.0.2.4 |
| org.bouncycastle:bcprov-ext-jdk16Maven | v < 1.73 | 1.73 |
| org.bouncycastle:bcprov-jdk14Maven | v < 1.73 | 1.73 |
| org.bouncycastle:bcprov-jdk15Maven | v < 1.73 | 1.73 |
| org.bouncycastle:bcprov-jdk15to18Maven | v < 1.73 | 1.73 |
| org.bouncycastle:bcprov-jdk16Maven | v < 1.73 | 1.73 |
| org.bouncycastle:bcprov-jdk15onMaven | No range specified | — |
| org.bouncycastle:bcpkix-jdk18onMaven | v < 1.73 | 1.73 |
| org.bouncycastle:bcprov-ext-jdk15onMaven | v < 1.73 | 1.73 |
| org.bouncycastle:bcprov-jdk18onMaven | v < 1.73 | 1.73 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.