CVE-2026-58061

CCM-family modes write plaintext to caller buffer before tag check

Published Aug 3, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
In Bouncy Castle for Java before 1.85, CCM-family modes write plaintext to caller buffer before tag check. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series).

Analysis

AI-generated

Technical impact

The vulnerability occurs in the CCM-family modes of Bouncy Castle for Java, where the library writes plaintext to the caller buffer before verifying the authentication tag. Because the data is left in memory before integrity is confirmed, an attacker who can inject malicious ciphertext may be able to read unverified plaintext. This weakness can lead to confidentiality loss when the library is used by applications that do not enforce tag checks strictly, potentially undermining the overall data integrity guarantees of the encryption process.

Affected Systems

Affected products include Bouncy Castle for Java before version 1.85, the Bouncy Castle for Java LTS releases before 2.73.12, and Bouncy Castle for Java FIPS (BC‑FJA) before bc‑fips 1.0.2.7 in the 1.0.x series, 2.0.2 in the 2.0.x series, and 2.1.3 in the 2.1.x series. Any application that depends on these library versions is potentially exposed.

Risk and Exploitability

The vulnerability has a CVSS score of 8.7, indicating high severity. No EPSS score data is available, and the issue is not listed in the CISA KEV catalog, suggesting no widely observed exploitation yet. The likely attack vector involves a malicious client supplying crafted CCM-encrypted data to a vulnerable application; the application’s use of the library would expose plaintext before tag verification, enabling data disclosure. The risk is therefore elevated for systems that process user-supplied encrypted data and cannot enforce tag checks independently.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest Bouncy Castle for Java releases: use BC‑JAVA 1.85 or newer, BC‑JAVA‑LTS 2.73.12 or newer, and BC‑FJA 1.0.2.8 or newer (including 2.0.3 and 2.1.4).
  • Replace any older Bouncy Castle JAR or module files in your application with the patched versions.
  • If an immediate upgrade is not possible, restrict or disable CCM-mode decryption until the library can be upgraded, or enforce a custom workflow that verifies the authentication tag before handling plaintext.

Generated by OpenCVE AI on August 3, 2026 at 08:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Bouncycastle
Bouncycastle bc-java
Bouncycastle bouncy Castle For Java Lts
Bouncycastle fips Java Api
CPEs cpe:2.3:a:bouncycastle:bc-java:*:*:*:*:*:*:*:*
cpe:2.3:a:bouncycastle:bouncy_castle_for_java_lts:*:*:*:*:*:*:*:*
cpe:2.3:a:bouncycastle:fips_java_api:*:*:*:*:*:*:*:*
Vendors & Products Bouncycastle
Bouncycastle bc-java
Bouncycastle bouncy Castle For Java Lts
Bouncycastle fips Java Api
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Legion Of The Bouncy Castle Inc.
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
Vendors & Products Legion Of The Bouncy Castle Inc.
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
Type Values Removed Values Added
Description In Bouncy Castle for Java before 1.85, CCM-family modes write plaintext to caller buffer before tag check. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series).
Title CCM-family modes write plaintext to caller buffer before tag check
Weaknesses CWE-354
References
Metrics cvssV4_0

{'score': 8.7, 'vector': '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'}

Weaknesses
  • CWE-354

    Improper Validation of Integrity Check Value

Sources

Status
PUBLISHED
Assigner
bcorg
Published
Updated
Aug 3, 2026, 3:35 PM
Reserved
Jun 28, 2026, 1:21 AM
Status
Analyzed
Published
Aug 3, 2026, 3:16 AM
Modified
Sep 2, 2026, 2:32 PM