All CVEs / Apache Software Foundation
CVE-2026-119078Apache Software Foundation Apache Commons Codec
Weak key derivation in Apache Commons Codec Blake3
Critical 9.1 No auth needed
Follow: this CVE · Apache Software Foundation · Apache Software Foundation Apache Commons Codec We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Nov 9, 2026
- Updated
- Nov 12, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
Apache Commons Codec versions 1.16.0 through 1.22.x contain a flaw in the Blake3 class where the doFinalize method does not change the hash state, causing consecutive calls to return identical output. This affects applications deriving multiple keys using repeated doFinalize calls, resulting in identical keys instead of separate ones. An attacker could exploit this to compromise the cryptographic security of applications relying on this functionality.
Show the original NVD text
Apache Commons Codec's Blake3 class documented the output of its doFinalize methods as depending on any previously finalized bytes, so that consecutive calls would return different output. In fact, doFinalize does not change the hash state: calling it again without supplying more input returns the same bytes. The key-derivation example in the class Javadoc, shipped since 1.16.0, derives two keys with two consecutive doFinalize calls. Code that follows it gets identical keys, so the separation between the derived keys is lost. The same applies to any application that calls doFinalize more than once on one instance and expects new output each time.
This issue affects Apache Commons Codec from 1.16.0 before 1.23.0.
Version 1.23.0 corrects the documentation, but the behavior of doFinalize is unchanged. Upgrading alone does not fix affected code. Users should check their applications for repeated doFinalize calls on the same Blake3 instance and derive multiple keys by requesting the combined length in one call and splitting the output, as the updated Javadoc shows.
What to do
Patch available · fixed versions: 1.23.0
Update Apache Commons Codec to version 1.23.0 or later. Review your code for repeated doFinalize calls on the same Blake3 instance and refactor to request the combined length in a single call.
- Apply the vendor's security update for Apache Commons Codec.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- Apache Software Foundation · Apache Commons Codec
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- apache-commons-codec-1.23.0-1.1 on GA media · SUSE · openSUSE-SU-2026:12523-1 · Nov 11, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.