Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.bouncycastle/bctls-lts8on
  4. ›
  5. CVE-2026-59638

CVE-2026-59638: JSSE hostname verifier CN-fallback enabled by default despite documented opt-in

August 3, 2026 (updated September 16, 2026)

Affects Bouncy Castle for Java LTS before 2.73.12. HostnameUtil gates the fallback that matches the certificate CN when no dNSName SAN is present on a property whose unset default the code treats as enabled, contrary to its documentation. Because name-constraint processing only constrains SAN entries of the constrained type, a leaf with no dNSName SAN passes a dNSName-constrained chain, and the verifier then matches the attacker-chosen CN against the target hostname.

References

  • github.com/bcgit/bc-java/commit/5ac55351cd1a8a7184d41c96a7ee87df0770240a
  • github.com/bcgit/bc-java/commit/799bd15320a6310a447863638aa3df64acef829b
  • github.com/bcgit/bc-java/wiki/CVE-2026-59638
  • nvd.nist.gov/vuln/detail/CVE-2026-59638

Code Behaviors & Features

Detect and mitigate CVE-2026-59638 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.73.0 before 2.73.12

Fixed versions

  • 2.73.12

Solution

Upgrade to version 2.73.12 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-297: Improper Validation of Certificate with Host Mismatch

Source file

maven/org.bouncycastle/bctls-lts8on/CVE-2026-59638.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:19:48 +0000.