Every CVE Search/ Get API key

CVE-2012-0831

PHP before 5.3.10 does not properly perform a temporary change to the magic_quotes_gpc directive...

6.8 MediumFix available

CVE-2012-0831 is a medium vulnerability (CVSS 6.8) in Php, published February 10, 2012. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 6.47%, the 93rd percentile. Fixed in php5 5.3.3-7+squeeze8.

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.

Exploit likelihood

6.47%Up 2.7 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 6.8

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.

Record
CVE-2012-0831
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-20
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2012-0831
Updated
2026-11-02
EUVDEUVD-2012-0857 No score

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.

Record
EUVD-2012-0857
Updated
2026-11-03
GitHub AdvisoriesGHSA-p39c-84x2-h365 No score

PHP before 5.3.10 does not properly perform a temporary change to the magic_quotes_gpc directive...

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.

Record
GHSA-p39c-84x2-h365
Weakness
CWE-20
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
php5
Debian:6.0
before 5.3.3-7+squeeze8, plus listed versions
5.3.3-75.3.3-7+squeeze15.3.3-7+squeeze25.3.3-7+squeeze35.3.3-7+squeeze55.3.3-7+squeeze65.3.3-7+squeeze7
5.3.3-7+squeeze8
php
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-bcmath
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-cli
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-common
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-dba
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-debuginfo
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-devel
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-embedded
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-enchant
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
Show 147 moreShow less
Affected packages
PackageAffectedFixed
php-fpm
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-gd
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-imap
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-intl
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-ldap
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-mbstring
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-mysql
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-odbc
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-pdo
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-pgsql
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-process
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-pspell
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-recode
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-snmp
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-soap
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-tidy
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-xml
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-xmlrpc
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-zts
Red Hat:enterprise_linux:6::client
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-bcmath
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-dba
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-debuginfo
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-devel
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-embedded
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-enchant
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-fpm
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-gd
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-imap
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-intl
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-ldap
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-mbstring
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-mysql
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-odbc
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-pdo
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-pgsql
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-process
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-pspell
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-recode
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-snmp
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-soap
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-tidy
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-xml
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-xmlrpc
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-zts
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-cli
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-common
Red Hat:enterprise_linux:6::computenode
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-bcmath
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-dba
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-debuginfo
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-devel
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-embedded
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-enchant
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-fpm
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-imap
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-intl
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-mbstring
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-process
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-pspell
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-recode
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-snmp
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-tidy
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-zts
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-cli
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-common
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-gd
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-ldap
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-mysql
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-odbc
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-pdo
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-pgsql
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-soap
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-xml
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-xmlrpc
Red Hat:enterprise_linux:6::server
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-bcmath
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-dba
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-debuginfo
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-devel
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-embedded
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-enchant
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-fpm
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-imap
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-intl
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-mbstring
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-process
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-pspell
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-recode
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-snmp
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-tidy
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-zts
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-cli
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-common
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-gd
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-ldap
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-mysql
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-odbc
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-pdo
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-pgsql
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-soap
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-xml
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php-xmlrpc
Red Hat:enterprise_linux:6::workstation
before 0:5.3.3-22.el6
0:5.3.3-22.el6
php53
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-bcmath
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-cli
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-common
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-dba
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-debuginfo
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-devel
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-gd
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-imap
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-intl
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-ldap
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-mbstring
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-mysql
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-odbc
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-pdo
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-pgsql
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-process
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-pspell
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-snmp
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-soap
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-xml
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-xmlrpc
Red Hat:enterprise_linux:5::client_workstation
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-bcmath
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-cli
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-common
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-dba
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-debuginfo
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-devel
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-gd
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-imap
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-intl
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-ldap
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-mbstring
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-mysql
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-odbc
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-pdo
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-pgsql
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-process
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-pspell
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-snmp
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-soap
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-xml
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5
php53-xmlrpc
Red Hat:enterprise_linux:5::server
before 0:5.3.3-21.el5
0:5.3.3-21.el5

History

History
WhenChangedSources
2026-11-03aliasesEUVD
2026-11-02createdCVE List, GitHub Advisories, NVD, OSV

References

Show 57 moreShow less
MoveEnter Open