cve.bz

CVE-2026-71888 legion of the bouncy castle inc.

8.7 highEPSS 0.1%

High (8.7) in legion of the bouncy castle inc.. EPSS 0.1% estimated probability of exploitation activity in the next 30 days.

On this page
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).

Severity

CVSS 4.0

8.7 high
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/U:Amber
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 1st percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-354 Improper Validation of Integrity Check Value
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-71888 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-71888?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-71888?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-71888 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • legion of the bouncy castle inc.:bc-fja
  • legion of the bouncy castle inc.:bc-java
  • legion of the bouncy castle inc.:bc-lts-java

Versions

From the CNA's record in the CVE List.

ProductAffected
Legion of the Bouncy Castle Inc. BC-JAVAbefore 1.86
Legion of the Bouncy Castle Inc. BC-JAVAfrom 1.70 before 1.86
Legion of the Bouncy Castle Inc. BC-LTS-JAVAfrom 2.73.0 before 2.73.13
Legion of the Bouncy Castle Inc. BC-FJAfrom 1.0.0 before 1.0.13
Legion of the Bouncy Castle Inc. BC-FJAfrom 2.0.0 before 2.0.13
Legion of the Bouncy Castle Inc. BC-FJAfrom 2.1.0 before 2.1.13
Legion of the Bouncy Castle Inc. BC-FJAfrom 2.0.0 before 2.0.8
Legion of the Bouncy Castle Inc. BC-FJAfrom 2.1.0 before 2.1.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13bouncycastleno fix listedDEBIAN-CVE-2026-71888
Debian14bouncycastle1.86-1DEBIAN-CVE-2026-71888
Ubuntu26.04:LTS, 26.10, Pro:16.04:LTS and 4 morebouncycastleno fix listedUBUNTU-CVE-2026-71888
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morebouncycastle1.86-150200.3.41.1SUSE-SU-2026:4797-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0bouncycastle1.86-160000.1.1SUSE-SU-2026:24461-1
openSUSELeap 16.0bouncycastle1.86-160000.1.1openSUSE-SU-2026:22169-1
openSUSETumbleweedbouncycastle1.86-1.1openSUSE-SU-2026:12090-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's 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.

Red Hat's 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.

ProductPackageStateAdvisory
OpenShift Developer Tools and Services 4.12ocp-tools-4/jenkins-rhel8:1792044326Fixed 2026-10-22RHSA-2026:88152
OpenShift Developer Tools and Services 4.13ocp-tools-4/jenkins-rhel8:1792044327Fixed 2026-10-22RHSA-2026:88149
OpenShift Developer Tools and Services 4.14ocp-tools-4/jenkins-rhel8:1792044382Fixed 2026-10-22RHSA-2026:88151
OpenShift Developer Tools and Services 4.15ocp-tools-4/jenkins-rhel8:1792044386Fixed 2026-10-22RHSA-2026:88150
OpenShift Developer Tools and Services 4.16ocp-tools-4/jenkins-rhel9:1792040287Fixed 2026-10-22RHSA-2026:88156
OpenShift Developer Tools and Services 4.17ocp-tools-4/jenkins-rhel9:1792040131Fixed 2026-10-22RHSA-2026:88159
OpenShift Developer Tools and Services 4.18ocp-tools-4/jenkins-rhel9:1792041514Fixed 2026-10-22RHSA-2026:88153
OpenShift Developer Tools and Services 4.19ocp-tools-4/jenkins-rhel9:1792040733Fixed 2026-10-22RHSA-2026:88158
OpenShift Developer Tools and Services 4.20ocp-tools-4/jenkins-rhel9:1792040081Fixed 2026-10-22RHSA-2026:88157
OpenShift Developer Tools and Services 4.21ocp-tools-4/jenkins-rhel9:1792040096Fixed 2026-10-22RHSA-2026:88155
OpenShift Developer Tools and ServicesjenkinsNot affected
OpenShift Developer Tools and Servicesjenkins-2-pluginsNot affected
Red Hat AMQ Broker 7bcpkix-jdk18onNot affected
Red Hat AMQ Broker 7bcutil-jdk18onNot affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/de-minimal-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/de-supported-rhel9Affected
Red Hat build of Apache Camel 4 for Quarkus 3bcpkix-jdk18onNot affected
Red Hat build of Apache Camel 4 for Quarkus 3bcutil-jdk18onNot affected
Red Hat build of Apache Camel for Spring Boot 4bcpkix-jdk18onNot affected
Red Hat build of Apache Camel for Spring Boot 4bcutil-jdk18onNot affected
32 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-71888.

Attack patterns (CAPEC)

  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-145 Checksum Spoofing Severity: Medium
  • CAPEC-463 Padding Oracle Crypto Attack Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON