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

- Severity: High 8.2 (CVSS:4.0, scored by bcorg) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-02)
- Published: 2026-10-03T08:38:18.749Z
- Modified: 2026-10-06T14:49:40.823Z
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: bcorg

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

(As written by CVE List.)

## Affected

- bcprov-lts8on: from 2.73.4 before 2.73.13

## References

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

## Sources

- CVE List: [CVE-2026-71883](https://www.cve.org/CVERecord?id=CVE-2026-71883), CVE Terms of Use, modified 2026-10-05
- NVD: [CVE-2026-71883](https://nvd.nist.gov/vuln/detail/CVE-2026-71883), Public domain, modified 2026-10-06

---

Page: https://cve.day/CVE-2026-71883 · Whole record: https://cve.day/CVE-2026-71883.json · Rebuilt by cve.day 2026-11-25T22:59:42.037Z
