{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-124077", "assignerOrgId": "f0158376-9dc2-43b6-827c-5f631a4d8d09", "state": "PUBLISHED", "assignerShortName": "apache", "dateReserved": "2026-11-06T20:45:11.690Z", "datePublished": "2026-11-09T20:10:42.190Z", "dateUpdated": "2026-11-12T17:33:24.985Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "f0158376-9dc2-43b6-827c-5f631a4d8d09", "shortName": "apache", "dateUpdated": "2026-11-09T20:10:42.190Z" }, "title": "Apache Commons Codec: NUL bytes in tree entry names cause Git/SWHID identifier collisions (GitIdentifiers class)", "problemTypes": [ { "descriptions": [ { "description": "CWE-158 Improper neutralization of null byte or NUL character", "lang": "en", "cweId": "CWE-158", "type": "CWE" } ] } ], "source": { "discovery": "INTERNAL" }, "affected": [ { "vendor": "Apache Software Foundation", "product": "Apache Commons Codec", "packageURL": "pkg:maven/commons-codec/commons-codec", "versions": [ { "status": "affected", "version": "1.22.0", "lessThan": "1.23.0", "versionType": "maven" } ], "defaultStatus": "unaffected", "collectionURL": "https://repo.maven.apache.org/maven2", "packageName": "commons-codec:commons-codec" }, { "vendor": "Apache Software Foundation", "product": "Apache Commons Codec", "repo": "https://gitbox.apache.org/repos/asf/commons-codec.git", "versions": [ { "status": "affected", "version": "387120c901f4a75c3112dfdf8877dcdec7ae685d", "lessThan": "87f6aa2818836998528ff4b0d1ea35545a800ee5", "versionType": "git" } ], "defaultStatus": "unaffected" } ], "descriptions": [ { "value": "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.\n\n\n\nThe 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.\n\n\n\nThis issue affects Apache Commons Codec: from 1.22.0 before 1.23.0.\n\n\n\nUsers are recommended to upgrade to version 1.23.0, which fixes the issue.", "lang": "en", "supportingMedia": [ { "type": "text/html", "base64": false, "value": "

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.

" } ] } ], "references": [ { "url": "https://github.com/apache/commons-codec/commit/87f6aa2818836998528ff4b0d1ea35545a800ee5.patch", "tags": [ "patch" ] }, { "url": "https://lists.apache.org/thread.html/zns7tbnkq685prps9d85q7ct6oobvzsm", "tags": [ "vendor-advisory" ] } ], "metrics": [ { "other": { "type": "Textual description of severity", "content": { "text": "low" } }, "scenarios": [ { "lang": "en", "value": "GENERAL" } ] } ], "credits": [ { "lang": "en", "value": "Claude Security", "type": "tool" }, { "lang": "en", "value": "Gary D. Gregory", "type": "remediation developer" } ], "x_generator": { "engine": "Vulnogram 1.0.3" } }, "adp": [ { "title": "CVE Program Container", "references": [ { "url": "http://www.openwall.com/lists/oss-security/2026/11/09/30" } ], "providerMetadata": { "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE", "dateUpdated": "2026-11-10T00:11:06.971Z" } }, { "metrics": [ { "cvssV3_1": { "scope": "UNCHANGED", "version": "3.1", "baseScore": 4.3, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N", "integrityImpact": "NONE", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW" } }, { "other": { "type": "ssvc", "content": { "timestamp": "2026-11-12T17:33:11.359032Z", "id": "CVE-2026-124077", "options": [ { "Exploitation": "none" }, { "Automatable": "no" }, { "Technical Impact": "partial" } ], "role": "CISA Coordinator", "version": "2.0.3" } } } ], "title": "CISA ADP Vulnrichment", "providerMetadata": { "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2026-11-12T17:33:24.985Z" } } ] } }