CVE-2026-59642
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIn 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).
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceIn Bouncy Castle for Java, the CMS AuthenticatedData implementation fails to properly bind the message content to the Message Authentication Code (MAC) when authenticated attributes (authAttrs) are present. This allows attackers to potentially replace or modify the content while keeping a valid MAC, bypassing authentication integrity checks.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- Authentication
- X
- User interaction
- 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
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Locate Bouncy Castle Java library in the environmentSearch for bcprov*.jar, bcpkix*.jar, or bouncycastle dependencies in application classpaths, lib folders, Maven/Gradle dependencies, or container imagesAffected if Bouncy Castle Java library is present in the environment
-
Determine the installed Bouncy Castle versionInspect the MANIFEST.MF file inside the bcprov*.jar or bcpkix*.jar for the Implementation-Version attribute, or check the dependency declaration in build files (pom.xml, build.gradle)Affected if The version cannot be determined or is below 1.85 for non-LTS, below 2.73.12 for LTS 2.x, below 1.0.12/2.0.12/2.1.12 for FIPS variants
-
Identify CMS AuthenticatedData usage with authAttrsReview application code for org.bouncycastle.cms.CMSAuthenticatedData usage, specifically look for calls to addAuthAttributes() or AuthenticatedDataGenerator that include authentication attributesAffected if The application processes CMS AuthenticatedData messages that include authentication attributes (authAttrs)
-
Compare installed version to fixed releasesCross-reference the identified version against the known fixed versions: 1.85+, LTS 2.73.12+, bcpkix-fips 1.0.12+, 2.0.12+, or 2.1.12+Affected if The installed version is below the corresponding fixed version for the detected product line
The environment is affected if it runs a Bouncy Castle Java version below the fixed releases AND processes CMS AuthenticatedData that includes authentication attributes.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade Bouncy Castle Java library to version 1.85+, LTS 2.73.12+, or the appropriate FIPS version (bcpkix-fips 1.0.12+, 2.0.12+, or 2.1.12+) to resolve the MAC binding vulnerability.
Bouncy Castle Java: 1.85+, 2.73.12+ (LTS) | BC-FIPS: bcpkix-fips 1.0.12+, 2.0.12+, or 2.1.12+ depending on series
- 1. Identify the current Bouncy Castle for Java library version in your project by checking your dependency management system (Maven pom.xml, Gradle build.gradle, or equivalent)
- 2. Determine which Bouncy Castle variant you are using: bouncy-castle (non-FIPS), bouncy-castle-provider (BC-FIPS), or bouncy-castle-fips (BC-FJA)
- 3. For non-FIPS users: upgrade to version 1.85 or later (or 2.73.12 or later for LTS)
- 4. For BC-FIPS users on 1.0.X series: upgrade to bcpkix-fips version 1.0.12 or later
- 5. For BC-FIPS users on 2.0.X series: upgrade to bcpkix-fips version 2.0.12 or later
- 6. For BC-FIPS users on 2.1.X series: upgrade to bcpkix-fips version 2.1.12 or later
- 7. Update your dependency manager (mvn clean install or gradle build) to pull the new version
- 8. Rebuild and run your application's test suite to verify compatibility
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,752.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-59642 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-59642 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data