CVE-2026-61813

Description

A flaw was found in ModSecurity. An attacker positioned in the communication path can bypass peer identity verification due to an improper Transport Layer Security (TLS) hostname validation setting in the internal HTTPS client. This issue allows the attacker to present a certificate issued for an unintended host, potentially enabling them to intercept or tamper with encrypted traffic.

Statement

This vulnerability is rated as having a Low impact because exploitation requires an adversary-in-the-middle network position and only affects non-default configurations that retrieve external rules over HTTPS. Standard deployments on Red Hat Enterprise Linux typically utilize locally provisioned rule files, such as the Core Rule Set provided by system RPMs, rather than fetching remote rulesets dynamically at runtime. Because hostname verification is only weakened during outbound remote rule retrieval, standard request inspection and web application firewall operations for inbound client traffic remain unaffected.

Mitigation

Avoid using remote rule retrieval over HTTPS by loading rule sets locally from the host filesystem.

In the web server configuration (such as `/etc/httpd/conf.d/mod_security.conf`), remove or comment out any `SecRemoteRules` directives pointing to remote HTTPS endpoints. Instead, deploy rule files locally and reference them using standard `Include` directives.

Apply the configuration change by reloading the web server:

systemctl reload httpd

Caveats: Switching from remote rules requires synchronizing and deploying rule files locally using configuration management or local packages.
Warning: Reloading the web server service will temporarily disrupt the processing of configuration directives and may cause brief connection delays.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score3.7N/A3.7
Attack VectorNetworkN/ANetwork
Attack ComplexityHighN/AHigh
Privileges RequiredNoneN/ANone
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityLowN/ALow
Integrity ImpactNoneN/ANone
Availability ImpactNoneN/ANone

Vector

Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

cve.org: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Understanding the Weakness (CWE)

Integrity,Authentication

Technical Impact: Bypass Protection Mechanism; Gain Privileges or Assume Identity

When a certificate is invalid or malicious, it might allow an attacker to spoof a trusted entity by interfering in the communication path between the host and client. The product might connect to a malicious host while believing it is a trusted host, or the product might be deceived into accepting spoofed data that appears to originate from a trusted host.

Frequently Asked Questions

Want to get errata notifications? Sign up here.