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

Published Dec 4, 2025
·
Updated

802.1X. An authentication issue was addressed with improved state management.

Other sources

Accounts. An authorization issue was addressed with improved state management.

— Apple

Admin Framework. A path handling issue was addressed with improved validation.

— Apple

Apache HTTP Server 2.4.65 and earlier with Server Side Includes (SSI) enabled and modcgid (but not modcgi) passes the shell-escaped query string to #exec cmd="..." directives.

— Launchpad

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

— Microsoft

apache. This is a vulnerability in open source code and Apple Software is among the affected projects. The CVE-ID was assigned by a third party. Learn more about the issue and CVE-ID at cve.org.

— Apple

Credit

Héloïse Gollier, Mathy Vanhoef (KU Leuven), Rosyna Keller(Totally Not Malicious Software), CVE-2025-55753, CVE-2025-58098, CVE-2025-59775, CVE-2025-65082, CVE-2025-66200, Ryan Dowd@@_rdowd

Affected Software

18 affected componentsFixes available
Apache HTTP Server<2.4.66
Microsoft cbl2 httpd 2.4.65-1
Microsoft azl3 httpd 2.4.65-1
debian/apache2<=2.4.62-1~deb11u1
2.4.67-1~deb11u12.4.67-1~deb12u22.4.67-1~deb13u22.4.67-1
Apache HTTP Server<2.4.66
IBM DS8A00( R10.0 - R10.1 )<=10.1.3.0 - 10.11.35.0
IBM DS8900F ( R9.4)<=89.40.83.0-89.44.25.0
Apple macOS Sonoma<14.8.5
14.8.5
Apple macOS Sequoia<15.7.5
15.7.5
Apple macOS Tahoe<26.4
26.4
ubuntu/apache2<2.4.7-1ubuntu4.22+esm12
2.4.7-1ubuntu4.22+esm12
ubuntu/apache2<2.4.18-2ubuntu3.17+esm17
2.4.18-2ubuntu3.17+esm17
ubuntu/apache2<2.4.29-1ubuntu4.27+esm7
2.4.29-1ubuntu4.27+esm7
ubuntu/apache2<2.4.41-4ubuntu3.23+esm3
2.4.41-4ubuntu3.23+esm3
ubuntu/apache2<2.4.52-1ubuntu4.18
2.4.52-1ubuntu4.18
ubuntu/apache2<2.4.58-1ubuntu8.10
2.4.58-1ubuntu8.10
ubuntu/apache2<2.4.64-1ubuntu3.2
2.4.64-1ubuntu3.2
ubuntu/apache2<2.4.66-2ubuntu1
2.4.66-2ubuntu1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/apache2 to a version that resolves this vulnerability.

    Fixed in 2.4.67-1~deb11u1Fixed in 2.4.67-1~deb12u2Fixed in 2.4.67-1~deb13u2Fixed in 2.4.67-1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 14.8.5
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 15.7.5
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 26.4
  5. Upgrade

    Upgrade ubuntu/apache2 to a version that resolves this vulnerability.

    Fixed in 2.4.7-1ubuntu4.22+esm12
  6. Upgrade

    Upgrade ubuntu/apache2 to a version that resolves this vulnerability.

    Fixed in 2.4.18-2ubuntu3.17+esm17
  7. Upgrade

    Upgrade ubuntu/apache2 to a version that resolves this vulnerability.

    Fixed in 2.4.29-1ubuntu4.27+esm7
  8. Upgrade

    Upgrade ubuntu/apache2 to a version that resolves this vulnerability.

    Fixed in 2.4.41-4ubuntu3.23+esm3
  9. Upgrade

    Upgrade ubuntu/apache2 to a version that resolves this vulnerability.

    Fixed in 2.4.52-1ubuntu4.18
  10. Upgrade

    Upgrade ubuntu/apache2 to a version that resolves this vulnerability.

    Fixed in 2.4.58-1ubuntu8.10
  11. Upgrade

    Upgrade ubuntu/apache2 to a version that resolves this vulnerability.

    Fixed in 2.4.64-1ubuntu3.2
  12. Upgrade

    Upgrade ubuntu/apache2 to a version that resolves this vulnerability.

    Fixed in 2.4.66-2ubuntu1
  13. Upgrade

    Upgrade apache/httpd to a version that resolves this vulnerability.

    Fixed in 2.4.66
  14. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch CVE-2025-58098

Event History

Dec 5, 2025
CVE Published
via MITRE·01:40 PM
Data Sourced
via MITRE·01:40 PM
DescriptionWeakness
Data Sourced
via Red Hat·02:01 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·02:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·02:15 PM
DescriptionWeakness
Data Sourced
via NVD·05:16 PM
Severity
Dec 8, 2025
Data Sourced
via NVD·07:36 PM
Affected Software
Dec 11, 2025
Data Sourced
via Microsoft·01:01 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:01 AM
Affected Software
Jan 12, 2026
Exploit Published
via GitHub·08:47 AM
Mar 24, 2026
Data Sourced
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Aug 19, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-58098?

CVE-2025-58098 is considered a high severity vulnerability in Apache HTTP Server 2.4.65 and earlier.

2

How do I fix CVE-2025-58098?

To mitigate CVE-2025-58098, users should upgrade to Apache HTTP Server version 2.4.66 or later.

3

What versions of Apache HTTP Server are affected by CVE-2025-58098?

CVE-2025-58098 affects Apache HTTP Server 2.4.65 and earlier versions with Server Side Includes enabled.

4

What components are involved in CVE-2025-58098?

CVE-2025-58098 involves the use of mod_cgid with Server Side Includes (SSI) enabled.

5

What issue does CVE-2025-58098 cause?

CVE-2025-58098 allows the shell-escaped query string to be passed to #exec cmd="..." directives, potentially leading to remote code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203