CVE-2013-5704: Medium severity Apache HTTP Server vulnerability

Published Apr 1, 2014
·
Updated

Martin Holst Swende discovered a flaw in the way modheaders handled chunked requests. A remote attacker could use this flaw to bypass intended modheaders restrictions, allowing them to send requests to applications that include headers that should have been removed by modheaders.

Discussion and a possible patch is available from the following thread:

http://marc.info/?t=138219209900002&r=1&w=2

References:

http://martin.swende.se/blog/HTTPChunked.html

Other sources

The modheaders module in the Apache HTTP Server 2.2.22 allows remote attackers to bypass "RequestHeader unset" directives by placing a header in the trailer portion of data sent with chunked transfer coding. NOTE: the vendor states "this is not a security issue in httpd as such."

MITRE

Affected Software

83 affected componentsFixes available
redhat/httpd<2.2.29
2.2.29
redhat/httpd<2.4.11
2.4.11
Apache HTTP Server=2.2.0
Apache HTTP Server=2.2.2
Apache HTTP Server=2.2.3
Apache HTTP Server=2.2.4
Apache HTTP Server=2.2.5
Apache HTTP Server=2.2.6
Apache HTTP Server=2.2.8
Apache HTTP Server=2.2.9
Apache HTTP Server=2.2.10
Apache HTTP Server=2.2.11
Apache HTTP Server=2.2.12
Apache HTTP Server=2.2.13
Apache HTTP Server=2.2.14
Apache HTTP Server=2.2.15
Apache HTTP Server=2.2.16
Apache HTTP Server=2.2.17
Apache HTTP Server=2.2.18
Apache HTTP Server=2.2.19
Apache HTTP Server=2.2.20
Apache HTTP Server=2.2.21
Apache HTTP Server=2.2.22
Apache HTTP Server=2.2.23
Apache HTTP Server=2.2.24
Apache HTTP Server=2.2.25
Apache HTTP Server=2.2.26
Apache HTTP Server=2.2.27
Apache HTTP Server=2.4.1
Apache HTTP Server=2.4.2
Apache HTTP Server=2.4.3
Apache HTTP Server=2.4.4
Apache HTTP Server=2.4.6
Apache HTTP Server=2.4.7
Apache HTTP Server=2.4.9
Apache HTTP Server=2.4.10
redhat Enterprise Linux Desktop=6.0
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Eus=7.3
redhat Enterprise Linux Eus=7.4
redhat Enterprise Linux Eus=7.5
redhat Enterprise Linux Eus=7.6
redhat Enterprise Linux Eus=7.7
redhat Enterprise Linux Server=6.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server Aus=7.3
redhat Enterprise Linux Server Aus=7.4
redhat Enterprise Linux Server Aus=7.6
redhat Enterprise Linux Server Aus=7.7
redhat Enterprise Linux Server Tus=7.3
redhat Enterprise Linux Server Tus=7.6
redhat Enterprise Linux Server Tus=7.7
redhat Enterprise Linux Workstation=6.0
redhat Enterprise Linux Workstation=7.0
redhat Jboss Enterprise Web Server=3.0.0
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Jboss Enterprise Web Server=2.0.0
redhat Enterprise Linux=5.0
Oracle Enterprise Manager Ops Center<12.1.4
Oracle Enterprise Manager Ops Center=12.1.4
Oracle Enterprise Manager Ops Center=12.2.0
Oracle Enterprise Manager Ops Center=12.2.1
Oracle Enterprise Manager Ops Center=12.3.0
Oracle HTTP Server=10.1.3.5.0
Oracle HTTP Server=11.1.1.7.0
Oracle HTTP Server=12.1.2.0
Oracle HTTP Server=12.1.3.0
Oracle Linux=6
Oracle Solaris=11.2
Apple iOS and macOS<10.10.4
Apple Mac OS X Server<5.0.3
Canonical Ubuntu Linux=10.04
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=14.10
All of the following
redhat Jboss Enterprise Web Server=3.0.0
Any of the following
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
All of the following
redhat Jboss Enterprise Web Server=2.0.0
Any of the following
redhat Enterprise Linux=5.0
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0

Event History

Apr 1, 2014
Data Sourced
via Red Hat·04:48 AM
DescriptionSeverityAffected Software
Apr 15, 2014
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Data Sourced
via NVD·10:55 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2013-5704?

CVE-2013-5704 is considered a low-severity vulnerability as the vendor has stated it is not a security issue in Apache HTTP Server.

2

How do I fix CVE-2013-5704?

To mitigate CVE-2013-5704, upgrade to Apache HTTP Server version 2.2.29 or 2.4.11 or later.

3

What versions of Apache HTTP Server are affected by CVE-2013-5704?

CVE-2013-5704 affects Apache HTTP Server versions 2.2.22 and earlier, including various other specified versions.

4

Can CVE-2013-5704 lead to remote code execution?

No, CVE-2013-5704 does not lead to remote code execution but allows for header manipulation.

5

Is CVE-2013-5704 a exploitation risk to my server?

The risk from CVE-2013-5704 is limited; however, it can be leveraged in specific scenarios to bypass security headers.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203