All vulnerabilities

Servers and applications

CVE-2026-42268

Unsigned integer underflow in @verifySSN / @verifyCPF / @verifySVNR operators

Severity
High 8.2
Published
28 Apr 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
3.0.15
Exploit chance
0.4% in the next 30 daysHigher than 34% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
CWE-191Uncaught exception (CWE-248)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Also known as
GHSA-vwr3-7x7g-7p9w
Sources
NVD, Project advisories (GitHub)

Description

There is an unhandled exception (std::out_of_range) caused by unsigned integer underflow in libmodsecurity3 if the user (administrator) uses a rule any of @verifySSN, @verifyCPF or @verifySVNR.

The input.size() returns size_t (unsigned 64-bit). When input is empty, input.size() - 1 wraps to SIZE_MAX (18446744073709551615). The loop executes, and on iteration i=1, input.substr(1, 0) throws std::out_of_range. The exception is uncaught, reaching std::terminate() and killing the process.

File: src/operators/verify_ssn.cc, lines 113-139:

Identical pattern in verify_cpf.cc:121 and verify_svnr.cc:90.

From owasp-modsecurity/ModSecurity's security advisory.

Workarounds

Don't use any mentioned operators.

Workarounds as given by owasp-modsecurity/ModSecurity's security advisory.

Affected software

SoftwareAffected versions
ModSecurityServers and applications · cpe:a:owasp:modsecurity
  • From 3.0.0 before 3.0.15
ModSecurityServers and applications · github:owasp-modsecurity/modsecurity
  • From 3.0.0 before 3.0.15

About ModSecurity

web application firewall (WAF) module

From Wikidata, CC0 1.0.
Docker Hub pulls
7,086,565Docker Hub, 15 Nov 2026
GitHub stars
9,872GitHub, 15 Nov 2026
Forks
1,761GitHub, 15 Nov 2026
Latest release
v3.0.17GitHub, 15 Nov 2026
Released
29 Sept 2026GitHub
Developer
Trustwave HoldingsWikidata
License
Apache Software License 2.0Wikidata
Written in
CWikidata
First published on GitHub
2 Feb 2011GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-42268
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-42268
  • GitHub Advisory Database https://github.com/advisories/GHSA-vwr3-7x7g-7p9w
  • github.com https://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-vwr3-7x7g-7p9w