Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.bouncycastle/bcpkix-fips
  4. ›
  5. CVE-2026-12802

CVE-2026-12802: CMS AuthEnvelopedData fails to enforce tag-length on decryption

August 3, 2026 (updated September 16, 2026)

Affects Bouncy Castle for Java FIPS (BC-FJA) bcpkix-fips before 1.0.12 (1.0.X series), 2.0.12 (2.0.X series) and 2.1.12 (2.1.X series). CMS AuthEnvelopedData recipients applied no lower bound to the AEAD tag length declared in the content-encryption AlgorithmIdentifier, a field the tag itself does not cover. Re-encoding a message to declare a truncated ICV, as low as 32 bits for the CCM family, weakens forgery resistance proportionally while decryption still succeeds. Recipients now accept a minimum tag size and reject shorter declarations before returning content.

References

  • github.com/bcgit/bc-java/commit/0fefa539e6ac5c66e1daee5a13b23d1d4769cc01
  • github.com/bcgit/bc-java/wiki/CVE-2026-12802
  • nvd.nist.gov/vuln/detail/CVE-2026-12802

Code Behaviors & Features

Detect and mitigate CVE-2026-12802 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.0.0 before 1.0.12, all versions starting from 2.0.7 before 2.0.12, all versions starting from 2.1.8 before 2.1.12

Fixed versions

  • 1.0.12
  • 2.0.12
  • 2.1.12

Solution

Upgrade to versions 1.0.12, 2.0.12, 2.1.12 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-354: Improper Validation of Integrity Check Value

Source file

maven/org.bouncycastle/bcpkix-fips/CVE-2026-12802.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:51 +0000.