# CVE-2026-71883: Native AES packet cipher returns the raw AES key on an alias

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.2
- **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:Amber`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.43% (percentile 29, 2026-11-26)
- **CWE:** CWE-200
- **Published:** 2026-10-03T08:38:18.749Z
- **Modified:** 2026-10-06T14:49:40.823Z

## Who should check

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

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

- Legion of the Bouncy Castle Inc. BC-LTS-JAVA: \>= 2.73.4, \< 2.73.13 (cvelist)

## Mitigation

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- vendor: <https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9071883>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-71883>

HTML: <https://flawdb.com/CVE-2026-71883> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-71883>
