Critical Vulnerability in Apache2: Rewrite Condition Evaluation Flaw

apache2 Updated 02 Oct 2025

Summary

23/07/2025
N/A
Yes i
Unrated
Not published

CVE-2025-54090: A bug in Apache HTTP Server 2.4.64 results in all "RewriteCond expr ..." tests evaluating as "true". Affects apache2 across 2 version ranges.

< 2.4.65-r0 < 7e926454793abd7d71b6afc8bd1ec1648752c6ad

Fixed in 2.4.65-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache HTTP Server, commonly referred to as Apache2, is a widely used open-source web server software that enables users to serve web content over the internet. It is known for its flexibility, security features, and extensive community support. However, a recent vulnerability has been identified in versions prior to 2.4.65, which affects the functionality of the 'RewriteCond expr ...' directive, leading to unintended behavior in URL rewriting.

Vulnerability Detail

A bug in Apache HTTP Server version 2.4.64 causes all 'RewriteCond expr ...' tests to evaluate as 'true', regardless of the actual conditions specified. This flaw can lead to improper URL handling, potentially allowing unauthorized access to resources or exposing sensitive information. The vulnerability originates from a coding error in the handling of expression conditions within the server's rewrite module.

How To Fix

Minimum fixed version

2.4.65-r0

This is the first release that contains the fix.

sudo apk add --upgrade apache2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid using the 'RewriteCond expr ...' directive until the upgrade is completed. Alternatively, they can implement strict access controls to mitigate the risk of unauthorized access.

Conclusion

In summary, CVE-2025-54090 is a critical vulnerability affecting Apache HTTP Server 2.4.64 that can lead to serious security implications. Users are strongly advised to upgrade to version 2.4.65 or later to mitigate risks. Utilizing tools like Vulert can help in monitoring and managing such vulnerabilities effectively.

See every vulnerability recorded for apache2 →

Share this vulnerability

FAQ

CVE-2025-54090 is a vulnerability in Apache HTTP Server 2.4.64 that causes all 'RewriteCond expr ...' tests to evaluate as 'true', potentially leading to security issues.

You can check your Apache2 version by running 'apache2 -v' in the terminal. If it is version 2.4.64 or earlier, it is affected by this vulnerability.

The risks include unauthorized access to resources and exposure of sensitive information due to improper URL handling.

Yes, upgrading to Apache HTTP Server version 2.4.65 or later will patch this vulnerability.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.

Related vulnerabilities

Recent vulnerabilities recorded for apache2.

How To Fix

Minimum fixed version

2.4.65-r0

This is the first release that contains the fix.

sudo apk add --upgrade apache2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback