CVEfocus › CVE database › CVE-2025-58098

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

CVSS 8.3 HighEPSS 0.8% (higher than 52% of CVEs)Published 2025-12-05Updated 2026-02-26Assigner: apache

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.

CWE-201

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

73Fixed
4Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04apache2Fixed2.4.66-2ubuntu1UBUNTU-CVE-2025-58098
Ubuntu 25.10apache2Fixed2.4.64-1ubuntu3.2UBUNTU-CVE-2025-58098
Ubuntu 24.04apache2Fixed2.4.58-1ubuntu8.10UBUNTU-CVE-2025-58098
Ubuntu 22.04apache2Fixed2.4.52-1ubuntu4.18UBUNTU-CVE-2025-58098
Ubuntu 20.04apache2Fix pending2.4.41-4ubuntu3.23+esm3 (Ubuntu Pro)UBUNTU-CVE-2025-58098
Ubuntu 18.04apache2Fix pending2.4.29-1ubuntu4.27+esm7 (Ubuntu Pro)UBUNTU-CVE-2025-58098
Ubuntu 16.04apache2Fix pending2.4.18-2ubuntu3.17+esm17 (Ubuntu Pro)UBUNTU-CVE-2025-58098
Ubuntu 14.04apache2Fix pending2.4.7-1ubuntu4.22+esm12 (Ubuntu Pro)UBUNTU-CVE-2025-58098
Debian 14apache2Fixed2.4.66-1DEBIAN-CVE-2025-58098
Debian 13apache2Fixed2.4.66-1~deb13u1DEBIAN-CVE-2025-58098
Debian 12apache2Fixed2.4.66-1~deb12u1DEBIAN-CVE-2025-58098
Red Hat Enterprise Linux 10httpdFixed0:2.4.63-4.el10_1.3RHSA-2025:23932
Red Hat Enterprise Linux 10httpd-coreFixed0:2.4.63-4.el10_1.3RHSA-2025:23932
Red Hat Enterprise Linux 10httpd-develFixed0:2.4.63-4.el10_1.3RHSA-2025:23932
Red Hat Enterprise Linux 10httpd-filesystemFixed0:2.4.63-4.el10_1.3RHSA-2025:23932
Red Hat Enterprise Linux 10httpd-manualFixed0:2.4.63-4.el10_1.3RHSA-2025:23932
Red Hat Enterprise Linux 10httpd-toolsFixed0:2.4.63-4.el10_1.3RHSA-2025:23932
Red Hat Enterprise Linux 10mod_ldapFixed0:2.4.63-4.el10_1.3RHSA-2025:23932
Red Hat Enterprise Linux 10mod_luaFixed0:2.4.63-4.el10_1.3RHSA-2025:23932
Red Hat Enterprise Linux 10mod_proxy_htmlFixed1:2.4.63-4.el10_1.3RHSA-2025:23932
Red Hat Enterprise Linux 10mod_sessionFixed0:2.4.63-4.el10_1.3RHSA-2025:23932
Red Hat Enterprise Linux 10mod_sslFixed1:2.4.63-4.el10_1.3RHSA-2025:23932
Red Hat Enterprise Linux 9httpdFixed0:2.4.62-7.el9_7.3RHSA-2025:23919
Red Hat Enterprise Linux 9httpd-coreFixed0:2.4.62-7.el9_7.3RHSA-2025:23919
Red Hat Enterprise Linux 9httpd-develFixed0:2.4.62-7.el9_7.3RHSA-2025:23919
Red Hat Enterprise Linux 9httpd-filesystemFixed0:2.4.62-7.el9_7.3RHSA-2025:23919
Red Hat Enterprise Linux 9httpd-manualFixed0:2.4.62-7.el9_7.3RHSA-2025:23919
Red Hat Enterprise Linux 9httpd-toolsFixed0:2.4.62-7.el9_7.3RHSA-2025:23919
Red Hat Enterprise Linux 9mod_ldapFixed0:2.4.62-7.el9_7.3RHSA-2025:23919
Red Hat Enterprise Linux 9mod_luaFixed0:2.4.62-7.el9_7.3RHSA-2025:23919
Red Hat Enterprise Linux 9mod_proxy_htmlFixed1:2.4.62-7.el9_7.3RHSA-2025:23919
Red Hat Enterprise Linux 9mod_sessionFixed0:2.4.62-7.el9_7.3RHSA-2025:23919
Red Hat Enterprise Linux 9mod_sslFixed1:2.4.62-7.el9_7.3RHSA-2025:23919
Red Hat Enterprise Linux 8httpdFixed0:2.4.37-65.module+el8.10.0+23815+1b5e1c66.7RHSA-2025:23732
Red Hat Enterprise Linux 8httpd-develFixed0:2.4.37-65.module+el8.10.0+23815+1b5e1c66.7RHSA-2025:23732
Red Hat Enterprise Linux 8httpd-filesystemFixed0:2.4.37-65.module+el8.10.0+23815+1b5e1c66.7RHSA-2025:23732
Red Hat Enterprise Linux 8httpd-manualFixed0:2.4.37-65.module+el8.10.0+23815+1b5e1c66.7RHSA-2025:23732
Red Hat Enterprise Linux 8httpd-toolsFixed0:2.4.37-65.module+el8.10.0+23815+1b5e1c66.7RHSA-2025:23732
Red Hat Enterprise Linux 8mod_http2Fixed0:1.15.7-10.module+el8.10.0+23369+11a81384.4RHSA-2025:23732
Red Hat Enterprise Linux 8mod_ldapFixed0:2.4.37-65.module+el8.10.0+23815+1b5e1c66.7RHSA-2025:23732
Red Hat Enterprise Linux 8mod_mdFixed1:2.0.8-8.module+el8.10.0+23815+1b5e1c66.2RHSA-2025:23732
Red Hat Enterprise Linux 8mod_proxy_htmlFixed1:2.4.37-65.module+el8.10.0+23815+1b5e1c66.7RHSA-2025:23732
Red Hat Enterprise Linux 8mod_sessionFixed0:2.4.37-65.module+el8.10.0+23815+1b5e1c66.7RHSA-2025:23732
Red Hat Enterprise Linux 8mod_sslFixed1:2.4.37-65.module+el8.10.0+23815+1b5e1c66.7RHSA-2025:23732
AlmaLinux 10httpd-filesystemFixed2.4.63-4.el10_1.3ALSA-2025:23932
AlmaLinux 9httpdFixed2.4.62-7.el9_7.3ALSA-2025:23919
AlmaLinux 9httpd-coreFixed2.4.62-7.el9_7.3ALSA-2025:23919
AlmaLinux 9httpd-develFixed2.4.62-7.el9_7.3ALSA-2025:23919
AlmaLinux 9httpd-filesystemFixed2.4.62-7.el9_7.3ALSA-2025:23919
AlmaLinux 9httpd-manualFixed2.4.62-7.el9_7.3ALSA-2025:23919
AlmaLinux 9httpd-toolsFixed2.4.62-7.el9_7.3ALSA-2025:23919
AlmaLinux 9mod_ldapFixed2.4.62-7.el9_7.3ALSA-2025:23919
AlmaLinux 9mod_luaFixed2.4.62-7.el9_7.3ALSA-2025:23919
AlmaLinux 9mod_proxy_htmlFixed1:2.4.62-7.el9_7.3ALSA-2025:23919
AlmaLinux 9mod_sessionFixed2.4.62-7.el9_7.3ALSA-2025:23919
AlmaLinux 9mod_sslFixed1:2.4.62-7.el9_7.3ALSA-2025:23919
AlmaLinux 8httpdFixed2.4.37-65.module_el8.10.0+4088+57f011c1.7ALSA-2025:23732
AlmaLinux 8httpd-develFixed2.4.37-65.module_el8.10.0+4088+57f011c1.7ALSA-2025:23732
AlmaLinux 8httpd-filesystemFixed2.4.37-65.module_el8.10.0+4088+57f011c1.7ALSA-2025:23732
AlmaLinux 8httpd-manualFixed2.4.37-65.module_el8.10.0+4088+57f011c1.7ALSA-2025:23732
AlmaLinux 8httpd-toolsFixed2.4.37-65.module_el8.10.0+4088+57f011c1.7ALSA-2025:23732
AlmaLinux 8mod_http2Fixed1.15.7-10.module_el8.10.0+4044+ea5f78b1.4ALSA-2025:23732
AlmaLinux 8mod_ldapFixed2.4.37-65.module_el8.10.0+4088+57f011c1.7ALSA-2025:23732
AlmaLinux 8mod_mdFixed1:2.0.8-8.module_el8.10.0+4088+57f011c1.2ALSA-2025:23732
AlmaLinux 8mod_proxy_htmlFixed1:2.4.37-65.module_el8.10.0+4088+57f011c1.7ALSA-2025:23732
AlmaLinux 8mod_sessionFixed2.4.37-65.module_el8.10.0+4088+57f011c1.7ALSA-2025:23732
AlmaLinux 8mod_sslFixed1:2.4.37-65.module_el8.10.0+4088+57f011c1.7ALSA-2025:23732
Rocky Linux 10httpdFixed0:2.4.63-4.el10_1.3RLSA-2025:23932
Rocky Linux 9httpdFixed0:2.4.62-7.el9_7.3RLSA-2025:23919
Rocky Linux 8httpdFixed0:2.4.37-65.module+el8.10.0+1984+1bed3124.4RLSA-2025:23732
Rocky Linux 8mod_http2Fixed0:1.15.7-10.module+el8.10.0+1775+6b057638RLSA-2025:23732
Rocky Linux 8mod_mdFixed1:2.0.8-8.module+el8.9.0+1370+89cc8ad5RLSA-2025:23732
Alpine Linux 3.24apache2Fixed2.4.66-r0ALPINE-CVE-2025-58098
Alpine Linux 3.23apache2Fixed2.4.66-r0ALPINE-CVE-2025-58098
Alpine Linux 3.22apache2Fixed2.4.66-r0ALPINE-CVE-2025-58098
Alpine Linux 3.21apache2Fixed2.4.66-r0ALPINE-CVE-2025-58098
Alpine Linux 3.20apache2Fixed2.4.66-r0ALPINE-CVE-2025-58098

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.