Use of sizeof() on a Pointer Type Affecting modsecurity package, versions <3.0.16-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

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-DEBIANUNSTABLE-MODSECURITY-17954657
  • published12 Jul 2026
  • disclosed10 Jul 2026

Introduced: 10 Jul 2026

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

How to fix?

Upgrade Debian:unstable modsecurity to version 3.0.16-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream modsecurity package and not the modsecurity package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. From 3.0.0 through 3.0.15, the t:utf8toUnicode transformation in src/actions/transformations/utf8_to_unicode.cc produces wrong output on i386 architecture because snprintf uses sizeof on a char pointer rather than the length of the unicode buffer, allowing rules that use this transformation to be bypassed on i386 architecture. This issue is fixed in version 3.0.16.

CVSS Base Scores

version 3.1