Medium

Bouncy Castle Java Cryptography API vulnerable to DNS poisoning

  • Disclosed: 03.05.2024
  • Updated: 11.10.2026 13:20

An issue was discovered in the Bouncy Castle Crypto Package For Java before BC TLS Java 1.0.19 (ships with BC Java 1.78, BC Java (LTS) 2.73.6) and before BC FIPS TLS Java 1.0.19. When endpoint identification is enabled in the BCJSSE and an SSL socket is created without an explicit hostname (as happens with HttpsURLConnection), hostname verification could be performed against a DNS-resolved IP address in some situations, opening up a possibility of DNS poisoning.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.bouncycastle:bcprov-jdk12 >= 1.61, < 1.78 1.78
Java / Kotlin (Maven) org.bouncycastle:bcprov-jdk14 >= 1.61, < 1.78 1.78
Java / Kotlin (Maven) org.bouncycastle:bcprov-jdk15on >= 1.61, < 1.78 1.78
Java / Kotlin (Maven) org.bouncycastle:bcprov-jdk15to18 >= 1.61, < 1.78 1.78
Java / Kotlin (Maven) org.bouncycastle:bcprov-jdk18on >= 1.61, < 1.78 1.78
Java / Kotlin (Maven) org.bouncycastle:bcprov-lts8on < 2.73.6 2.73.6
Java / Kotlin (Maven) org.bouncycastle:bctls-fips < 1.0.19 1.0.19

References

CVSS score 5.9/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness (CWE)
CWE-297
Platform
Java / Kotlin (Maven)
Package
org.bouncycastle:bcprov-jdk12, org.bouncycastle:bcprov-jdk14, org.bouncycastle:bcprov-jdk15on
Disclosed
03.05.2024
Updated
11.10.2026 13:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-4h8f-2wvx-gg5w - CC BY 4.0

Vulnerability history: org.bouncycastle:bcprov-lts8on

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
05.2024 08.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 1
  • Medium 2

Disclosures per year

  1. 2024: 1
  2. 2025: 0
  3. 2026: 3
  1. High · 7.5 CVE-2026-13506 < 2.73.12 2.73.12
  2. Bouncy Castle Java Cryptography API vulnerable to DNS poisoning this entry
    Medium · 5.9 CVE-2024-34447 < 2.73.6 2.73.6

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.