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-71883

HIGH 8.2EPSS 29%

Native AES packet cipher returns the raw AES key on an alias

Mitigation

  • Upgrade BC-LTS-JAVA to 2.73.13 or later.

Who should check

  • Anyone running Legion of the Bouncy Castle Inc. BC-LTS-JAVA >= 2.73.4, < 2.73.13

Vulnerability facts

Affected
Legion of the Bouncy Castle Inc. BC-LTS-JAVA >= 2.73.4, < 2.73.13
Fixed in
Legion of the Bouncy Castle Inc. BC-LTS-JAVA 2.73.13
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:H/VI:N/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: High
  • Integrity impact: None
  • 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.43% chance of exploitation in 30 days (percentile 29, 2026-11-26)
CWE
CWE-200
Published
Modified

Description

In Bouncy Castle for Java LTS before 2.73.13, the one-shot native packet ciphers for AES-CBC, CCM, CFB, CTR, GCM and GCM-SIV released the caller's key, IV and additional authenticated data arrays with JNI's ReleaseByteArrayElements in mode 0, which commits the native copy back into the Java array. Those arrays are read-only to the native code, and on a JVM that returns a copy rather than a pin the copy still holds the input bytes as they were read. The output buffer is taken through a separate critical region and committed first, so where an application passed the same Java array as both an input and the destination - encrypting in place over KeyParameter.getKey(), for example - the later mode-0 release of the key wrote the unchanged key bytes over the ciphertext that had just been produced. The call still returned the correct output length, so an application encrypting in place over its own key array was handed the raw AES key where it expected ciphertext, with nothing in the API to indicate it, and would transmit or store the key in place of the message. The read-only input arrays are now released with JNI_ABORT, freeing the native copy without copying it back, and mode 0 is reserved for arrays the native code wrote. The pure-Java packet ciphers and the streaming native modes are not affected. Bouncy Castle for Java (bcprov) is not affected, as it ships no native implementations.

Affected and fixed versions

Package / productAffectedFixedSource
Legion of the Bouncy Castle Inc. BC-LTS-JAVA>= 2.73.4, < 2.73.13—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-71883. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-71883.md
Affected: Legion of the Bouncy Castle Inc. BC-LTS-JAVA >= 2.73.4, < 2.73.13
Fixed in: Legion of the Bouncy Castle Inc. BC-LTS-JAVA 2.73.13

Steps:
1. Search this machine and project for Legion of the Bouncy Castle Inc. BC-LTS-JAVA: 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-71883 being exploited?

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

How serious is CVE-2026-71883?

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

Which versions are affected by CVE-2026-71883?

Legion of the Bouncy Castle Inc. BC-LTS-JAVA >= 2.73.4, < 2.73.13.

Is there a fix for CVE-2026-71883?

Yes. Fixed in Legion of the Bouncy Castle Inc. BC-LTS-JAVA 2.73.13. Upgrade BC-LTS-JAVA to 2.73.13 or later.

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

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