Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain or intercept CMS AuthenticatedData message with authAttrs
-
DeliveryReplace eContent bytes with attacker-controlled data
-
ExploitLeave authAttrs and MAC field untouched
-
ExecutionDeliver modified message to target application
-
PersistApplication calls getMac() comparison - passes
-
ImpactTampered content accepted as integrity-verified
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Integrity verification
|
| Exploitation Conditions | Exploitation requires that the target application uses the Bouncy Castle CMS AuthenticatedData API and processes messages that contain authenticated attributes (authAttrs). The flaw is inert when authAttrs are absent - messages without authenticated attributes MAC the content directly and are explicitly stated as unaffected. The attacker must be able to deliver a crafted or modified AuthenticatedData blob to the vulnerable application, either by acting as the message originator, by intercepting messages in transit, or by substituting stored messages. No authentication to the target system is required (PR:N in the CVSS vector). The flaw affects both the in-memory CMSAuthenticatedData and the streaming CMSAuthenticatedDataParser processing paths. Applications that only use Bouncy Castle for other cryptographic operations (encryption, signing, key exchange) and do not process CMS AuthenticatedData are not affected. |
| Impact | The CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:N/UI:N/VI:H) reflects a high-severity integrity bypass exploitable without authentication or preconditions, which aligns with the nature of the flaw: any application that processes externally supplied CMS AuthenticatedData messages with authAttrs is vulnerable without special configuration. The VI:H rating is well-justified - the entire purpose of AuthenticatedData is content integrity assurance, and that assurance is silently absent. No EPSS data was provided, but given no KEV listing and no known POC, real-world exploitation likelihood is currently lower than the CVSS score implies. The attack requires an adversary capable of delivering a crafted CMS AuthenticatedData blob to the target application, which could be a MITM scenario, a malicious sender, or a stored-and-forwarded message. Notably, the CVSS S:U (scope unchanged) and VC:N/VA:N correctly reflect that confidentiality and availability are unaffected - AuthenticatedData does not encrypt content. The Information Disclosure tag in the source data appears to be a mis-categorization; the actual impact is integrity-only. The U:Amber urgency supplemental metric signals elevated but not critical response priority. |
| Exploit ScenarioDerived | An attacker positioned to intercept or inject CMS AuthenticatedData messages - such as in a MITM scenario, a compromised message relay, or by acting as a malicious sender - replaces the eContent field with arbitrary bytes (e.g., a malicious payload or falsified business data) while leaving the authAttrs block and MAC value unchanged. When the recipient application calls recipient.getMac() and compares it to ad.getMac(), the comparison succeeds because the MAC over authAttrs is still valid; the application accepts the tampered content as cryptographically authenticated. No public exploit code is confirmed at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 03, 2026
CMS AuthenticatedData integrity verification in Bouncy Castle for Java is bypassable when authenticated attributes (authAttrs) are present, allowing an attacker to substitute arbitrary content while the recipient MAC check passes without error. Affected are bc-java before 1.85, bc-lts-java before 2.73.12, and BC-FJA across the 1.0.x, 2.0.x, and 2.1.x series - all widely deployed in Java enterprise and FIPS environments. The CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N/VI:H) reflects unauthenticated remote exploitation with high integrity impact; no public exploit or CISA KEV listing is confirmed at time of analysis.
RemediationAI
Upgrade to bc-java 1.85 or later, bc-lts-java 2.73.12 or later, or the appropriate BC-FJA series fix: bcpkix-fips 1.0.12 (1.0.x series), 2.0.12 (2.0.x series), or 2.1.12 (2.1.x series). The upstream fix is documented at https://github.com/bcgit/bc-java/commit/2117f316a5a47308f3e569695a6592b16aac0dd7 and the advisory at https://github.com/bcgit/bc-java/wiki/CVE-2026-59642. The fix makes RecipientInformation.getMac() automatically verify the recovered content digest against the messageDigest authenticated attribute, throwing a CMSRuntimeException on mismatch, and applies to both the in-memory CMSAuthenticatedData and streaming CMSAuthenticatedDataParser paths. If immediate upgrade is not possible, a compensating control is to add application-level content digest verification: after calling getMac(), explicitly retrieve the messageDigest from the authenticated attributes and compare it against a freshly computed digest of the received eContent - this mirrors what the fixed library now performs internally. Note this workaround requires application-layer code changes and is error-prone; upgrading is strongly preferred. Messages without authenticated attributes are unaffected.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CMS AuthenticatedData is defined in RFC 5652 Section 9, providing data authentication without encryption. When authenticated attributes (authAttrs) are present, the MAC is computed over DER-encoded authAttrs - which must include a messageDigest attribute carrying a hash of the encapsulated content (eContent). This two-step binding means the recipient must: (1) verify the MAC over authAttrs, and (2) independently recompute the digest over eContent and compare it to the messageDigest attribute. The Bouncy Castle implementation (CPE: cpe:2.3:a:legion_of_the_bouncy_castle_inc.:bc-java, bc-lts-java, bc-fja) exposed the computed digest via RecipientInformation.getContentDigest() but never performed step 2 - the comparison against the messageDigest attribute. As a result, the canonical verification idiom Arrays.equals(ad.getMac(), recipient.getMac()) succeeded even when eContent had been replaced, because the MAC over authAttrs remained valid. CWE-354 (Improper Validation of Integrity Check Value) precisely describes this root cause: the library verified the MAC without validating the integrity of the value that MAC was supposed to protect.
Know when Java gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Attacker needs only to supply crafted AuthenticatedData with authAttrs; no authentication, no complexity; integrity fully bypassed, no confidentiality or availability impact.
Primary rating from Vendor (bcorg).
CVSS VectorVendor: bcorg
DescriptionCVE.org
In Bouncy Castle for Java before 1.85, CMS AuthenticatedData content not bound to MAC when authAttrs present. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bcpkix-fips 1.0.12 (1.0.X series), 2.0.12 (2.0.X series) and 2.1.12 (2.1.X series).
Executive ViewAI
CVE-2026-59642 affects Bouncy Castle cryptographic libraries widely deployed in Java enterprise environments, allowing unauthenticated attackers to bypass authenticated data integrity checks and substitute content without detection. This integrity verification bypass compromises the trustworthiness of digitally signed transactions and authenticated communications, directly impacting regulatory compliance and data integrity assurance. No public exploit identified at time of analysis, but rapid patching is critical given the high severity and broad organizational footprint.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in Bouncy Castle for Java Cryptographic Vulnerabilities
View all 23Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
Same technique Information Disclosure
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| SUSE Linux Enterprise Desktop 15 SP7 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP7 | Affected |
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| openSUSE Leap 16.0 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP4 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP6 | Affected |
| SUSE Linux Enterprise Server 15 SP4 | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP5 | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP6 | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Affected |
| SUSE Manager Proxy 4.3 | Affected |
| SUSE Manager Retail Branch Server 4.3 | Affected |
| SUSE Manager Server 4.3 | Affected |
| SUSE Enterprise Storage 7 | Affected |
| SUSE Enterprise Storage 7.1 | Affected |
| SUSE Linux Enterprise Desktop 15 SP2 | Affected |
| SUSE Linux Enterprise Desktop 15 SP3 | Affected |
| SUSE Linux Enterprise Desktop 15 SP4 | Affected |
| SUSE Linux Enterprise Desktop 15 SP5 | Affected |
| SUSE Linux Enterprise Desktop 15 SP6 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP2 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP3 | Affected |
| SUSE Linux Enterprise Real Time 15 SP2 | Affected |
| SUSE Linux Enterprise Real Time 15 SP3 | Affected |
| SUSE Linux Enterprise Real Time 15 SP4 | Affected |
| SUSE Linux Enterprise Server 15 SP2 | Affected |
| SUSE Linux Enterprise Server 15 SP2-BCL | Affected |
| SUSE Linux Enterprise Server 15 SP2-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP3 | Affected |
| SUSE Linux Enterprise Server 15 SP3-BCL | Affected |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Affected |
| SUSE Manager Proxy 4.1 | Affected |
| SUSE Manager Proxy 4.2 | Affected |
| SUSE Manager Retail Branch Server 4.1 | Affected |
| SUSE Manager Retail Branch Server 4.2 | Affected |
| SUSE Manager Server 4.1 | Affected |
| SUSE Manager Server 4.2 | Affected |
| openSUSE Leap 15.3 | Affected |
| openSUSE Leap 15.4 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-52032
GHSA-cfjh-c47f-gprf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB