Improper Neutralization of Null Byte or NUL Character Affecting commons-codec:commons-codec package, versions [1.22.0,1.23.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.25% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-COMMONSCODEC-22391319
  • published10 Nov 2026
  • disclosed9 Nov 2026
  • creditUnknown

Introduced: 9 Nov 2026

NewCVE-2026-124077  (opens in a new tab)
CWE-158  (opens in a new tab)

How to fix?

Upgrade commons-codec:commons-codec to version 1.23.0 or higher.

Overview

commons-codec:commons-codec is a package that contains simple encoder and decoders for various formats such as Base64 and Hexadecimal.

Affected versions of this package are vulnerable to Improper Neutralization of Null Byte or NUL Character via the GitIdentifiers class in the digest component. An attacker can make distinct directory trees produce the same Git tree identifier or SWHID by supplying an entry name containing a NUL byte, which Git treats as the end of the name. This affects applications that build trees from externally supplied names, such as archive entries or direct API input; trees built by walking common file systems are not affected.

CVSS Base Scores

version 4.0
version 3.1