CVE-2026-8149

GCM chunking can lead to bad tag exception on decryption

Published May 8, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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
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.
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
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.
Type Values Removed Values Added
First Time appeared Bouncycastle
Bouncycastle bc-fja
Vendors & Products Bouncycastle
Bouncycastle bc-fja
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-1068

    Inconsistency Between Implementation and Documented Design

Sources

Status
PUBLISHED
Assigner
bcorg
Published
Updated
Jul 21, 2026, 4:59 AM
Reserved
May 8, 2026, 5:23 AM
Status
Awaiting Analysis
Published
May 8, 2026, 7:16 AM
Modified
Oct 26, 2026, 7:10 PM