Skip to main content
EPSS 0.1%top 99%

In Bouncy Castle for Java before 1.86, the streaming CMS AuthenticatedData parser accepted a message whose digestAlgorithm and authAttrs fields… (CVE-2026-71888)

0
High
Published: 10/03/2026 (10/03/2026, 09:31:18 UTC)
Source: GCVE Database

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
Scope
X
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 software

org.bouncycastle/bcprov-jdk15on
pkg:maven/org.bouncycastle/bcprov-jdk15on
Affected versions
<1.86

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/03/2026, 17:30:04 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses