CVE-2026-61813

ModSecurity: Incorrect libcurl TLS hostname verification setting in HttpsClient::download

Published Nov 5, 2026 CVSS 3.1 · 3.7 Low EPSS < 1% KEV · Not listed
Description
ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. Prior to 2.9.15 and 3.0.17, the HttpsClient::download function in src/utils/https_client.cc sets libcurl CURLOPT_SSL_VERIFYHOST to 1 instead of the strict value 2L. Under adversary-in-the-middle and TLS interception conditions, this non-strict setting may weaken TLS peer identity validation and increase the risk of accepting a certificate for an unintended host. End-to-end exploitation is non-trivial in typical environments. This issue is fixed in versions 2.9.15 and 3.0.17.

Analysis

AI-generated

Technical impact

ModSecurity's HttpsClient::download function incorrectly sets libcurl's SSL_VERIFYHOST option to a non‑strict value (1 instead of 2), weakening the verification of the server’s hostname during TLS handshakes. In the presence of a man‑in‑the‑middle or TLS interception, this may allow the client to accept a certificate issued for an unintended host, thereby exposing the communication to potential spoofing. Although bypassing hostname validation does not immediately grant remote execution, it can facilitate credential theft or data tampering if the attacker controls the TLS link.

Affected Systems

The vulnerability affects the ModSecurity web application firewall engine for Apache, IIS, and Nginx, specifically versions released before ModSecurity 2.9.15 and 3.0.17. The earlier 2.x and 3.x branches contain the insecure setting. Users deploying those editions should review their version and upgrade to at least 2.9.15 or 3.0.17 to eliminate the issue.

Risk and Exploitability

The CVSS base score of 3.7 indicates low severity, and the lack of a publicly disclosed exploit and absence from the CISA KEV catalog suggest limited threat. Nonetheless, the EPSS score is unavailable, so the precise exploitation likelihood is uncertain, but under suitable man‑in‑the‑middle conditions the weakness can be leveraged. The primary attack vector is a TLS interception that forces the client to accept a non‑hostmatching certificate, which requires physical or network control of traffic, making widespread exploitation challenging but still relevant for targeted attacks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ModSecurity to version 2.9.15 or later releases 3.0.17 and above to apply the official fix
  • Verify that libcurl’s SSL_VERIFYHOST option is set to the strict value 2 in any custom configuration or in the source before deployment
  • Ensure TLS connections use certificates signed by trusted authorities and validate hostnames in all client code; monitor for suspicious TLS proxy activity

Generated by OpenCVE AI on November 5, 2026 at 17:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Modsecurity
Modsecurity modsecurity
Vendors & Products Modsecurity
Modsecurity modsecurity
Type Values Removed Values Added
Description ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. Prior to 2.9.15 and 3.0.17, the HttpsClient::download function in src/utils/https_client.cc sets libcurl CURLOPT_SSL_VERIFYHOST to 1 instead of the strict value 2L. Under adversary-in-the-middle and TLS interception conditions, this non-strict setting may weaken TLS peer identity validation and increase the risk of accepting a certificate for an unintended host. End-to-end exploitation is non-trivial in typical environments. This issue is fixed in versions 2.9.15 and 3.0.17.
Title ModSecurity: Incorrect libcurl TLS hostname verification setting in HttpsClient::download
Weaknesses CWE-295
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N'}

Weaknesses
  • CWE-295

    Improper Certificate Validation

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 9, 2026, 4:51 PM
Reserved
Jul 10, 2026, 8:17 PM
Status
Awaiting Analysis
Published
Nov 5, 2026, 4:17 PM
Modified
Nov 12, 2026, 8:04 PM
Severity
Low
Public date
Nov 5, 2026, 3:48 PM