CVE-2026-124077
published medium CVSS 3.1 · 4.3Apache Commons Codec: NUL bytes in tree entry names cause Git/SWHID identifier collisions (GitIdentifiers class)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | commons-codec:commons-codecApache Commons Codec · 1.22.0 to < 1.23.0 · Other versions: unaffected | Affected | Not stated | apache |
| Apache Software Foundation | — | Apache Commons Codec387120c901f4a75c3112dfdf8877dcdec7ae685d to < 87f6aa2818836998528ff4b0d1ea35545a800ee5 · Other versions: unaffected | Affected | Not stated | apache |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-commons-codecaarch64 | Advisory build | 1.23.0-1.1 | OPENSUSE-SU-2026:12523-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-commons-codecppc64le | Advisory build | 1.23.0-1.1 | OPENSUSE-SU-2026:12523-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-commons-codecs390x | Advisory build | 1.23.0-1.1 | OPENSUSE-SU-2026:12523-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-commons-codecx86_64 | Advisory build | 1.23.0-1.1 | OPENSUSE-SU-2026:12523-1 |
Show 4 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-commons-codec-javadocaarch64 | Advisory build | 1.23.0-1.1 | OPENSUSE-SU-2026:12523-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-commons-codec-javadocppc64le | Advisory build | 1.23.0-1.1 | OPENSUSE-SU-2026:12523-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-commons-codec-javadocs390x | Advisory build | 1.23.0-1.1 | OPENSUSE-SU-2026:12523-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache-commons-codec-javadocx86_64 | Advisory build | 1.23.0-1.1 | OPENSUSE-SU-2026:12523-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.3 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Commons Codec | 1.22.0 to < 1.23.0 (affected · maven)Default: unaffected | apache · cna |
| Apache Software Foundation | Apache Commons Codec | 387120c901f4a75c3112dfdf8877dcdec7ae685d to < 87f6aa2818836998528ff4b0d1ea35545a800ee5 (affected · git)Default: unaffected | apache · cna |
Weaknesses
1- CWE-158 CWE-158 Improper neutralization of null byte or NUL character
References
3Provider assertions
3apache · cna
Apache Commons Codec: NUL bytes in tree entry names cause Git/SWHID identifier collisions (GitIdentifiers class)
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e6e34d734b4fa984a1309ca8c50dddb25c5478ea522172825828580d3b2e5ec0
- Ingested
- 12 Nov 2026, 17:38:02 UTC
- Source record
- Official CVE record