What’s Vulnerable › Vulnerabilities

CVE-2025-58098: Apache HTTP Server: Server Side Includes adds query string to #exec cmd=...

Description

Apache HTTP Server 2.4.65 and earlier with Server Side Includes (SSI) enabled and mod_cgid (but not mod_cgi) passes the shell-escaped query string to #exec cmd="..." directives. This issue affects Apache HTTP Server before 2.4.66. Users are recommended to upgrade to version 2.4.66, which fixes the issue.

Affected products

How to fix

Upgrade to a fixed version: Apache HTTP Server 2.4.66. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-58098 or the next vulnerability affects your stack