Skip to main content
Public proof of conceptFix available

CVE-2025-58098

A public proof of concept exists; no exploitation attested.

  • Published2025-12-05
  • Fixed in2.4.66
  • WeaknessCWE-201

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2025-12-0514:15CVE publishedNVD

Versions per branch

NVD · OSV
Apache HTTP Server
BranchAffectedFixed in
2.4< 2.4.662.4.66

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Apache Software Foundation Apache HTTP Serverother versions: not affected
    Affected
    • < 2.4.66fixed in 2.4.66semver

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2025-12-05

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • apacheMageia:9all versions · fixed in 2.4.66-1.mga9
  • apache2Ubuntu:Pro:20.04:LTSall versions · fixed in 2.4.41-4ubuntu3.23+esm3
  • apache2Ubuntu:Pro:18.04:LTSall versions · fixed in 2.4.29-1ubuntu4.27+esm7
  • apache2Ubuntu:Pro:16.04:LTSall versions · fixed in 2.4.18-2ubuntu3.17+esm17
  • apache2Ubuntu:Pro:14.04:LTSall versions · fixed in 2.4.7-1ubuntu4.22+esm12
  • apache2Ubuntu:26.04:LTSall versions · fixed in 2.4.66-2ubuntu1
  • apache2Ubuntu:25.10all versions · fixed in 2.4.64-1ubuntu3.2
  • apache2Ubuntu:24.04:LTSall versions · fixed in 2.4.58-1ubuntu8.10

180 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-58098 Red Hat Product Security980 products fixed

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

  • RHSA-2026:5156 Red Hat Product Security13 products fixed

    Red Hat Security Advisory: Red Hat Hardened Images RPM Release

  • RHSA-2026:2994 Red Hat Product Security27 products fixed

    Red Hat Security Advisory: Red Hat JBoss Core Services Apache HTTP Server 2.4.62 SP3 security update

  • RHSA-2026:2995 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat JBoss Core Services Apache HTTP Server 2.4.62 SP3 security update

  • RHSA-2026:0171 Red Hat Product Security75 products fixed

    Red Hat Security Advisory: httpd security update

  • RHSA-2026:0141 Red Hat Product Security75 products fixed

    Red Hat Security Advisory: httpd security update

12 more advisories

Full record on NVD

Fix

  1. Update Apache HTTP Server to 2.4.66
  2. Vendor fix Red Hat Product Security RHSA-2026:5156 · 13 productsRed Hat Hardened Images RPM Release
  3. Vendor fix Red Hat Product Security RHSA-2026:2994 · 27 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2026:2995 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. The References section of this erratum contains a download link. You must be logged in to download the update.
  5. Vendor fix Red Hat Product Security RHSA-2026:0171 · 75 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  6. Workaround from the vendor Red Hat Product Security RHSA-2026:5156 · 23 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
Published
2025-12-05
Last modified
2026-09-25
NVD status
Analyzed
GitHub advisory
GHSA-4m29-g52g-c6qc

Frequently asked questions

What is CVE-2025-58098?

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.

Is CVE-2025-58098 actively exploited?

Active exploitation of CVE-2025-58098 has not been confirmed. Its EPSS score was 1.5% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-58098?

CVE-2025-58098 has a CVSS v3 base score of 8.3 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L.

Running Apache HTTP Server? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record