CWE
20
Advisory Published
Updated

CVE-2012-4388: Input Validation

First published: Fri Sep 07 2012(Updated: )

The sapi_header_op function in main/SAPI.c in PHP 5.4.0RC2 through 5.4.0 does not properly determine a pointer during checks for %0D sequences (aka carriage return characters), which allows remote attackers to bypass an HTTP response-splitting protection mechanism via a crafted URL, related to improper interaction between the PHP header function and certain browsers, as demonstrated by Internet Explorer and Google Chrome. NOTE: this vulnerability exists because of an incorrect fix for CVE-2011-1398.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
PHP>=5.3.0<5.3.11
PHP=5.4.0-rc2
Ubuntu Linux=8.04
Ubuntu Linux=10.04
Ubuntu Linux=11.04
Ubuntu Linux=11.10
Ubuntu Linux=12.04
Debian GNU/Linux=6.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2012-4388?

    CVE-2012-4388 has a medium severity level as it allows remote attackers to bypass HTTP response-splitting protections.

  • How do I fix CVE-2012-4388?

    To fix CVE-2012-4388, upgrade PHP to a version later than 5.4.0 that addresses this vulnerability.

  • What versions of PHP are affected by CVE-2012-4388?

    CVE-2012-4388 affects PHP versions from 5.4.0RC2 through 5.4.0, as well as 5.3.0 to 5.3.11.

  • Can CVE-2012-4388 be exploited remotely?

    Yes, CVE-2012-4388 can be exploited remotely through crafted URLs that bypass the protection mechanism.

  • Which operating systems are impacted by CVE-2012-4388?

    CVE-2012-4388 impacts various operating systems, including Ubuntu Linux 8.04 to 12.04 and Debian Linux 6.0.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203