CVE-2026-124077: Apache Commons Codec: NUL bytes in tree entry names cause Git/SWHID identifier collisions (GitIdentifiers class)
Vulnerability summary
CVE-2026-124077 is a medium (CVSS 4.3) vulnerability in apache software foundation apache commons codec. EPSS estimates a 0.36% chance of exploitation in the next 30 days, higher than 31.5% of scored vulnerabilities.
Not severe (CVSS 4.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 09-11-2026PublishedVulnerability first disclosed.
- 12-11-2026Last modifiedVulnerability information updated.
Description
The GitIdentifiers class in Apache Commons Codec did not reject NUL bytes in tree entry names. Because Git uses a NUL byte to mark the end of each entry name in a tree object, a crafted name could make one tree serialize to the same bytes as a different tree. Two different directory trees could then receive the same Git tree identifier or SWHID. The impact is limited: common file systems do not allow NUL bytes in file names, so trees built by walking a file system are not affected. Only applications that build trees from names supplied by other sources, such as entries of archive formats that permit NUL bytes in names (e.g. ZIP) or names passed directly to the API, are exposed. This issue affects Apache Commons Codec: from 1.22.0 before 1.23.0. Users are recommended to upgrade to version 1.23.0, which fixes the issue.
CVSS metrics
4 scores · 4 sources · 1 version- NVDNIST4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- OSV · UbuntuEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- OSV · DebianEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
EPSS trend
Probability
0.36%
Chance of exploitation in the next 30 days
Percentile
32%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard2 products
- opensearch-3-security< 3.10.1-r1
- opensearch-fips-3-security< 3.10.1-r1
Apache software foundation1 product
- apache commons codec≥ 1.22.0, < 1.23.0 | ≥ 387120c901f4a75c3112dfdf8877dcdec7ae685d, < 87f6aa2818836998528ff4b0d1ea35545a800ee5
Debian1 product
- libcommons-codec-javaAll versions (No fix recorded) | < 1.23.0-1
Ubuntu1 product
- libcommons-codec-javaAll versions (No fix recorded)
Wolfi1 product
- opensearch-3-security< 3.10.1-r1
5 vendors · 6 products