Actively exploited vulnerability / CVE-2024-38474
Apache HTTP Server: attackers can run hidden scripts or read their code
A flaw in the mod_rewrite module of Apache HTTP Server lets an attacker run scripts on the server that are not meant to be reachable from the internet, or view the source code of scripts that should only be executed. This can expose passwords, configuration details or the inner workings of your website and can lead to the server being compromised. It is on the list of vulnerabilities used in real attacks kept by ENISA, the EU cybersecurity agency.
- Identifier
- CVE-2024-38474 · EUVD-2024-37355
- Severity
- Critical (9.8/10)
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 2.5% (FIRST's estimate for the next 30 days)
Does it concern you?
Apache HTTP Server is one of the most widely used web servers, hosting websites, online shops and internal web applications. You likely have it if your company runs a website or web application on its own or a rented server.
Versions from 2.4.0 up to and including 2.4.59 are affected. Ask your server administrator or hosting provider which Apache version you run and whether mod_rewrite is in use.
Affected products and versions
- Apache Http Server
- http server: from 2.4.0 before 2.4.60
What to do
Update Apache HTTP Server to version 2.4.60 or later. Afterwards, ask your administrator to confirm that URL rewrite rules still work, since some may stop working and need to be reviewed.
Versions that contain the fix: 2.4.60.
The official description
The text below is the description from the public database.
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 "UnsafeAllow3F" is specified.
Sources
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 2 December 2026.