CWE
20 89
Advisory Published
Updated

CVE-2012-0831: Input Validation

First published: Fri Feb 10 2012(Updated: )

PHP before 5.3.10 does not properly perform a temporary change to the magic_quotes_gpc directive during the importing of environment variables, which makes it easier for remote attackers to conduct SQL injection attacks via a crafted request, related to main/php_variables.c, sapi/cgi/cgi_main.c, and sapi/fpm/fpm/fpm_main.c.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
PHP<=5.3.10

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-0831?

    CVE-2012-0831 is classified as a moderate severity vulnerability due to its potential for SQL injection attacks.

  • How do I fix CVE-2012-0831?

    To mitigate CVE-2012-0831, upgrade your PHP version to 5.3.10 or later.

  • What types of attacks can occur due to CVE-2012-0831?

    CVE-2012-0831 can facilitate remote attackers in conducting SQL injection attacks.

  • Which PHP versions are vulnerable to CVE-2012-0831?

    Any PHP version prior to 5.3.10 is vulnerable to CVE-2012-0831.

  • What is the impact of CVE-2012-0831 on web applications?

    The impact of CVE-2012-0831 on web applications includes potential unauthorized access to databases and manipulation of data.

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