Description
A vulnerability in Legion of the Bouncy Castle Inc. BC-LTS bcprov-lts8on on X86_64, AVX, AVX-512f, Linux, Legion of the Bouncy Castle Inc. BC-FJA bc-fips on Linux, X86_64, AVX, AVX-512f.

This vulnerability is associated with program files gcm128w, gcm512w, gcm128w.C, gcm512w.C.



This issue affects BC-LTS: from 2.73.0 before 2.73.11; BC-FJA: from 2.1.0 before 2.1.3.
Published: 2026-05-08
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A fault in the Bouncy Castle cryptographic libraries causes a BadTagException when GCM decryption is performed in certain chunked patterns. The vulnerability is classified as CWE‑1068, an error handling bypass. When the library receives a ciphertext broken into chunks at particular boundaries, the authentication tag verification fails and the decryption operation aborts, which may terminate or hang the caller. Because the error results from a failure to validate the authentication tag, no data is disclosed or altered and the effect is limited to the application’s availability.

Affected Systems

The issue affects the Legion of the Bouncy Castle Inc. BC‑LTS component in versions 2.73.0 through 2.73.10 and the BC‑FJA component in versions 2.1.0 through 2.1.2. These versions run on Linux x86_64 with AVX or AVX‑512f instruction sets and involve the modules gcm128w, gcm512w, gcm128w.C, and gcm512w.C.

Risk and Exploitability

The CVSS score of 5.1 indicates moderate severity, and the EPSS score of < 1% suggests a low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that an attacker who can supply untrusted ciphertext to a decryption API that uses BC‑LTS may trigger the BadTagException by chunking the data at the problematic boundaries, causing a denial‑of‑service condition. No remote code execution or data disclosure is possible.

Generated by OpenCVE AI on August 2, 2026 at 02:17 UTC.

Remediation

Vendor Workaround

If possible pass whole message to GCM via doFinal(..) for decryption. Issue only occurs when decryption is chunked at certain boundaries.


OpenCVE Recommended Actions

  • Supply the complete ciphertext to GCM’s doFinal method so that decryption is performed in a single step, preventing chunking‑induced BadTagExceptions.
  • Implement robust error handling: catch BadTagException, log the event, and trigger recovery logic so the application does not stop unexpectedly.
  • Upgrade the library to BC‑LTS 2.73.11 or later and BC‑FJA 2.1.3 or later when a patch is released.
  • Monitor the vendor’s advisories for any release that includes a fix and upgrade the library when it becomes available.

Generated by OpenCVE AI on August 2, 2026 at 02:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-mx76-r943-rf8g Bouncy Castle LTS native GCM chunking can cause bad-tag exception on decryption
History

Tue, 21 Jul 2026 05:45:00 +0000

Type Values Removed Values Added
Description A vulnerability in Legion of the Bouncy Castle Inc. BC-LTS on Linux, X86_64, AVX, AVX-512f. This vulnerability is associated with program files gcm128w, gcm512w. This issue affects BC-LTS: from 2.73.0 before 2.73.11. A vulnerability in Legion of the Bouncy Castle Inc. BC-LTS bcprov-lts8on on X86_64, AVX, AVX-512f, Linux, Legion of the Bouncy Castle Inc. BC-FJA bc-fips on Linux, X86_64, AVX, AVX-512f. This vulnerability is associated with program files gcm128w, gcm512w, gcm128w.C, gcm512w.C. This issue affects BC-LTS: from 2.73.0 before 2.73.11; BC-FJA: from 2.1.0 before 2.1.3.

Tue, 19 May 2026 00:30:00 +0000

Type Values Removed Values Added
References

Tue, 19 May 2026 00:00:00 +0000

Type Values Removed Values Added
Description A vulnerability in Legion of the Bouncy Castle Inc. BC-LTS on Linux, X86_64, AVX, AVX-512f. This vulnerability is associated with program files gcm128w, gcm512w. This issue affects BC-LTS: from 2.73.0 through 2.73.10. A vulnerability in Legion of the Bouncy Castle Inc. BC-LTS on Linux, X86_64, AVX, AVX-512f. This vulnerability is associated with program files gcm128w, gcm512w. This issue affects BC-LTS: from 2.73.0 before 2.73.11.
References

Mon, 18 May 2026 23:30:00 +0000

Type Values Removed Values Added
Description A vulnerability in Legion of the Bouncy Castle Inc. BC-FJA BC-FIPS on Linux, X86_64, AVX, AVX-512f. This vulnerability is associated with program files gcm128w, gcm512w. This issue affects BC-FJA: from 2.1.0 through 2.1.2. A vulnerability in Legion of the Bouncy Castle Inc. BC-LTS on Linux, X86_64, AVX, AVX-512f. This vulnerability is associated with program files gcm128w, gcm512w. This issue affects BC-LTS: from 2.73.0 through 2.73.10.

Sun, 10 May 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Bouncycastle
Bouncycastle bc-fja
Vendors & Products Bouncycastle
Bouncycastle bc-fja

Fri, 08 May 2026 13:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 08 May 2026 06:30:00 +0000

Type Values Removed Values Added
Description A vulnerability in Legion of the Bouncy Castle Inc. BC-FJA BC-FIPS on Linux, X86_64, AVX, AVX-512f. This vulnerability is associated with program files gcm128w, gcm512w. This issue affects BC-FJA: from 2.1.0 through 2.1.2.
Title GCM chunking can lead to bad tag exception on decryption
Weaknesses CWE-1068
References
Metrics cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/S:N/RE:M/U:Amber'}


Subscriptions

Bouncycastle Bc-fja
cve-icon MITRE

Status: PUBLISHED

Assigner: bcorg

Published:

Updated: 2026-07-21T04:59:54.559Z

Reserved: 2026-05-08T05:23:49.585Z

Link: CVE-2026-8149

cve-icon Vulnrichment

Updated: 2026-05-08T12:50:59.531Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-08T07:16:29.603

Modified: 2026-06-17T11:03:34.070

Link: CVE-2026-8149

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T02:30:03Z

Weaknesses
  • CWE-1068

    Inconsistency Between Implementation and Documented Design