All vulnerabilities

Maven

CVE-2026-119078

Apache Commons Codec: Blake3 doFinalize is stateless; the documented KDF example derives identical keys

Severity
Critical 9.1
Published
9 Nov 2026
Last changed
12 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.23.0
Exploit chance
0.4% in the next 30 daysHigher than 36% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
CWE-684CWE-1068
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Sources
CVE Program

Description

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…

From the CVE Program. Shortened; the full text is there.

Affected software

SoftwareAffected versions
commons-codec:commons-codecMaven · osv:Maven:commons-codec:commons-codec
  • From 1.16.0 before 1.23.0

About commons-codec:commons-codec

Vulnerabilities in commons-codec:commons-codec

In our list
2
Published in the last 12 months
2
Critical, last 12 months
1
High, last 12 months
0
Known exploited
0
Search the list for commons-codec:commons-codec

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-119078