Use of sizeof() on a Pointer Type Affecting owasp-modsecurity/ModSecurity package, versions [3.0.0,3.0.16)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.41% (34th 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-UNMANAGED-OWASPMODSECURITYMODSECURITY-17950387
  • published11 Jul 2026
  • disclosed11 Jul 2026
  • creditUnknown

Introduced: 11 Jul 2026

CVE-2026-52761  (opens in a new tab)
CWE-467  (opens in a new tab)

How to fix?

Upgrade owasp-modsecurity/ModSecurity to version 3.0.16 or higher.

Overview

Affected versions of this package are vulnerable to Use of sizeof() on a Pointer Type in the utf8toUnicode transformation process on i386 architecture due to incorrect use of snprintf with sizeof on a char pointer instead of the actual buffer length. An attacker can bypass security rules that rely on this transformation by crafting input that exploits this flaw.

CVSS Base Scores

version 4.0
version 3.1