{"api_version":"1","generated_at":"2026-07-23T04:51:05+00:00","cve":"CVE-2012-0831","urls":{"html":"https://cve.report/CVE-2012-0831","api":"https://cve.report/api/cve/CVE-2012-0831.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2012-0831","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2012-0831"},"summary":{"title":"CVE-2012-0831","description":"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.","state":"PUBLISHED","assigner":"redhat","published_at":"2012-02-10 20:55:02","updated_at":"2026-04-29 01:13:23"},"problem_types":["CWE-20","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"6.8","severity":"","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","baseScore":6.8,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/73125","name":"https://exchange.xforce.ibmcloud.com/vulnerabilities/73125","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00013.html","name":"http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00013.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"],"title":"[security-announce] SUSE-SU-2012:0411-1: important: Security update for","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080041.html","name":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080041.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] Fedora 16 Update: php-5.3.11-1.fc16","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/51954","name":"http://www.securityfocus.com/bid/51954","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Third Party Advisory","VDB Entry"],"title":"PHP CVE-2012-0831 'magic_quotes_gpc' Directive Security Bypass Weakness","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://rhn.redhat.com/errata/RHSA-2013-1307.html","name":"http://rhn.redhat.com/errata/RHSA-2013-1307.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Red Hat Customer Portal","mime":"text/html","httpstatus":"-1","archivestatus":"200"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080037.html","name":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080037.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] Fedora 15 Update: php-5.3.11-1.fc15","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/48668","name":"http://secunia.com/advisories/48668","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Security Alerts - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://support.apple.com/kb/HT5501","name":"http://support.apple.com/kb/HT5501","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"About the security content of OS X Mountain Lion v10.8.2, OS X Lion v10.7.5 and Security Update 2012-004","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://svn.php.net/viewvc?view=revision&revision=323016","name":"http://svn.php.net/viewvc?view=revision&revision=323016","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"PHP: Revision 323016","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://launchpadlibrarian.net/92454212/php5_5.3.2-1ubuntu4.13.diff.gz","name":"https://launchpadlibrarian.net/92454212/php5_5.3.2-1ubuntu4.13.diff.gz","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Third Party Advisory"],"title":"","mime":"application/octet-stream","httpstatus":"200","archivestatus":"200"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00016.html","name":"http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00016.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"],"title":"[security-announce] openSUSE-SU-2012:0426-1: important: update for php5","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.ubuntu.com/usn/USN-1358-1","name":"http://www.ubuntu.com/usn/USN-1358-1","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Third Party Advisory"],"title":"USN-1358-1: PHP vulnerabilities | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/55078","name":"http://secunia.com/advisories/55078","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"About Secunia Research | Flexera","mime":"text/plain","httpstatus":"200","archivestatus":"200"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00001.html","name":"http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00001.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"],"title":"[security-announce] SUSE-SU-2012:0472-1: important: Security update for","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html","name":"http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"],"title":"APPLE-SA-2012-09-19-2 OS X Mountain Lion v10.8.2,\tOS X Lion v10.7.5 and Security Update 2012-004","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2012-0831","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-0831","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2012","cve_id":"831","vulnerable":"1","versionEndIncluding":"5.3.10","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"php","cpe5":"php","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-06T18:38:14.798Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"USN-1358-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"],"url":"http://www.ubuntu.com/usn/USN-1358-1"},{"name":"SUSE-SU-2012:0411","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"],"url":"http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00013.html"},{"name":"55078","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/55078"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://svn.php.net/viewvc?view=revision&revision=323016"},{"name":"openSUSE-SU-2012:0426","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"],"url":"http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00016.html"},{"name":"SUSE-SU-2012:0472","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"],"url":"http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00001.html"},{"name":"48668","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/48668"},{"name":"APPLE-SA-2012-09-19-2","tags":["vendor-advisory","x_refsource_APPLE","x_transferred"],"url":"http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html"},{"name":"RHSA-2013:1307","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"],"url":"http://rhn.redhat.com/errata/RHSA-2013-1307.html"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://support.apple.com/kb/HT5501"},{"name":"FEDORA-2012-6907","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"],"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080041.html"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://launchpadlibrarian.net/92454212/php5_5.3.2-1ubuntu4.13.diff.gz"},{"name":"php-magicquotesgpc-sec-bypass(73125)","tags":["vdb-entry","x_refsource_XF","x_transferred"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/73125"},{"name":"51954","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/51954"},{"name":"FEDORA-2012-6911","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"],"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080037.html"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2012-02-02T00:00:00.000Z","descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2018-01-17T19:57:01.000Z","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","shortName":"redhat"},"references":[{"name":"USN-1358-1","tags":["vendor-advisory","x_refsource_UBUNTU"],"url":"http://www.ubuntu.com/usn/USN-1358-1"},{"name":"SUSE-SU-2012:0411","tags":["vendor-advisory","x_refsource_SUSE"],"url":"http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00013.html"},{"name":"55078","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/55078"},{"tags":["x_refsource_CONFIRM"],"url":"http://svn.php.net/viewvc?view=revision&revision=323016"},{"name":"openSUSE-SU-2012:0426","tags":["vendor-advisory","x_refsource_SUSE"],"url":"http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00016.html"},{"name":"SUSE-SU-2012:0472","tags":["vendor-advisory","x_refsource_SUSE"],"url":"http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00001.html"},{"name":"48668","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/48668"},{"name":"APPLE-SA-2012-09-19-2","tags":["vendor-advisory","x_refsource_APPLE"],"url":"http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html"},{"name":"RHSA-2013:1307","tags":["vendor-advisory","x_refsource_REDHAT"],"url":"http://rhn.redhat.com/errata/RHSA-2013-1307.html"},{"tags":["x_refsource_CONFIRM"],"url":"http://support.apple.com/kb/HT5501"},{"name":"FEDORA-2012-6907","tags":["vendor-advisory","x_refsource_FEDORA"],"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080041.html"},{"tags":["x_refsource_CONFIRM"],"url":"https://launchpadlibrarian.net/92454212/php5_5.3.2-1ubuntu4.13.diff.gz"},{"name":"php-magicquotesgpc-sec-bypass(73125)","tags":["vdb-entry","x_refsource_XF"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/73125"},{"name":"51954","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/51954"},{"name":"FEDORA-2012-6911","tags":["vendor-advisory","x_refsource_FEDORA"],"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080037.html"}]}},"cveMetadata":{"assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","assignerShortName":"redhat","cveId":"CVE-2012-0831","datePublished":"2012-02-10T20:00:00.000Z","dateReserved":"2012-01-19T00:00:00.000Z","dateUpdated":"2024-08-06T18:38:14.798Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2012-02-10 20:55:02","lastModifiedDate":"2026-04-29 01:13:23","problem_types":["CWE-20","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","baseScore":6.8,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","versionEndIncluding":"5.3.10","matchCriteriaId":"967EAC47-405C-4AA9-AC96-D3D750029AD0"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2012","CveId":"831","Ordinal":"1","Title":"CVE-2012-0831","CVE":"CVE-2012-0831","Year":"2012"},"notes":[{"CveYear":"2012","CveId":"831","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2012-0831"},{"CveYear":"2012","CveId":"831","Ordinal":"2","NoteData":"2012-02-10","Type":"Other","Title":"Published"},{"CveYear":"2012","CveId":"831","Ordinal":"3","NoteData":"2018-01-17","Type":"Other","Title":"Modified"}]}}}