Urgent
Apache Commons Codec Blake3 doFinalize is stateless, so repeated calls give identical keys
CVE-2026-119078
Encryption keys made by Java programs can end up identical!
- CVE
- CVE-2026-119078 (opens in a new tab)
- Score
- CVSS 9.1
- First seen
9.1
Products
Mitigation
Upgrading to 1.23.0 only corrects the documentation, so check your own code. Find repeated doFinalize calls on the same Blake3 instance, and request the combined length in one call and split the output.
Summary
Repeated doFinalize calls on one Blake3 instance in Apache Commons Codec return the same bytes instead of new output, so keys derived from them can be identical. Applications using versions from 1.16.0 up to before 1.23.0 are affected.
Affected when
- Repeated doFinalize calls on the same Blake3 instance
- Apache Commons Codec 1.16.0 or later, before 1.23.0
1 other Incident of this product in the last 30 days
Incidents by product: Apache Commons Codec