Live threats

All CVEs / Bouncycastle

CVE-2023-33202Bouncycastle Bouncy Castle For Java

Medium 5.5

Priority
33
CVSS 3.1
5.5
EPSS
0.3%
probability of exploitation in 30 days · percentile 20
Auth required
Yes
Published
Nov 23, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

What happens

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.)

Original NVD text.

What to do

  1. Apply the vendor's security update for Bouncy Castle For Java.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.bouncycastle:bcpkix-jdk18on < 1.73 1.73 —
Maven org.bouncycastle:bcprov-ext-jdk15on < 1.73 1.73 —
Maven org.bouncycastle:bcprov-ext-jdk16 < 1.73 1.73 —
Maven org.bouncycastle:bcprov-jdk14 < 1.73 1.73 —
Maven org.bouncycastle:bcprov-jdk15 < 1.73 1.73 —
Maven org.bouncycastle:bcprov-jdk15on all no fixed version —
Maven org.bouncycastle:bcprov-jdk15to18 < 1.73 1.73 —
Maven org.bouncycastle:bcprov-jdk16 < 1.73 1.73 —
Maven org.bouncycastle:bcprov-jdk18on < 1.73 1.73 —

Per OSV / GitHub Advisories (GHSA-wjxj-5m7g-mg7q). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
bouncycastlebouncy_castle_for_java< 1.73
bouncycastlefips_java_api< 1.0.2.4

Official sources

References

Links published by the sources. Open them with care.