Critical Vulnerability in Apache HTTP Server 2.4.64 - All RewriteCond expr Tests Evaluate as True

apache2 Updated 02 Oct 2025

Summary

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

ALPINE-CVE-2025-54090: A bug in Apache HTTP Server 2.4.64 results in all "RewriteCond expr ..." tests evaluating as "true". Affects apache2 versions < 2.4.65-r0. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Apache HTTP Server, commonly referred to as Apache, is a widely used open-source web server software that enables the hosting of websites and applications. It is known for its flexibility, performance, and extensive feature set, including support for various modules and configurations. However, a significant vulnerability has been identified in version 2.4.64, which affects the functionality of the RewriteCond directive, potentially leading to unintended behavior in web applications.

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 security issues, such as unauthorized access or unintended content exposure, as it undermines the intended logic of URL rewriting rules. The vulnerability is identified as CVE-2025-54090, and it poses a serious risk to applications relying on accurate condition evaluations for routing and access control.

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 modify their RewriteCond rules to avoid reliance on expressions until the upgrade can be performed. However, this is not a permanent solution and should only be used as a stopgap measure.

Conclusion

The vulnerability identified in Apache HTTP Server 2.4.64 poses a significant risk to web applications relying on URL rewriting. Users are strongly encouraged to upgrade to version 2.4.65 or later to ensure the security and proper functioning of their applications. For those unable to upgrade immediately, temporary workarounds should be employed until a permanent fix can be applied.

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 use Vulert, which monitors open-source vulnerabilities in your software. By uploading your manifest file like package-lock.json, you can check for vulnerabilities without needing to access the code.

The risks include unauthorized access to sensitive content and unintended behavior in URL routing, which can compromise the security of web applications.

Yes, the patch is available in Apache HTTP Server version 2.4.65 and later. Users should upgrade to this version to mitigate the vulnerability.

If an immediate upgrade is not possible, consider implementing temporary workarounds by modifying your RewriteCond rules to avoid using expressions until you can apply the patch.

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