CVE-2026-71888

Description

A flaw was found in Bouncy Castle. In its Cryptographic Message Syntax (CMS) streaming parser, messages with mismatched attribute and algorithm fields are improperly handled, allowing attributes to be returned as valid even though they were not protected by the Message Authentication Code (MAC). A remote attacker capable of intercepting and modifying network traffic can exploit this flaw by inserting unauthorized attributes into an otherwise valid message. This can allow an attacker to manipulate application behavior and bypass security checks if the application relies on those attributes to make authorization or routing decisions.

Statement

A flaw was found in Bouncy Castle's Cryptographic Message Syntax (CMS) streaming parser (CMSAuthenticatedDataParser). When parsing an AuthenticatedData structure where the digestAlgorithm field is absent but authenticated attributes (authAttrs) are present, the parser validates the Message Authentication Code (MAC) over content alone while returning authAttrs as authenticated. An attacker capable of modifying messages in transit can inject arbitrary attributes, such as security classification labels, into valid messages without holding MAC keys. This allows attackers to manipulate application authorization or routing decisions reliant on these attributes.

Mitigation

Avoid using CMSAuthenticatedDataParser to stream untrusted CMS AuthenticatedData structures, or validate that messages containing authenticated attributes explicitly define a digestAlgorithm before trusting attribute values. Alternatively, process messages using non-streaming CMS parsers.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score7.5N/AN/A
Attack VectorNetworkN/AN/A
Attack ComplexityLowN/AN/A
Privileges RequiredNoneN/AN/A
User InteractionNoneN/AN/A
ScopeUnchangedN/AN/A
ConfidentialityNoneN/AN/A
Integrity ImpactHighN/AN/A
Availability ImpactNoneN/AN/A

Vector

Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Understanding the Weakness (CWE)

Access Control,Integrity

Technical Impact: Bypass Protection Mechanism; Modify Application Data

An attacker could package untrusted data with trusted data to bypass protection mechanisms to gain access to and possibly modify sensitive data.

Frequently Asked Questions

Want to get errata notifications? Sign up here.