Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2024-38474: Substitution encoding issue in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows attacker to execute

65
This week
CRITICAL 9.8REMOTEWATCHLISTUPGRADEMITIGATE

CVE-2024-38474 is a critical-severity flaw (CVSS 9.8) affecting http server, clustered data ontap. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

Substitution encoding issue in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows attacker to execute scripts in directories permitted by the configuration but not directly reachable by any URL or source disclosure of scripts meant to only to be executed as CGI. Users are recommended to upgrade to version 2.4.60, which fixes this issue. Some RewriteRules that capture and substitute unsafely will now fail unless rewrite flag "UnsafeAllo

Why this priority

  • Critical severity
  • Remotely exploitable, no login, no user action
  • On your watchlist

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance2.5% (top 16%)
CISA exploited listNo
WeaknessCWE-116
Published2024-07-01
Last modified2026-06-17
Publisher (CNA): Apache Software Foundation · Vendor: apache · netapp

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

apache http server UPGRADE
Affected: >= 2.4.0 and < 2.4.60
Fixed in: 2.4.60
Safe to downgrade to: a release before 2.4.0
1. Check installed version
apt-cache policy http-server || rpm -q http-server || http-server --version
2. UPGRADE to 2.4.60 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade http-server
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade http-server
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 2.4.0 (Debian / Ubuntu)
apt-cache madison http-server sudo apt install http-server=<VERSION_BEFORE_2.4.0> sudo apt-mark hold http-server
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list http-server sudo dnf downgrade http-server-<VERSION_BEFORE_2.4.0> sudo dnf versionlock add http-server
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
netapp clustered data ontap MITIGATE
Affected: 9.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 9.0
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.

Exact fixes by distribution

A distro patch exists: prefer upgrading over downgrading.
Fedora 46 · sbcl · FIXED · 2.6.10-1.fc46 · FEDORA-2026-feab1a81c6 · source
sudo dnf upgrade --advisory=FEDORA-2026-feab1a81c6
Fedora ELN · python-archspec · FIXED · 0.2.7-1.eln159 · FEDORA-2026-e2a8272db6 · source
sudo dnf upgrade --advisory=FEDORA-2026-e2a8272db6
Ubuntu 20.04 · apache2 · FIXED · 2.4.41-4ubuntu3.23
sudo apt update && sudo apt install --only-upgrade apache2 dpkg --compare-versions "$(dpkg-query -W -f='${Version}' apache2)" ge "2.4.41-4ubuntu3.23" && echo PATCHED || echo STILL-VULNERABLE
Ubuntu 22.04 · apache2 · FIXED · 2.4.52-1ubuntu4.16
sudo apt update && sudo apt install --only-upgrade apache2 dpkg --compare-versions "$(dpkg-query -W -f='${Version}' apache2)" ge "2.4.52-1ubuntu4.16" && echo PATCHED || echo STILL-VULNERABLE
Ubuntu 24.04 · apache2 · FIXED · 2.4.58-1ubuntu8.8
sudo apt update && sudo apt install --only-upgrade apache2 dpkg --compare-versions "$(dpkg-query -W -f='${Version}' apache2)" ge "2.4.58-1ubuntu8.8" && echo PATCHED || echo STILL-VULNERABLE
Ubuntu 24.10 · apache2 · FIXED · 2.4.62-1ubuntu1.1
sudo apt update && sudo apt install --only-upgrade apache2 dpkg --compare-versions "$(dpkg-query -W -f='${Version}' apache2)" ge "2.4.62-1ubuntu1.1" && echo PATCHED || echo STILL-VULNERABLE
Ubuntu 25.04 · apache2 · FIXED · 2.4.62-1ubuntu1
sudo apt update && sudo apt install --only-upgrade apache2 dpkg --compare-versions "$(dpkg-query -W -f='${Version}' apache2)" ge "2.4.62-1ubuntu1" && echo PATCHED || echo STILL-VULNERABLE
Debian 12 · apache2 · FIXED · 2.4.61-1~deb12u1
sudo apt update && sudo apt install --only-upgrade apache2 dpkg --compare-versions "$(dpkg-query -W -f='${Version}' apache2)" ge "2.4.61-1~deb12u1" && echo PATCHED || echo STILL-VULNERABLE
Debian 13 · apache2 · FIXED · 2.4.60-1
sudo apt update && sudo apt install --only-upgrade apache2 dpkg --compare-versions "$(dpkg-query -W -f='${Version}' apache2)" ge "2.4.60-1" && echo PATCHED || echo STILL-VULNERABLE
RHEL 7.7 Advanced Update Support · httpd · FIXED · httpd-2.4.6-90.el7_7.4
sudo dnf upgrade --advisory=RHSA-2024:4938 rpm -q httpd
RHEL 7 Extended Lifecycle Support · httpd · FIXED · httpd-2.4.6-99.el7_9.2
sudo dnf upgrade --advisory=RHSA-2024:4943 rpm -q httpd
RHEL 9 · httpd · FIXED · httpd-2.4.57-11.el9_4
sudo dnf upgrade --advisory=RHSA-2024:4726 rpm -q httpd
RHEL 9.0 Update Services for SAP Solutions · httpd · FIXED · httpd-2.4.51-7.el9_0.7
sudo dnf upgrade --advisory=RHSA-2024:4863 rpm -q httpd
RHEL 9.2 Extended Update Support · httpd · FIXED · httpd-2.4.53-11.el9_2.8
sudo dnf upgrade --advisory=RHSA-2024:4862 rpm -q httpd
Alpine 3.20 · apache2 · FIXED · apache2-2.4.60-r0
apk add --upgrade apache2 apk info -v apache2
Alpine 3.21 · apache2 · FIXED · apache2-2.4.60-r0
apk add --upgrade apache2 apk info -v apache2
Alpine 3.22 · apache2 · FIXED · apache2-2.4.60-r0
apk add --upgrade apache2 apk info -v apache2
Alpine 3.23 · apache2 · FIXED · apache2-2.4.60-r0
apk add --upgrade apache2 apk info -v apache2
Amazon Linux 2023 · see advisory · FIXED · ALAS2023-2024-656 · source
sudo dnf update --advisory=ALAS2023-2024-656
Amazon Linux 2 · see advisory · FIXED · ALAS2-2024-2594 · source
sudo yum update --advisory=ALAS2-2024-2594
Amazon Linux 1 · see advisory · FIXED · ALAS-2024-1944 · source
sudo yum update --advisory=ALAS-2024-1944
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2024-38474?

http server: upgrade to 2.4.60; clustered data ontap: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.

Is CVE-2024-38474 being exploited?

CVE-2024-38474 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2024-38474 affect?

CVE-2024-38474 affects http server, clustered data ontap. Severity is critical (CVSS 9.8). Substitution encoding issue in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows attacker to execute scripts in directories permitted by the configuration but not directly reachable by any URL or source disclosure of scripts meant

How urgent is CVE-2024-38474?

Priority 65/100. Critical severity; Remotely exploitable, no login, no user action; On your watchlist

Software pages

Apache HTTP Server vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.