CVE-2026-71888
Published:October 03, 2026
Updated:October 09, 2026
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).
Affected Packages
https://github.com/bcgit/bc-lts-java.git (GITHUB):
Affected version(s) >=r2rv73dot0 <r2rv73dot13Fix Suggestion:
Update to version r2rv73dot13https://github.com/bcgit/bc-java.git (GITHUB):
Affected version(s) >=r1rv49 <r1rv86Fix Suggestion:
Update to version r1rv86org.bouncycastle:bcpkix-fips (JAVA):
Affected version(s) >=1.0.0 <1.0.13Fix Suggestion:
Update to version 1.0.13org.bouncycastle:bcpkix-fips (JAVA):
Affected version(s) >=2.1.8 <2.1.13Fix Suggestion:
Update to version 2.1.13org.bouncycastle:bcpkix-debug-jdk18on (JAVA):
Affected version(s) >=1.73 <1.86Fix Suggestion:
Update to version 1.86org.bouncycastle:bcpkix-fips (JAVA):
Affected version(s) >=2.0.7 <2.0.13Fix Suggestion:
Update to version 2.0.13org.bouncycastle:bcpkix-jdk18on (JAVA):
Affected version(s) >=1.71 <1.86Fix Suggestion:
Update to version 1.86org.bouncycastle:bcpkix-lts8on (JAVA):
Affected version(s) >=2.73.0 <2.73.13Fix Suggestion:
Update to version 2.73.13org.bouncycastle:bcpkix-debug-jdk15to18 (JAVA):
Affected version(s) >=1.73 <1.86Fix Suggestion:
Update to version 1.86org.bouncycastle:bcpkix-jdk15to18 (JAVA):
Affected version(s) >=1.63 <1.86Fix Suggestion:
Update to version 1.86org.bouncycastle:bcpkix-jdk14 (JAVA):
Affected version(s) >=1.47 <1.86Fix Suggestion:
Update to version 1.86Related Resources (10)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Weakness Type (CWE)
Improper Validation of Integrity Check Value
EPSS
Base Score:
0.11