---
id: CVE-2025-58098
title: >-
  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.


  User…
summary: >-
  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.


  User…
severity: high
cvss: 8.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L'
cwe:
  - CWE-201
vendor: apache
product: http_server
affected:
  - http_server < 2.4.66
patched:
  - http_server 2.4.66
published: '2025-12-05'
updated: '2026-09-25'
sourceUpdated: '2026-09-25T23:10:00.463'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-58098'
references:
  - url: 'https://httpd.apache.org/security/vulnerabilities_24.html'
    label: security@apache.org
  - url: 'http://www.openwall.com/lists/oss-security/2025/12/04/5'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - exploit-available
epss: 0.01424
epssPercentile: 0.71781
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/dhmosfunk/CVE-2025-58098'
  checkedAt: '2026-09-25T23:21:52.272Z'
exploitAvailable: true
ingestedAt: '2026-09-25T23:21:16.894Z'
---

## Overview

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

- `http_server < 2.4.66`

## Remediation

Upgrade past the affected range:

- `http_server 2.4.66`
