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
- 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.
Workarounds
Don't use any mentioned operators.
Affected software
| Software | Affected versions |
|---|---|
ModSecurityServers and applications · cpe:a:owasp:modsecurity |
|
ModSecurityServers and applications · github:owasp-modsecurity/modsecurity |
|
About ModSecurity
web application firewall (WAF) module
- 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
Website Source code Docker image
Vulnerabilities in ModSecurity
- In our list
- 36
- Published in the last 12 months
- 12
- Critical, last 12 months
- 0
- High, last 12 months
- 6
- Known exploited
- 0
- CVE-2026-61813ModSecurity: Incorrect libcurl TLS hostname verification setting in HttpsClient::downloadLow 3.7 5 Nov 2026
- CVE-2026-104269RFC 2231 `filename*` Parameter Bypasses Multipart Filename Rules on RFC-Compliant Backends (Go, Python, Node, Java)High 8.6 30 Sept 2026
- GHSA-4j47-8qcr-jf59`t:base64DecodeExt` silently discards the entire decoded value on a malformed base64 padding group, bypassing rule matchingMedium 5.8 30 Sept 2026
- CVE-2026-104259removeComments Transformation Fails to Strip Adjacent Comments, Enabling WAF Rule BypassMedium 5.4 30 Sept 2026
- CVE-2026-103932PCRE2 `@rxGlobal` match-limit errors are converted to no-matchMedium 5.8 30 Sept 2026
- CVE-2026-73857ModSecurity v3 XML Request Body Processor Uninitialized Pointer Dereference VulnerabilityHigh 7.5 30 Sept 2026
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