CVE-2026-71884
Packet CTR reports a full success length after the counter is exhausted
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-323
- Modified
Description
In Bouncy Castle for Java LTS before 2.73.13, the native one-shot CTR packet cipher did not check that the requested input length fitted the counter space the IV left. In CTR mode the IV and the block counter share one 16-byte block, so an IV of 13 to 15 bytes leaves a counter of only 1 to 3 bytes, addressing 256, 65536 or 16777216 blocks respectively. Given a longer input the counter wrapped and the keystream repeated from the start of the same packet, and the call then returned the full input length as though every byte had been correctly transformed. Two segments of the message were therefore encrypted under the same keystream, so their plaintexts can be recovered from the ciphertext alone, without the key, while the caller saw neither an exception nor a short length to indicate it. The streaming implementation validates at init and again while processing, and the portable AESCTRPacketCipher rejects such a request with "Counter in CTR/SIC mode out of range.", but the native one-shot path has a single entry point and performed no counter-range validation there. It now preflights the IV-derived counter range and rejects an over-long request before any output is written, so the operation is failure-atomic and never reports success for bytes it did not correctly transform. A counter of four bytes or more cannot be exhausted by a Java int length and is unaffected, as is a full 16-byte IV, where the counter range is the caller's responsibility. Bouncy Castle for Java (bcprov) is not affected, as it ships no native implementations.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| 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-71884. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-71884.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
Vendor advisories
FAQ
Is CVE-2026-71884 being exploited?
There is no confirmed exploitation: CVE-2026-71884 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-71884?
High: CVSS 8.2 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-71884?
Legion of the Bouncy Castle Inc. BC-LTS-JAVA >= 2.73.4, < 2.73.13.
Is there a fix for CVE-2026-71884?
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-71884?
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.