In Progress UPS-505 - AH10411 errors after Apache update (v2.4.56)

Operating System & Version
OS CentOS v7.9.2009 STANDARD standard
cPanel & WHM Version
108.0.14

kalexan

Member
PartnerNOC
Jul 28, 2005
17
2
153
Hello.

After a recent Apache update to v2.4.56 (beginning March 2023), resources that their URL contain spaces and are processed by mod_rewrite, even if spaces are properly encoded (%20 for space char), cannot be served (404 or 401 error). Apache error log is flooded with the following error:

Code:
 AH10411: Rewritten query string contains control characters or spaces, referrer: WEBSITE URL
This is a quite new error and I cannot see any reports, except this reference:
https://stackoverflow.com/questions...-managing-spaces-and-20-in-apache-mod-rewrite

Has anybody else experienced the same problem?
 
Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,280
2,434
363
cPanel Access Level
Root Administrator
Hey hey! Yes, our team is aware of this issue with Apache, and it has been reported upstream as well:


The Stack Overflow link is the only thing public about this at this point also. Once Apache releases a fix, we'll be sure to apply it! You'll see that under case UPS-505 in the change logs once that fix is released.
 

horizon2021

Active Member
Jan 31, 2021
43
3
8
USA
cPanel Access Level
Root Administrator
Is it possible to roll-back the Apache version on a server until this AH10411 issue is solved?

Are there instructions for this?

I have not had to roll-back to a previous version of apache to date, but I was shocked today to find multiple sites broken which had spaces in their URLs and would like to solve this as quickly as possible so the websites are not broken.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,280
2,434
363
cPanel Access Level
Root Administrator
The official workaround mentioned from Apache is to add a "B" to the rewrites that are experiencing problems. For example:

Code:
RewriteRule ^([^?]*) index.php?_route_=$1 [B,L,QSA]
However, that isn't ideal since you need to adjust your code.

I do see Apache has a fix in place and tested here: https://dist.apache.org/repos/dist/dev/httpd/CHANGES_2.4.57

and it looks like they are just waiting to release that, so I would expect that to be sooner than the typical 1-3 months mentioned.

I would not recommend rolling back, since the previous version contains other security fixes.