Skip to main content
← Vulnerabilities

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

Exploited
No known exploitation
Fix
Fixed in 1.23.0
Who is exposed
Not reported

Do first: Upgrade to a fixed version: 1.23.0.

Published
Last modified
10/100 · provisional
None on Exploit-DB, Metasploit or GitHub

Summary

Apache Commons Codec's Blake3 class returns the same bytes on each repeated `doFinalize` call on one instance instead of new output, so the documented key-derivation example produces identical keys and loses the separation between them. The description doesn't say how an attacker would reach or use this flaw.

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

Read the original 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 combined length in one call and splitting the output, as the updated Javadoc shows.

cve.now Index

10Pcve.now Index 10 of 100 · methodology v3 · provisional
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure?/25Unknown. No advisory context yet
  • Reach10/20Affects Maven packages
  • Severity?/10Unknown. No CVSS score or vendor rating
  • No patch0/5No signal

What would change the score

  • Would score about 65 if added to CISA KEV
  • Would score about 60 if CISA's SSVC rates exploitation active
  • Would score about 32 if advisories confirm default setups are exposed

What to do

  • Upgrade to a fixed version: 1.23.0.

Timeline

  1. CVE published
  2. First seen by cve.now1 day
  3. Record last updated

Affected versions

Evidence 2

  1. Advisory
  2. Link

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.

Questions about CVE-2026-119078

Is CVE-2026-119078 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data

Which versions are affected by CVE-2026-119078?

commons-codec:commons-codec (Maven): from 1.16.0 before 1.23.0.Source: cve.now feed data

How do I fix CVE-2026-119078?

Upgrade to a fixed version: 1.23.0.Source: cve.now feed data