Skip to content
RedCVE

CVE-2026-71888Legion OF The Bouncy Castle Inc BC-JAVA vulnerability

CVSS score

8.7

High

CVSS 4.0 from 91579145-5d7b-4cc5-b925-a0262ff19630

Exploit probability (EPSS)

0.11%

0.11% chance of exploitation in the next 30 days, higher than 1.39% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official description

In Bouncy Castle for Java before 1.86, the streaming CMS AuthenticatedData parser accepted a message whose digestAlgorithm and authAttrs fields disagreed about whether authenticated attributes were present. RFC 5652 sec. 9.1 pairs the two, requiring that authAttrs be present whenever digestAlgorithm is, and sec. 9.2 makes the MAC cover the DER encoding of authAttrs when they are present and the eContent OCTET STRING directly when they are not. CMSAuthenticatedDataParser has to choose between those two in its constructor, before it can reach authAttrs, which comes later in the SEQUENCE, so it chose on digestAlgorithm alone: for a message with digestAlgorithm absent but authAttrs present it verified the content MAC and then returned the attributes through getAuthAttrs() as though they had been authenticated, when the MAC had never covered them. An attacker able to modify a message in transit could insert an authenticated attribute, such as an RFC 2634 ESSSecurityLabel, into an otherwise valid message while holding neither the key-encryption key nor the content-MAC key, and an application taking an authorization, routing or labelling decision from those attributes would act on attacker-chosen values. The content itself remained MAC-bound. asn1.cms.AuthenticatedData now rejects the mismatched pairing when parsing and CMSAuthenticatedDataParser cross-checks the two fields once authAttrs is read. This is a variant of CVE-2026-59642, which bound the content to the MAC for messages that legitimately carry authAttrs, and which does not address this case. This issue also affects Bouncy Castle for Java LTS before 2.73.13, and Bouncy Castle for Java FIPS (BC-FJA) before bcpkix-fips 1.0.13 (1.0.X series), 2.0.13 (2.0.X series) and 2.1.13 (2.1.X series), and bcutil-fips 2.0.8 (2.0.X series) and 2.1.8 (2.1.X series).

Source: NVD · CNA: 91579145-5d7b-4cc5-b925-a0262ff19630

How to fix it, step by step

  1. Check whether you're affected

    Find every system running Legion of the Bouncy Castle Inc. BC-JAVA, Legion of the Bouncy Castle Inc. BC-LTS-JAVA, Legion of the Bouncy Castle Inc. BC-FJA and compare its version with the affected versions.

  2. Update to a fixed version

    • Update BC-FJA to 1.0.13, 2.0.8, 2.0.13, 2.1.8 or later, on the branch you run.
    • Update BC-JAVA to 1.86 or later.
    • Update BC-LTS-JAVA to 2.73.13 or later.
  3. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
None
Confidentiality
None
Integrity
High
Availability
None

Values in red make the vulnerability easier to exploit or more damaging. CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Amber

Affected products

Affected productsVersions
Legion of the Bouncy Castle Inc. BC-JAVA< 1.86 · ≥ 1.70, < 1.86
Legion of the Bouncy Castle Inc. BC-LTS-JAVA≥ 2.73.0, < 2.73.13
Legion of the Bouncy Castle Inc. BC-FJA≥ 1.0.0, < 1.0.13 · ≥ 2.0.0, < 2.0.13 · ≥ 2.1.0, < 2.1.13 · ≥ 2.0.0, < 2.0.8 · ≥ 2.1.0, < 2.1.8

Weakness

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-71888 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.1% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-71888?

CVE-2026-71888 has a CVSS 4.0 base score of 8.7 (high).

Which versions are affected?

Legion OF The Bouncy Castle Inc BC-JAVA (< 1.86; ≥ 1.70, < 1.86), Legion OF The Bouncy Castle Inc BC-LTS-JAVA (≥ 2.73.0, < 2.73.13), Legion OF The Bouncy Castle Inc BC-FJA (≥ 1.0.0, < 1.0.13; ≥ 2.0.0, < 2.0.13; ≥ 2.1.0, < 2.1.13; ≥ 2.0.0, < 2.0.8; ≥ 2.1.0, < 2.1.8)

Is there a patch for CVE-2026-71888?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.