CVE-2023-33202: Medium severity bouncycastle Bouncy Castle for Java vulnerability
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.
Other sources
Bouncy Castle for Java is vulnerable to a denial of service, caused by a flaw in the org.bouncycastle.openssl.PEMParser class. By sending a specially crafted file, a remote attacker could exploit this vulnerability to cause a denial of service condition.
— IBM
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.bouncycastle:bcprov-jdk16to a version that resolves this vulnerability.Fixed in 1.73 - Upgrade
Upgrade
maven/org.bouncycastle:bcprov-jdk15to18to a version that resolves this vulnerability.Fixed in 1.73 - Upgrade
Upgrade
maven/org.bouncycastle:bcprov-jdk15to a version that resolves this vulnerability.Fixed in 1.73 - Upgrade
Upgrade
maven/org.bouncycastle:bcprov-jdk14to a version that resolves this vulnerability.Fixed in 1.73 - Upgrade
Upgrade
maven/org.bouncycastle:bcprov-ext-jdk16to a version that resolves this vulnerability.Fixed in 1.73 - Upgrade
Upgrade
maven/org.bouncycastle:bcprov-ext-jdk15onto a version that resolves this vulnerability.Fixed in 1.73 - Upgrade
Upgrade
maven/org.bouncycastle:bcpkix-jdk18onto a version that resolves this vulnerability.Fixed in 1.73 - Upgrade
Upgrade
maven/org.bouncycastle:bcprov-jdk18onto a version that resolves this vulnerability.Fixed in 1.73 - Upgrade
Upgrade
redhat/bc-javato a version that resolves this vulnerability.Fixed in 1.7.3 - Upgrade
Upgrade
Bouncy Castle for Java (bc-java)to a version that resolves this vulnerability.Fixed in 1.73 - Upgrade
Upgrade
FIPS Java API (BC-FJA)to a version that resolves this vulnerability.Fixed in 1.0.2.4 - Compensating control
Mitigate the remote DoS risk by restricting access to systems/services that parse attacker-controlled PEM inputs (e.g., certificates/keys/PKCS7 objects) so remote attackers cannot submit crafted files to the org.bouncycastle.openssl.PEMParser.
Event History
Frequently Asked Questions
What is the vulnerability ID for this issue?
The vulnerability ID for this issue is CVE-2023-33202.
What is the severity of CVE-2023-33202?
The severity of CVE-2023-33202 is high with a CVSS score of 7.5.
What is the affected software?
The affected software is Bouncy Castle for Java before version 1.73.
What is the impact of this vulnerability?
This vulnerability can lead to a Denial of Service (DoS) attack by parsing a crafted file.
How can I fix CVE-2023-33202?
To fix CVE-2023-33202, update Bouncy Castle for Java to version 1.73 or later.