
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-58098 is a command injection vulnerability in Apache HTTP Server affecting versions 2.4.65 and earlier. When Server Side Includes (SSI) is enabled alongside mod_cgid (but not mod_cgi), the server incorrectly passes the shell-escaped query string to #exec cmd="..." directives, enabling arbitrary command execution. The vulnerability was published on December 5, 2025, and is fixed in Apache HTTP Server 2.4.66. It carries a CVSS v3.1 base score of 8.3 (High) (Apache Advisory, Feedly).
The root cause is classified as CWE-201 (Insertion of Sensitive Information Into Sent Data). When mod_cgid is active and SSI is enabled, Apache HTTP Server improperly forwards the shell-escaped query string directly to #exec cmd directives within SSI pages, without adequate sanitization. This allows an attacker to inject shell commands via a crafted HTTP query string that gets executed by the CGI daemon process. The flaw is specific to mod_cgid and does not affect configurations using mod_cgi (Apache Advisory, Feedly).
Successful exploitation allows a low-privileged authenticated attacker to execute arbitrary commands on the server with the privileges of the web server process. The CVSS scoring reflects high confidentiality and integrity impact, with low availability impact, meaning an attacker could read sensitive server-side data, modify files, or pivot to further compromise the host. The vulnerability affects a broad range of downstream products including IBM Cloud Pak for Business Automation, IBM Business Automation Workflow, Oracle HTTP Server, Microsoft Azure Linux distributions, and Apple macOS (Feedly, Apple macOS Sequoia, Oracle CPU Jan 2026).
As of the time of reporting, there is no confirmed public proof-of-concept exploit and no evidence of active in-the-wild exploitation. A GitHub repository (dhmosfunk/CVE-2025-58098) has been observed with iterative commits, suggesting active PoC development activity, though no weaponized exploit has been confirmed. The EPSS score is approximately 0.041%, indicating low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (Feedly, GitHub PoC).
mod_cgid loaded. Tools like Shodan, Censys, or Nmap with HTTP banner grabbing can identify candidate targets..shtml pages or has SSI enabled via Options +Includes and that mod_cgid (not mod_cgi) is active in the server configuration.?cmd=id or ?;id). The shell-escaped query string will be passed to the #exec cmd SSI directive.<!--#exec cmd="..." --> directives, causing the server to execute the injected command via mod_cgid.www-data or apache), enabling data exfiltration, reverse shell establishment, or further lateral movement (Apache Advisory, Feedly)..shtml pages with shell metacharacters or command strings in query parameters (e.g., ?;id, ?cmd=whoami, URL-encoded shell operators).mod_cgid.httpd or cgid process (e.g., /bin/sh, curl, wget, nc, python) visible via ps or process monitoring tools.The primary remediation is to upgrade Apache HTTP Server to version 2.4.66 or later, which resolves this issue (Apache Advisory). As interim workarounds: (1) disable Server Side Includes (SSI) if not required by removing Options +Includes from the configuration; (2) disable or remove mod_cgid if CGI daemon functionality is not needed; (3) restrict access to SSI-enabled pages to trusted, authenticated users only. Downstream vendors including Red Hat, Debian, Ubuntu, Oracle, Apple, IBM, Fedora, AlmaLinux, Rocky Linux, and SUSE have released updated packages incorporating the fix (Red Hat, Ubuntu, Apple macOS Sequoia, Oracle CPU Jan 2026).
The vulnerability was disclosed via the Apache security mailing list and oss-security in December 2025, generating moderate community attention. Security news outlets such as SecurityOnline.info and RedHotCyber covered the Apache HTTP Server 2.4.66 release, highlighting this and related CVEs. Multiple Linux distribution security teams (Red Hat, Debian, Ubuntu, SUSE, Fedora, AlmaLinux) responded promptly with updated packages. A GitHub PoC repository was observed being actively developed shortly after disclosure, drawing attention from the security research community (oss-security, SecurityOnline, GitHub PoC).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."