Skip to main content

Bouncy Castle Java CVE-2026-59642

| EUVDEUVD-2026-52032 HIGH
Improper Validation of Integrity Check Value (CWE-354)
2026-08-03 bcorg GHSA-cfjh-c47f-gprf
8.7
CVSS 4.0 · Vendor: bcorg
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain or intercept CMS AuthenticatedData message with authAttrs
  2. Delivery
    Replace eContent bytes with attacker-controlled data
  3. Exploit
    Leave authAttrs and MAC field untouched
  4. Execution
    Deliver modified message to target application
  5. Persist
    Application calls getMac() comparison - passes
  6. Impact
    Tampered 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

BC-JAVA 0 <1.85
BC-FJA 2.1.0 <2.1.12
BC-FJA 1.0.0 <1.0.12
BC-LTS-JAVA 2.73.0 <2.73.12
BC-FJA 2.0.0 <2.0.12

Affected Packages

euvd bc_fja fix: 1.0.12, 2.0.12, 2.1.12
euvd bc_java fix: 1.85
euvd bc_lts_java fix: 2.73.12

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

Vendor (bcorg) PRIMARY 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
vuln.today AI 7.5 HIGH

Attacker needs only to supply crafted AuthenticatedData with authAttrs; no authentication, no complexity; integrity fully bypassed, no confidentiality or availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 7.5 HIGH

Primary rating from Vendor (bcorg).

CVSS VectorVendor: bcorg

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
High
dominant Java cryptography library used across enterprise, FIPS, and open-source ecosystems
Data Quality
8 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

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

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor 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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy