CVE-2026-124077
Apache Commons Codec: NUL bytes in tree entry names cause Git/SWHID identifier collisions (GitIdentifiers class)
No exploitation reported by the sources we read.
- Published2026-11-09
- WeaknessCWE-158
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2026-11-0920:10CVE publishedCNA
Versions per branch
Products declared by the CNA2 products
As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Apache Software Foundation Apache Commons Codecother versions: not affected
package commons-codec:commons-codechttps://repo.maven.apache.org/maven2
Affected- ≥ 1.22.0, < 1.23.0fixed in 1.23.0maven
- Apache Software Foundation Apache Commons Codecother versions: not affected
https://gitbox.apache.org/repos/asf/commons-codec.git
Affected- ≥ 387120c901f4a75c3112dfdf8877dcdec7ae685d, < 87f6aa2818836998528ff4b0d1ea35545a800ee5fixed in 87f6aa2818836998528ff4b0d1ea35545a800ee5git
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-11-09
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- apache-commons-codecopenSUSE:Tumbleweedall versions · fixed in 1.23.0-1.1
Fix
No fix published by the sources we read yet. NVD record
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-12
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2026-11-12
- CISA-ADPCVSS 3.14.32026-11-12
- CNAweakness (CWE)CWE-1582026-11-09
- NVDweakness (CWE)CWE-158read 2026-11-12
- FIRST EPSSEPSS score0.2 %2026-11-11
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- EUVD-2026-120399same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-26mf-gqw6-894wsame flawGitHub Advisory Database · CC-BY-4.0
- openSUSE-SU-2026:12523-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- Published
- 2026-11-09
- Last Modified
- 2026-11-12
- NVD status
- Awaiting Analysis
- GitHub Advisory
- GHSA-26mf-gqw6-894w
Frequently asked questions
What is CVE-2026-124077?
Is CVE-2026-124077 actively exploited?
What is the CVSS score for CVE-2026-124077?
Running apache-commons-codec? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-26mf-gqw6-894w
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- CISA Vulnrichment · CC0-1.0