Skip to content
OpenAdvisories
High · 8.3 Public exploit CVE-2025-58098 EUVD-2025-201408GHSA-4m29-g52g-c6qc

Apache HTTP Server: Server Side Includes adds query string to #exec cmd=...

Published Dec 5, 2025 · Updated Feb 26, 2026 · Assigned by apache

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

VendorProductAffectedFixed
Apache Software Foundation Apache HTTP Server < 2.4.66 2.4.66

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 apache2 2.4.66-1 —
Debian 13 apache2 2.4.66-1~deb13u1 —
Debian 12 apache2 2.4.66-1~deb12u1 —
Debian 11 apache2 2.4.66-1~deb11u1 DLA-4452-1
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS apache2 2.4.66-2ubuntu1 —
Ubuntu 25.10 apache2 2.4.64-1ubuntu3.2 USN-7968-1
Ubuntu 24.04 LTS apache2 2.4.58-1ubuntu8.10 USN-7968-1
Ubuntu 22.04 LTS apache2 2.4.52-1ubuntu4.18 USN-7968-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS apache2 2.4.41-4ubuntu3.23+esm3 USN-8338-1
Ubuntu Pro 18.04 LTS apache2 2.4.29-1ubuntu4.27+esm7 USN-8338-1
Ubuntu Pro 16.04 LTS apache2 2.4.18-2ubuntu3.17+esm17 USN-8338-1
Ubuntu Pro 14.04 LTS apache2 2.4.7-1ubuntu4.22+esm12 USN-8338-1
ReleasePackageFixed inAdvisory
RHEL 10 httpd +8 2.4.63-4.el10_1.3 RHSA-2025:23932
RHEL 10 mod_ssl +1 1:2.4.63-4.el10_1.3 RHSA-2025:23932
RHEL 9 httpd +8 2.4.62-7.el9_7.3 RHSA-2025:23919
RHEL 9 mod_ssl +1 1:2.4.62-7.el9_7.3 RHSA-2025:23919
RHEL 8 httpd +6 2.4.37-65.module+el8.10.0+23815+1b5e1c66.7 RHSA-2025:23732
RHEL 8 mod_http2 1.15.7-10.module+el8.10.0+23369+11a81384.4 RHSA-2025:23732
RHEL 8 mod_md 1:2.0.8-8.module+el8.10.0+23815+1b5e1c66.2 RHSA-2025:23732
RHEL 8 mod_ssl +1 1:2.4.37-65.module+el8.10.0+23815+1b5e1c66.7 RHSA-2025:23732
Show 17 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS httpd +8 2.4.63-1.el10_0.3 RHSA-2026:0171
RHEL 10.0 EUS mod_ssl +1 1:2.4.63-1.el10_0.3 RHSA-2026:0171
RHEL 9.6 EUS httpd +8 2.4.62-4.el9_6.5 RHSA-2026:0090
RHEL 9.6 EUS mod_ssl +1 1:2.4.62-4.el9_6.5 RHSA-2026:0090
RHEL 9.4 EUS httpd +8 2.4.57-11.el9_4.4 RHSA-2026:0141
RHEL 9.4 EUS mod_ssl +1 1:2.4.57-11.el9_4.4 RHSA-2026:0141
RHEL 9.2 E4S httpd +8 2.4.53-11.el9_2.14 RHSA-2026:0139
RHEL 9.2 E4S mod_ssl +1 1:2.4.53-11.el9_2.14 RHSA-2026:0139
RHEL 9.0 E4S httpd +7 2.4.51-7.el9_0.11 RHSA-2026:0095
RHEL 9.0 E4S mod_ssl +1 1:2.4.51-7.el9_0.11 RHSA-2026:0095
RHEL 8.8 TUS httpd +6 2.4.37-56.module+el8.8.0+23840+d7e7db80.11 RHSA-2026:0012
RHEL 8.8 TUS mod_http2 1.15.7-8.module+el8.8.0+23464+a2e0c444.6 RHSA-2026:0012
RHEL 8.8 TUS mod_md 1:2.0.8-8.module+el8.8.0+23840+d7e7db80.1 RHSA-2026:0012
RHEL 8.8 TUS mod_ssl +1 1:2.4.37-56.module+el8.8.0+23840+d7e7db80.11 RHSA-2026:0012
RHEL 8.8 E4S httpd +6 2.4.37-56.module+el8.8.0+23840+d7e7db80.11 RHSA-2026:0012
RHEL 8.8 E4S mod_http2 1.15.7-8.module+el8.8.0+23464+a2e0c444.6 RHSA-2026:0012
RHEL 8.8 E4S mod_md 1:2.0.8-8.module+el8.8.0+23840+d7e7db80.1 RHSA-2026:0012
RHEL 8.8 E4S mod_ssl +1 1:2.4.37-56.module+el8.8.0+23840+d7e7db80.11 RHSA-2026:0012
RHEL 8.6 TUS httpd +6 2.4.37-47.module+el8.6.0+23843+c27a5dc4.12 RHSA-2026:0011
RHEL 8.6 TUS mod_http2 1.15.7-5.module+el8.6.0+23463+5d5709c6.4 RHSA-2026:0011
RHEL 8.6 TUS mod_md 1:2.0.8-8.module+el8.6.0+23843+c27a5dc4.1 RHSA-2026:0011
RHEL 8.6 TUS mod_ssl +1 1:2.4.37-47.module+el8.6.0+23843+c27a5dc4.12 RHSA-2026:0011
RHEL 8.6 E4S httpd +6 2.4.37-47.module+el8.6.0+23843+c27a5dc4.12 RHSA-2026:0011
RHEL 8.6 E4S mod_http2 1.15.7-5.module+el8.6.0+23463+5d5709c6.4 RHSA-2026:0011
RHEL 8.6 E4S mod_md 1:2.0.8-8.module+el8.6.0+23843+c27a5dc4.1 RHSA-2026:0011
RHEL 8.6 E4S mod_ssl +1 1:2.4.37-47.module+el8.6.0+23843+c27a5dc4.12 RHSA-2026:0011
RHEL 8.6 AUS httpd +6 2.4.37-47.module+el8.6.0+23843+c27a5dc4.12 RHSA-2026:0011
RHEL 8.6 AUS mod_http2 1.15.7-5.module+el8.6.0+23463+5d5709c6.4 RHSA-2026:0011
RHEL 8.6 AUS mod_md 1:2.0.8-8.module+el8.6.0+23843+c27a5dc4.1 RHSA-2026:0011
RHEL 8.6 AUS mod_ssl +1 1:2.4.37-47.module+el8.6.0+23843+c27a5dc4.12 RHSA-2026:0011
RHEL 8.4 EUS Long Life httpd +6 2.4.37-39.module+el8.4.0+23842+00253415.11 RHSA-2026:0010
RHEL 8.4 EUS Long Life mod_http2 1.15.7-3.module+el8.4.0+23462+1fa78ba3.4 RHSA-2026:0010
RHEL 8.4 EUS Long Life mod_md 1:2.0.8-8.module+el8.4.0+23842+00253415.1 RHSA-2026:0010
RHEL 8.4 EUS Long Life mod_ssl +1 1:2.4.37-39.module+el8.4.0+23842+00253415.11 RHSA-2026:0010
RHEL 8.4 AUS httpd +6 2.4.37-39.module+el8.4.0+23842+00253415.11 RHSA-2026:0010
RHEL 8.4 AUS mod_http2 1.15.7-3.module+el8.4.0+23462+1fa78ba3.4 RHSA-2026:0010
RHEL 8.4 AUS mod_md 1:2.0.8-8.module+el8.4.0+23842+00253415.1 RHSA-2026:0010
RHEL 8.4 AUS mod_ssl +1 1:2.4.37-39.module+el8.4.0+23842+00253415.11 RHSA-2026:0010
RHEL 8.2 AUS httpd +6 2.4.37-21.module+el8.2.0+23841+60fa4803.11 RHSA-2026:0009
RHEL 8.2 AUS mod_http2 1.11.3-3.module+el8.2.0+23461+1d03af5c.5 RHSA-2026:0009
RHEL 8.2 AUS mod_md 1:2.0.8-7.module+el8.2.0+23841+60fa4803.1 RHSA-2026:0009
RHEL 8.2 AUS mod_ssl +1 1:2.4.37-21.module+el8.2.0+23841+60fa4803.11 RHSA-2026:0009
RHEL 7 ELS httpd +5 2.4.6-99.el7_9.7 RHSA-2026:0075
RHEL 7 ELS mod_ssl +1 1:2.4.6-99.el7_9.7 RHSA-2026:0075
RHEL 6 ELS httpd +3 2.2.15-71.el6_10.2 RHSA-2026:0074
RHEL 6 ELS mod_ssl 1:2.2.15-71.el6_10.2 RHSA-2026:0074
Red Hat JBoss Core Services 1 jbcs-httpd24-apr-util +8 1.6.3-4.el7jbcs RHSA-2026:2994
Red Hat JBoss Core Services 1 jbcs-httpd24-curl +2 8.11.0-4.el7jbcs RHSA-2026:2994
Red Hat JBoss Core Services 1 jbcs-httpd24-httpd +6 2.4.62-11.el7jbcs RHSA-2026:2994
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_http2 2.0.29-8.el7jbcs RHSA-2026:2994
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_jk +1 1.2.50-12.redhat_1.el7jbcs RHSA-2026:2994
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_md 1:2.4.28-13.el7jbcs RHSA-2026:2994
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_proxy_cluster 1.3.22-7.el7jbcs RHSA-2026:2994
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_security 2.9.6-14.el7jbcs RHSA-2026:2994
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_ssl +1 1:2.4.62-11.el7jbcs RHSA-2026:2994
Red Hat JBoss Core Services 1 jbcs-httpd24-openssl +4 1:1.1.1k-21.el7jbcs RHSA-2026:2994
Red Hat JBoss Core Services 1 jbcs-httpd24-openssl-chil 1.0.0-25.el7jbcs RHSA-2026:2994
Red Hat JBoss Core Services 1 jbcs-httpd24-openssl-pkcs11 0.4.12-5.el7jbcs RHSA-2026:2994
Red Hat Hardened Images 1 httpd +5 2.4.66-6.hum1 RHSA-2026:5156

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 httpd-filesystem 2.4.63-4.el10_1.3 ALSA-2025:23932
AlmaLinux 9 httpd +8 2.4.62-7.el9_7.3 ALSA-2025:23919
AlmaLinux 9 mod_ssl +1 1:2.4.62-7.el9_7.3 ALSA-2025:23919
AlmaLinux 8 httpd +6 2.4.37-65.module_el8.10.0+4088+57f011c1.7 ALSA-2025:23732
AlmaLinux 8 mod_http2 1.15.7-10.module_el8.10.0+4044+ea5f78b1.4 ALSA-2025:23732
AlmaLinux 8 mod_md 1:2.0.8-8.module_el8.10.0+4088+57f011c1.2 ALSA-2025:23732
AlmaLinux 8 mod_ssl +1 1:2.4.37-65.module_el8.10.0+4088+57f011c1.7 ALSA-2025:23732

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 httpd 2.4.63-4.el10_1.3 RLSA-2025:23932
Rocky Linux 9 httpd 2.4.62-7.el9_7.3 RLSA-2025:23919
Rocky Linux 8 httpd 2.4.37-65.module+el8.10.0+1830+22f0c9e0 RLSA-2025:23732
Rocky Linux 8 mod_http2 1.15.7-10.module+el8.10.0+1775+6b057638 RLSA-2025:23732
Rocky Linux 8 mod_md 1:2.0.8-8.module+el8.9.0+1370+89cc8ad5 RLSA-2025:23732
ReleasePackageFixed inAdvisory
SLES 15 SP7 apache2 2.4.51-150400.6.52.1 SUSE-SU-2026:0019-1, SUSE-SU-2025:4518-1
SLES 15 SP7 apache2-devel +4 2.4.62-150700.4.9.1 SUSE-SU-2025:4518-1
SLES 15 SP6 apache2 2.4.51-150400.6.52.1 SUSE-SU-2026:0020-1, SUSE-SU-2026:0019-1
SLES 15 SP6 apache2-devel +3 2.4.58-150600.5.41.1 SUSE-SU-2026:0020-1
SLES 15 SP5 apache2 2.4.51-150400.6.52.1 SUSE-SU-2026:2686-1, SUSE-SU-2026:0019-1
SLES 15 SP4 apache2 2.4.51-150400.6.52.1 SUSE-SU-2026:2686-1, SUSE-SU-2026:0019-1
SLES 12 SP5 apache2 +1 2.4.51-35.75.1 SUSE-SU-2025:4488-1
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 apache2 +6 2.4.63-160000.3.1 SUSE-SU-2026:20081-1
SLES for SAP 15 SP6 apache2 2.4.51-150400.6.52.1 SUSE-SU-2026:0020-1, SUSE-SU-2026:0019-1
SLES for SAP 15 SP6 apache2-devel +3 2.4.58-150600.5.41.1 SUSE-SU-2026:0020-1
SLES for SAP 15 SP5 apache2 2.4.51-150400.6.52.1 SUSE-SU-2026:2686-1, SUSE-SU-2026:0019-1
SLES for SAP 15 SP4 apache2 2.4.51-150400.6.52.1 SUSE-SU-2026:2686-1, SUSE-SU-2026:0019-1
SLES 16.0 apache2 +6 2.4.63-160000.3.1 SUSE-SU-2026:20081-1
SLE HPC 15 SP5 apache2 2.4.51-150400.6.52.1 SUSE-SU-2026:2686-1, SUSE-SU-2026:0019-1
SLE HPC 15 SP4 apache2 2.4.51-150400.6.52.1 SUSE-SU-2026:2686-1, SUSE-SU-2026:0019-1
SUSE Manager Server LTS 4.3 apache2 2.4.51-150400.6.52.1 SUSE-SU-2026:0019-1
SUSE Manager Proxy LTS 4.3 apache2 2.4.51-150400.6.52.1 SUSE-SU-2026:0019-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed apache2 2.4.66-1.1 openSUSE-SU-2025:15808-1
openSUSE Leap 16.0 apache2 +6 2.4.63-160000.3.1 openSUSE-SU-2026:20030-1
openSUSE Leap 15.6 apache2 +6 2.4.58-150600.5.41.1 SUSE-SU-2026:0020-1
ReleasePackageFixed inAdvisory
Alpine v3.24 apache2 2.4.66-r0 —
Alpine v3.23 apache2 2.4.66-r0 —
Alpine v3.22 apache2 2.4.66-r0 —
Alpine v3.21 apache2 2.4.66-r0 —
Alpine v3.20 apache2 2.4.66-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 httpd +8 2.4.66-1.amzn2023.0.1 ALAS2023-2025-1318
Amazon Linux 2023 mod_ssl +1 1:2.4.66-1.amzn2023.0.1 ALAS2023-2025-1318
Amazon Linux 2 httpd +7 2.4.66-1.amzn2.0.1 ALAS2-2025-3099
Amazon Linux 2 mod_ssl +1 1:2.4.66-1.amzn2.0.1 ALAS2-2025-3099

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 httpd 2.4.66-1 —
Azure Linux 2 (CBL-Mariner) httpd 2.4.66-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 httpd +8 2.4.63-4.0.1.el10_1.3 ELSA-2025-23932
Oracle Linux 10 mod_ssl +1 1:2.4.63-4.0.1.el10_1.3 ELSA-2025-23932
Oracle Linux 9 httpd +8 2.4.62-7.0.1.el9_7.3 ELSA-2025-23919
Oracle Linux 9 mod_ssl +1 1:2.4.62-7.0.1.el9_7.3 ELSA-2025-23919
Oracle Linux 8 httpd +6 2.4.37-65.0.1.module+el8.10.0+90740+3332f30e.7 ELSA-2025-23732
Oracle Linux 8 mod_http2 1.15.7-10.module+el8.10.0+90652+bef864ba.4 ELSA-2025-23732
Oracle Linux 8 mod_md 1:2.0.8-8.module+el8.10.0+90740+3332f30e.2 ELSA-2025-23732
Oracle Linux 8 mod_ssl +1 1:2.4.37-65.0.1.module+el8.10.0+90740+3332f30e.7 ELSA-2025-23732
Oracle Linux 7 httpd +5 2.4.6-99.0.9.el7_9.1 ELSA-2026-0075
Oracle Linux 7 mod_ssl +1 1:2.4.6-99.0.9.el7_9.1 ELSA-2026-0075

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 49

References