Skip to content

Commit 8abb3d0

Browse files
committed
fix rewritecond expr regression in 2.4.64
*) SECURITY: CVE-2025-54090: Apache HTTP Server: 'RewriteCond expr' always evaluates to true in 2.4.64 (cve.mitre.org) A bug in Apache HTTP Server 2.4.64 results in all "RewriteCond expr ..." tests evaluating as "true". Users are recommended to upgrade to version 2.4.65, which fixes the issue. Reviewed By: covener, ylavic, gbechis, jorton git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1927361 13f79535-47bb-0310-9956-ffa450edef68
1 parent ed99ef0 commit 8abb3d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/mappers/mod_rewrite.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4276,8 +4276,9 @@ static cond_return_type apply_rewrite_cond(rewritecond_entry *p, rewrite_ctx *ct
42764276
rc = COND_RC_NOMATCH;
42774277
}
42784278
else {
4279-
rc = COND_RC_MATCH;
4279+
rc = (rc > 0) ? COND_RC_MATCH : COND_RC_NOMATCH;
42804280
}
4281+
42814282
/* update briRC backref info */
42824283
if (rc && !(p->flags & CONDFLAG_NOTMATCH)) {
42834284
ctx->briRC.source = source;

0 commit comments

Comments
 (0)