Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.bouncycastle/bcpg-jdk14
  4. ›
  5. CVE-2026-12817

CVE-2026-12817: OpenPGP AEAD decryption skips final tag on chunk-aligned data

August 3, 2026 (updated September 16, 2026)

Affects Bouncy Castle for Java before 1.85. OpenPGP AEAD decryption verifies the final tag only when the last chunk is shorter than the chunk length. For chunk-aligned data the stream reports clean EOF without calling doFinal(), and AEAD verification always reports success, so nothing detects the omission. An attacker who controls the ciphertext can drop trailing chunks and the final tag, adjust the unauthenticated outer packet length, and have truncated plaintext accepted as authentic.

References

  • github.com/bcgit/bc-java/commit/4b712819846ec944379f4909101abac20f0ad4b0
  • github.com/bcgit/bc-java/wiki/CVE-2026-12817
  • nvd.nist.gov/vuln/detail/CVE-2026-12817

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.74.0 before 1.85.0

Fixed versions

  • 1.85.0

Solution

Upgrade to version 1.85.0 or above.

Impact 8.6 HIGH

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

Learn more about CVSS

Weakness

  • CWE-354: Improper Validation of Integrity Check Value

Source file

maven/org.bouncycastle/bcpg-jdk14/CVE-2026-12817.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 22 Sep 2026 12:21:15 +0000.