Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-85515

HIGH 8.2EPSS 8%

OpenPGP message truncation not reported, bypassing the SEIPDv1 integrity check

Mitigation

  • Upgrade BC-JAVA to 1.86 or later.
  • Upgrade BC-LTS-JAVA to 2.73.13 or later.
  • Upgrade BC-FJA to 2.1.14 or later.

Who should check

  • Anyone running Legion of the Bouncy Castle Inc. BC-JAVA >= 1.74, < 1.86
  • Anyone running Legion of the Bouncy Castle Inc. BC-LTS-JAVA >= 2.73.0, < 2.73.13
  • Anyone running Legion of the Bouncy Castle Inc. BC-FJA >= 1.0.7, < 1.0.14; >= 2.0.7, < 2.0.14.1; >= 2.1.0, < 2.1.14

Vulnerability facts

Affected
Legion of the Bouncy Castle Inc. BC-JAVA >= 1.74, < 1.86; Legion of the Bouncy Castle Inc. BC-LTS-JAVA >= 2.73.0, < 2.73.13; Legion of the Bouncy Castle Inc. BC-FJA >= 1.0.7, < 1.0.14; >= 2.0.7, < 2.0.14.1; >= 2.1.0, < 2.1.14
Fixed in
Legion of the Bouncy Castle Inc. BC-JAVA 1.86, Legion of the Bouncy Castle Inc. BC-LTS-JAVA 2.73.13, Legion of the Bouncy Castle Inc. BC-FJA 1.0.14, Legion of the Bouncy Castle Inc. BC-FJA 2.0.14.1, Legion of the Bouncy Castle Inc. BC-FJA 2.1.14
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.2 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/U:AmberOpen in CVSS calculator
Show all 12 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: None
  • Integrity impact: High
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
  • U: Amber
EPSS
0.22% chance of exploitation in 30 days (percentile 8, 2026-11-26)
CWE
CWE-354, CWE-345
Published
Modified

Description

In Bouncy Castle for Java before 1.86, a truncated OpenPGP encrypted message was accepted with no error reported, and on the SEIPD version 1 path with no integrity check performed at all. RFC 9580 sec. 13.7 permits an implementation to release the cleartext of the fully authenticated chunks when streaming but requires it to indicate a clear error as soon as the truncation is detected, and to report suspect integrity when it discovers malleable ciphertext. The truncation was detected and then discarded: when a message is truncated but the length field of the enclosing packet is left unchanged, BCPGInputStream.PartialInputStream raises an EOFException for the missing ciphertext, and BCPGInputStream.nextPacketTag() reports an EOFException as a clean end of message, so the packet stream above it stopped as though no packets remained. On the AEAD path (SEIPD version 2 and the version 5 AEAD packet), when the literal data packet ended on an AEAD chunk boundary and the consumer read in increments smaller than one chunk, the look-ahead for the packet after the literal triggered the truncated chunk read, so BcAEADUtil and JceAEADUtil never reached the trailing message tag of sec. 5.13.2 that authenticates the total plaintext length; the caller received the plaintext of the fully authenticated chunks, every packet following the literal was silently dropped, and no exception was raised, so a signed and encrypted message read back as a well-formed unsigned one. Every byte released on that path remained individually authenticated, making this a missing truncation error rather than a forgery, and it is a residual of CVE-2026-12817, which closed the same outcome for an attacker who corrects the outer packet length. On the SEIPD version 1 path the consequence was more serious: IntegrityProtectedInputStream verifies the modification detection code from close(), and reached close() only by closing itself when a read of it returned -1, which a truncated message never produces, so PGPEncryptedData.verify() never ran and the recipient was handed CFB-decrypted plaintext on which no integrity check of any kind had been performed. Measured on a message truncated into that shape, 136 distinct single-byte modifications of the ciphertext produced accepted, altered plaintext with no exception raised. Reachability is a property of the message rather than of attacker-supplied input: the AEAD shape held for 3 of 131 consecutive payload lengths measured, and the SEIPD version 1 shape for one payload length in sixteen, at a truncation offset that did not move with the payload length. The low-level API is unaffected, a caller that invokes PGPEncryptedData.verify() directly getting the check regardless, as are consumers reading in increments of a whole AEAD chunk or more. The AEAD decryption streams now re-throw such an EOFException as a plain IOException, which nextPacketTag() does not launder; OpenPGPMessageInputStream.close() now closes its layer's integrity-protected stream itself rather than relying on that stream having seen the end of its data; and IntegrityProtectedInputStream.close() was made idempotent, as java.io.Closeable requires, which that depends on, since the stream is genuinely closed twice on the ordinary path and PGPEncryptedData.verify() consumes the digest state behind it and cannot be run a second time. This issue also affects Bouncy Castle for Java LTS before 2.73.13, on the AEAD route only, as that edition does not ship the high-level OpenPGP API the SEIPDv1 route runs through. It also affects Bouncy Castle for Java FIPS (BC-FJA) before bcpg-fips 1.0.14 (1.0.X series), 2.0.14.1 (2.0.X series) and 2.1.14 (2.1.X series), on the AEAD route only, as those editions do not ship the high-level OpenPGP API.

Affected and fixed versions

Package / productAffectedFixedSource
Legion of the Bouncy Castle Inc. BC-JAVA>= 1.74, < 1.86—cvelist
Legion of the Bouncy Castle Inc. BC-LTS-JAVA>= 2.73.0, < 2.73.13—cvelist
Legion of the Bouncy Castle Inc. BC-FJA>= 1.0.7, < 1.0.14; >= 2.0.7, < 2.0.14.1; >= 2.1.0, < 2.1.14—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-85515. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-85515.md
Affected: Legion of the Bouncy Castle Inc. BC-JAVA >= 1.74, < 1.86; Legion of the Bouncy Castle Inc. BC-LTS-JAVA >= 2.73.0, < 2.73.13; Legion of the Bouncy Castle Inc. BC-FJA >= 1.0.7, < 1.0.14; >= 2.0.7, < 2.0.14.1; >= 2.1.0, < 2.1.14
Fixed in: Legion of the Bouncy Castle Inc. BC-JAVA 1.86, Legion of the Bouncy Castle Inc. BC-LTS-JAVA 2.73.13, Legion of the Bouncy Castle Inc. BC-FJA 1.0.14, Legion of the Bouncy Castle Inc. BC-FJA 2.0.14.1, Legion of the Bouncy Castle Inc. BC-FJA 2.1.14

Steps:
1. Search this machine and project for Legion of the Bouncy Castle Inc. BC-JAVA, Legion of the Bouncy Castle Inc. BC-LTS-JAVA, Legion of the Bouncy Castle Inc. BC-FJA: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-85515 being exploited?

There is no confirmed exploitation: CVE-2026-85515 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-85515?

High: CVSS 8.2 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-85515?

Legion of the Bouncy Castle Inc. BC-JAVA >= 1.74, < 1.86; Legion of the Bouncy Castle Inc. BC-LTS-JAVA >= 2.73.0, < 2.73.13; Legion of the Bouncy Castle Inc. BC-FJA >= 1.0.7, < 1.0.14; >= 2.0.7, < 2.0.14.1; >= 2.1.0, < 2.1.14.

Is there a fix for CVE-2026-85515?

Yes. Fixed in Legion of the Bouncy Castle Inc. BC-JAVA 1.86, Legion of the Bouncy Castle Inc. BC-LTS-JAVA 2.73.13, Legion of the Bouncy Castle Inc. BC-FJA 1.0.14, Legion of the Bouncy Castle Inc. BC-FJA 2.0.14.1, Legion of the Bouncy Castle Inc. BC-FJA 2.1.14. Upgrade BC-JAVA to 1.86 or later. Upgrade BC-LTS-JAVA to 2.73.13 or later. Upgrade BC-FJA to 2.1.14 or later.

How do I check if I'm affected by CVE-2026-85515?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors