8.7High

CVE-2026-12860RSA PKCS#1 verification skips last two hash bytes in NULL-omitted path

Legion of the Bouncy Castle Inc. BC-JAVA; Legion of the Bouncy Castle Inc. BC-LTS-JAVA Published: (3 months ago)

Description

In Bouncy Castle for Java before 1.85, RSA PKCS#1 verification skips last two hash bytes in NULL-omitted path. This issue also affects Bouncy Castle for Java LTS before 2.73.12.

Weakness (CWE): CWE-347

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
bouncycastle bc-java < 1.85
bouncycastle bouncy castle for java lts ≤ 2.73.11
Legion of the Bouncy Castle Inc. BC-JAVA < 1.85
Legion of the Bouncy Castle Inc. BC-LTS-JAVA 2.73.0 – < 2.73.12

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:bouncycastle:bc-java:*:*:*:*:*:*:*:* < 1.85
  • cpe:2.3:a:bouncycastle:bouncy_castle_for_java_lts:*:*:*:*:*:*:*:* ≤ 2.73.11