In Bouncy Castle for Java before 1.86, the streaming CMS AuthenticatedData parser accepted a message whose digestAlgorithm and authAttrs fields… (CVE-2026-71888)
A vulnerability in Bouncy Castle for Java before version 1.86 allows an attacker to insert authenticated attributes into a CMS AuthenticatedData message without those attributes being covered by the message authentication code (MAC). This occurs because the parser accepted messages where the digestAlgorithm and authAttrs fields disagreed about the presence of authenticated attributes, violating RFC 5652 requirements. The issue affects multiple Bouncy Castle Java versions including LTS and FIPS variants. The vulnerability could allow attackers to influence application decisions based on attacker-chosen authenticated attributes, while the content itself remains protected by the MAC.
AI Analysis
Technical Summary
In Bouncy Castle for Java versions prior to 1.86, the streaming CMS AuthenticatedData parser incorrectly accepted messages where the digestAlgorithm and authAttrs fields were inconsistent regarding the presence of authenticated attributes. According to RFC 5652, authAttrs must be present if digestAlgorithm is present, and the MAC covers the DER encoding of authAttrs when present, or the eContent OCTET STRING directly when not. The parser chose verification based on digestAlgorithm alone, allowing messages with absent digestAlgorithm but present authAttrs to pass verification without the MAC covering the inserted authAttrs. This enables an attacker who can modify messages in transit to insert authenticated attributes such as ESSSecurityLabel without possessing the encryption or MAC keys. The vulnerability affects Bouncy Castle for Java before 1.86, including LTS versions before 2.73.13, and various FIPS series before specified patch versions. The issue is a variant of CVE-2026-59642 but affects a different case. The fix involves rejecting mismatched pairings during parsing and cross-checking fields after reading authAttrs.
Potential Impact
An attacker capable of modifying messages in transit can insert attacker-controlled authenticated attributes into CMS AuthenticatedData messages without those attributes being covered by the MAC. This can lead to applications making incorrect authorization, routing, or labeling decisions based on these unauthenticated attributes. The actual content remains protected by the MAC, so content integrity is not compromised. There is no indication of known exploits in the wild.
Mitigation Recommendations
A fix is available in Bouncy Castle for Java version 1.86 and later, as well as in LTS and FIPS versions starting from 2.73.13, 1.0.13, 2.0.13, 2.1.13, 2.0.8, and 2.1.8 respectively. Users should upgrade to these fixed versions to prevent exploitation. No additional mitigation steps are indicated by the vendor advisory.
In Bouncy Castle for Java before 1.86, the streaming CMS AuthenticatedData parser accepted a message whose digestAlgorithm and authAttrs fields… (CVE-2026-71888)
Description
A vulnerability in Bouncy Castle for Java before version 1.86 allows an attacker to insert authenticated attributes into a CMS AuthenticatedData message without those attributes being covered by the message authentication code (MAC). This occurs because the parser accepted messages where the digestAlgorithm and authAttrs fields disagreed about the presence of authenticated attributes, violating RFC 5652 requirements. The issue affects multiple Bouncy Castle Java versions including LTS and FIPS variants. The vulnerability could allow attackers to influence application decisions based on attacker-chosen authenticated attributes, while the content itself remains protected by the MAC.
CVSS v4.0
Affected software
pkg:maven/org.bouncycastle/bcprov-jdk15onRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In Bouncy Castle for Java versions prior to 1.86, the streaming CMS AuthenticatedData parser incorrectly accepted messages where the digestAlgorithm and authAttrs fields were inconsistent regarding the presence of authenticated attributes. According to RFC 5652, authAttrs must be present if digestAlgorithm is present, and the MAC covers the DER encoding of authAttrs when present, or the eContent OCTET STRING directly when not. The parser chose verification based on digestAlgorithm alone, allowing messages with absent digestAlgorithm but present authAttrs to pass verification without the MAC covering the inserted authAttrs. This enables an attacker who can modify messages in transit to insert authenticated attributes such as ESSSecurityLabel without possessing the encryption or MAC keys. The vulnerability affects Bouncy Castle for Java before 1.86, including LTS versions before 2.73.13, and various FIPS series before specified patch versions. The issue is a variant of CVE-2026-59642 but affects a different case. The fix involves rejecting mismatched pairings during parsing and cross-checking fields after reading authAttrs.
Potential Impact
An attacker capable of modifying messages in transit can insert attacker-controlled authenticated attributes into CMS AuthenticatedData messages without those attributes being covered by the MAC. This can lead to applications making incorrect authorization, routing, or labeling decisions based on these unauthenticated attributes. The actual content remains protected by the MAC, so content integrity is not compromised. There is no indication of known exploits in the wild.
Mitigation Recommendations
A fix is available in Bouncy Castle for Java version 1.86 and later, as well as in LTS and FIPS versions starting from 2.73.13, 1.0.13, 2.0.13, 2.1.13, 2.0.8, and 2.1.8 respectively. Users should upgrade to these fixed versions to prevent exploitation. No additional mitigation steps are indicated by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-j453-27jp-4cph
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-71888"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ac1397ba43b0b3b89d63cdf
Added to database: 10/03/2026, 17:20:59 UTC
Last enriched: 10/03/2026, 17:30:04 UTC
Last updated: 10/04/2026, 02:46:06 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.