In Bouncy Castle for Java before 1.85, CCM-family modes write plaintext to caller buffer before tag check. (CVE-2026-58061)
Bouncy Castle for Java versions prior to 1.85, including certain LTS and FIPS releases, have a vulnerability in CCM-family encryption modes where plaintext is written to the caller's buffer before the authentication tag is verified. This behavior can lead to potential exposure of plaintext data if the tag check fails.
AI Analysis
Technical Summary
The vulnerability (CVE-2026-58061) affects Bouncy Castle for Java before version 1.85, as well as Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS versions prior to 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series), and 2.1.3 (2.1.X series). In CCM-family modes, the implementation writes plaintext data to the caller's buffer before performing the authentication tag check. This premature writing can result in exposure of unauthenticated plaintext data if the tag verification fails, violating the expected security guarantees of authenticated encryption. The vulnerability is categorized under CWE-354 (Improper Verification of Cryptographic Signature). No exploits in the wild are currently known.
Potential Impact
The vulnerability allows plaintext data to be written to the caller's buffer before the authentication tag is verified, potentially exposing unauthenticated plaintext if the tag check fails. This undermines the integrity and authenticity guarantees of CCM-mode encryption, which could lead to security issues in applications relying on Bouncy Castle for secure communications or data protection.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official patches or fixes are referenced in the provided data. Users should monitor Bouncy Castle vendor advisories for updates and apply official fixes once available. Until then, avoid using affected versions in security-critical contexts or implement additional application-level checks if feasible.
In Bouncy Castle for Java before 1.85, CCM-family modes write plaintext to caller buffer before tag check. (CVE-2026-58061)
Description
Bouncy Castle for Java versions prior to 1.85, including certain LTS and FIPS releases, have a vulnerability in CCM-family encryption modes where plaintext is written to the caller's buffer before the authentication tag is verified. This behavior can lead to potential exposure of plaintext data if the tag check fails.
CVSS v4.0
Affected software
pkg:maven/org.bouncycastle/bcprov-jdk15onRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability (CVE-2026-58061) affects Bouncy Castle for Java before version 1.85, as well as Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS versions prior to 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series), and 2.1.3 (2.1.X series). In CCM-family modes, the implementation writes plaintext data to the caller's buffer before performing the authentication tag check. This premature writing can result in exposure of unauthenticated plaintext data if the tag verification fails, violating the expected security guarantees of authenticated encryption. The vulnerability is categorized under CWE-354 (Improper Verification of Cryptographic Signature). No exploits in the wild are currently known.
Potential Impact
The vulnerability allows plaintext data to be written to the caller's buffer before the authentication tag is verified, potentially exposing unauthenticated plaintext if the tag check fails. This undermines the integrity and authenticity guarantees of CCM-mode encryption, which could lead to security issues in applications relying on Bouncy Castle for secure communications or data protection.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official patches or fixes are referenced in the provided data. Users should monitor Bouncy Castle vendor advisories for updates and apply official fixes once available. Until then, avoid using affected versions in security-critical contexts or implement additional application-level checks if feasible.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-cwc6-73j8-3qm6
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58061"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a710680bf32cb7a34396f5a
Added to database: 08/03/2026, 21:22:08 UTC
Last enriched: 08/03/2026, 21:40:40 UTC
Last updated: 08/04/2026, 03:17:46 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.