Medium

Bouncy Castle Denial of Service (DoS)

  • Disclosed: 23.11.2023
  • Updated: 11.10.2026 13:20

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.bouncycastle:bcpkix-jdk18on < 1.73 1.73
Java / Kotlin (Maven) org.bouncycastle:bcprov-ext-jdk15on < 1.73 1.73
Java / Kotlin (Maven) org.bouncycastle:bcprov-ext-jdk16 < 1.73 1.73
Java / Kotlin (Maven) org.bouncycastle:bcprov-jdk14 < 1.73 1.73
Java / Kotlin (Maven) org.bouncycastle:bcprov-jdk15 < 1.73 1.73
Java / Kotlin (Maven) org.bouncycastle:bcprov-jdk15on all versions no fix
Java / Kotlin (Maven) org.bouncycastle:bcprov-jdk15to18 < 1.73 1.73
Java / Kotlin (Maven) org.bouncycastle:bcprov-jdk16 < 1.73 1.73
Java / Kotlin (Maven) org.bouncycastle:bcprov-jdk18on < 1.73 1.73

References

CVSS score 5.5/10
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness (CWE)
CWE-400
Platform
Java / Kotlin (Maven)
Package
org.bouncycastle:bcpkix-jdk18on, org.bouncycastle:bcprov-ext-jdk15on, org.bouncycastle:bcprov-ext-jdk16
Disclosed
23.11.2023
Updated
11.10.2026 13:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-wjxj-5m7g-mg7q - CC BY 4.0

Vulnerability history: org.bouncycastle:bcprov-jdk16

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
04.2021 11.2023
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 3

Disclosures per year

  1. 2021: 3
  2. 2022: 0
  3. 2023: 1
  4. 2024: 0
  5. 2025: 0
  6. 2026: 0
  1. Bouncy Castle Denial of Service (DoS) this entry
    Medium · 5.5 CVE-2023-33202 < 1.73 1.73
  2. Medium · 5.1 CVE-2020-15522 < 1.66 1.66
  3. High · 8.1 CVE-2020-28052 >= 1.65, < 1.67 1.67

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.