Skip to content
VulniPulse
Advisory severityLowApache Software Foundation Updated

Low [CVE-2026-124077] The GitIdentifiers class in Apache Commons Codec did not reject NUL bytes in tree entry names

This low-severity Apache Software Foundation advisory covers CVE-2026-124077 affecting Apache Commons Codec.

Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.

CVE-2026-124077 Source published Source updated

VulniPulse record published Record updated

CVE-2026-124077
Affected products & platforms
Apache Software FoundationUnclassified
Open source advisory

Summary

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.

Is CVE-2026-124077 exploited?

No exploitation is reported in the sources VulniPulse tracks: CVE-2026-124077 is not in the CISA KEV catalog (checked ) and this advisory does not report exploitation. That is not proof the vulnerability cannot be exploited.

How do I fix CVE-2026-124077?

Upgrade to a fixed release named by Apache:

  • 1.23.0

Confirm against the vendor advisory before you patch.

Affected versions
  • 1.22.0 before 1.23.0

Official advisory · high-confidence parse· fetched 15 hours ago·verify at source

Fixed versions
  • 1.23.0

Official advisory · high-confidence parse· fetched 15 hours ago·verify at source

Mitigation checklist

Recommended fix / mitigation
  • Users are recommended to upgrade to version 1.23.0, which fixes the issue.

Official advisory · high-confidence parse· fetched 15 hours ago·verify at source

Get an email when Apache publishes the next one.

See Apache's last 90 days of advisories first. Then choose one product with live alerts free for life, or a free month of real-time alerts on everything with the severity, the fixed version and the vendor's link (card needed, then US$15/month; we email you before the first charge).

Alert me about Apache
All Apache Software Foundation advisories

iPhone and Android apps · New on the App Store

Monitor future Apache Software Foundation CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.

Discussion(0)

No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.

Sign in to join the discussion.