Skip to content
RedCVE

CVE-2026-124077Apache Commons Codec vulnerability

ApachePublished:

CVSS score

4.3

Medium

CVSS 3.1 from 134c704f-9b21-4f2e-91b3-4a467353bcc0

Exploit probability (EPSS)

0.36%

0.36% chance of exploitation in the next 30 days, higher than 30.8% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official 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.

Source: NVD · CNA: security@apache.org

How to fix it, step by step

  1. Check whether you're affected

    Find every system running Apache Commons Codec and compare its version with the affected versions.

  2. Update to a fixed version

    • Update Apache Commons Codec to 1.23.0 or later.
  3. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

Affected products

Affected productsVersions
Apache Apache Commons Codec≥ 1.22.0, < 1.23.0 · ≥ 387120c901f4a75c3112dfdf8877dcdec7ae685d, < 87f6aa2818836998528ff4b0d1ea35545a800ee5

Weakness

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-124077 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.4% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-124077?

CVE-2026-124077 has a CVSS 3.1 base score of 4.3 (medium).

Which versions are affected?

Apache Apache Commons Codec (≥ 1.22.0, < 1.23.0; ≥ 387120c901f4a75c3112dfdf8877dcdec7ae685d, < 87f6aa2818836998528ff4b0d1ea35545a800ee5)

Is there a patch for CVE-2026-124077?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.