php: incomplete CVE-2012-1823 fix - incorrect check for =
Published May 11, 2012
7.5
HIGHCVSS 2.0
EPSS 69.27%
Description
sapi/cgi/cgi_main.c in PHP before 5.3.13 and 5.4.x before 5.4.3, when configured as a CGI script (aka php-cgi), does not properly handle query strings that contain a %3D sequence but no = (equals sign) character, which allows remote attackers to execute arbitrary code by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'd' case. NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1823.
Affected products
No data.
- ≤ 5.3.12
- 1.0
- 2.0
- 2.0b10
- 3.0
- 3.0.1
- 3.0.2
- 3.0.3
- 3.0.4
- 3.0.5
- 3.0.6
- 3.0.7
- 3.0.8
- 3.0.9
- 3.0.10
- 3.0.11
- 3.0.12
- 3.0.13
- 3.0.14
- 3.0.15
- 3.0.16
- 3.0.17
- 3.0.18
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0.0
- 4.0.1
- 4.0.2
- 4.0.3
- 4.0.4
- 4.0.5
- 4.0.6
- 4.0.7
- 4.1.0
- 4.1.1
- 4.1.2
- 4.2.0
- 4.2.1
- 4.2.2
- 4.2.3
- 4.3.0
- 4.3.1
- 4.3.2
- 4.3.3
- 4.3.4
- 4.3.5
- 4.3.6
- 4.3.7
- 4.3.8
- 4.3.9
- 4.3.10
- 4.3.11
- 4.4.0
- 4.4.1
- 4.4.2
- 4.4.3
- 4.4.4
- 4.4.5
- 4.4.6
- 4.4.7
- 4.4.8
- 4.4.9
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.1
- 5.0.2
- 5.0.3
- 5.0.4
- 5.0.5
- 5.1.0
- 5.1.1
- 5.1.2
- 5.1.3
- 5.1.4
- 5.1.5
- 5.1.6
- 5.2.0
- 5.2.1
- 5.2.2
- 5.2.3
- 5.2.4
- 5.2.5
- 5.2.6
- 5.2.7
- 5.2.8
- 5.2.9
- 5.2.10
- 5.2.11
- 5.2.12
- 5.2.13
- 5.2.14
- 5.2.15
- 5.2.16
- 5.2.17
- 5.3.0
- 5.3.1
- 5.3.2
- 5.3.3
- 5.3.4
- 5.3.5
- 5.3.6
- 5.3.7
- 5.3.8
- 5.3.9
- 5.3.10
- 5.3.11
- 5.4.0
- 5.4.0
- 5.4.1
No data.
Red Hat Enterprise Linux 4
php
Not affected
Red Hat Enterprise Linux 5
php
Not affected
Red Hat Enterprise Linux 5
php53
Not affected
Red Hat Enterprise Linux 6
php
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 4 | php | Not affected | n/a |
| Red Hat Enterprise Linux 5 | php | Not affected | n/a |
| Red Hat Enterprise Linux 5 | php53 | Not affected | n/a |
| Red Hat Enterprise Linux 6 | php | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Not vulnerable. Red Hat did not release PHP package updates addressing CVE-2012-1823 that introduce the CVE-2012-2311 issue. Therefore, this CVE does not affect any Red Hat products.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (41 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 69.27% (0.69266) | 99.34th | v5 (v2026.06.15) |
| Jun 15, 2026 | 68.85% (0.68846) | 99.26th | v5 (v2026.06.15) |
| Apr 2, 2026 | 74.53% (0.74532) | 98.84th | v4 (v2025.03.14) |
| Mar 4, 2026 | 83.46% (0.83458) | 99.26th | v4 (v2025.03.14) |
| Mar 1, 2026 | 74.41% (0.74413) | 98.83th | v4 (v2025.03.14) |
| Feb 17, 2026 | 83.25% (0.83245) | 99.24th | v4 (v2025.03.14) |
| Feb 16, 2026 | 84.48% (0.84479) | 99.30th | v4 (v2025.03.14) |
| Feb 4, 2026 | 86.83% (0.86835) | 99.41th | v4 (v2025.03.14) |
| Feb 1, 2026 | 80.35% (0.80353) | 99.10th | v4 (v2025.03.14) |
| Jan 10, 2026 | 86.83% (0.86835) | 99.40th | v4 (v2025.03.14) |
| Jan 4, 2026 | 88.44% (0.88444) | 99.47th | v4 (v2025.03.14) |
| Jan 1, 2026 | 83.28% (0.83275) | 99.25th | v4 (v2025.03.14) |
| Dec 28, 2025 | 88.44% (0.88444) | 99.47th | v4 (v2025.03.14) |
| Dec 27, 2025 | 84.28% (0.84277) | 99.28th | v4 (v2025.03.14) |
| Dec 4, 2025 | 88.44% (0.88444) | 99.47th | v4 (v2025.03.14) |
| Dec 1, 2025 | 83.28% (0.83275) | 99.23th | v4 (v2025.03.14) |
| Nov 4, 2025 | 88.44% (0.88444) | 99.46th | v4 (v2025.03.14) |
| Nov 1, 2025 | 83.28% (0.83275) | 99.23th | v4 (v2025.03.14) |
| Oct 28, 2025 | 88.44% (0.88444) | 99.46th | v4 (v2025.03.14) |
| Oct 27, 2025 | 84.28% (0.84277) | 99.27th | v4 (v2025.03.14) |
| Oct 16, 2025 | 88.44% (0.88444) | 99.46th | v4 (v2025.03.14) |
| Oct 4, 2025 | 89.96% (0.89960) | 99.55th | v4 (v2025.03.14) |
| Sep 4, 2025 | 86.83% (0.86827) | 99.40th | v4 (v2025.03.14) |
| Sep 1, 2025 | 80.34% (0.80338) | 99.09th | v4 (v2025.03.14) |
| Aug 11, 2025 | 86.83% (0.86827) | 99.39th | v4 (v2025.03.14) |
| Aug 4, 2025 | 89.80% (0.89798) | 99.54th | v4 (v2025.03.14) |
| Aug 1, 2025 | 85.77% (0.85769) | 99.35th | v4 (v2025.03.14) |
| Jul 30, 2025 | 89.80% (0.89798) | 99.54th | v4 (v2025.03.14) |
| Jul 4, 2025 | 91.44% (0.91436) | 99.64th | v4 (v2025.03.14) |
| Jul 1, 2025 | 88.81% (0.88808) | 99.49th | v4 (v2025.03.14) |
| Jun 4, 2025 | 91.44% (0.91436) | 99.64th | v4 (v2025.03.14) |
| Jun 1, 2025 | 88.81% (0.88808) | 99.50th | v4 (v2025.03.14) |
| May 4, 2025 | 91.44% (0.91436) | 99.63th | v4 (v2025.03.14) |
| May 1, 2025 | 88.81% (0.88808) | 99.48th | v4 (v2025.03.14) |
| Apr 27, 2025 | 91.44% (0.91436) | 99.63th | v4 (v2025.03.14) |
| Mar 17, 2025 | 92.59% (0.92595) | 99.74th | v4 (v2025.03.14) |
| Dec 30, 2024 | 92.16% (0.92156) | 99.20th | v3 (v2023.03.01) |
| Feb 8, 2024 | 93.72% (0.93715) | 99.03th | v3 (v2023.03.01) |
| Mar 7, 2023 | 95.14% (0.95139) | 98.84th | v3 (v2023.03.01) |
| Mar 6, 2023 | 63.70% (0.63697) | 98.99th | v2 (v2022.01.01) |
| Feb 4, 2022 | 63.70% (0.63697) | 98.75th | v2 (v2022.01.01) |
References (21)
- http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/ x_refsource_MISC
- http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html vendor-advisoryx_refsource_APPLE
- http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html vendor-advisoryx_refsource_SUSE
- http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html vendor-advisoryx_refsource_SUSE
- http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html vendor-advisoryx_refsource_SUSE
- http://marc.info/?l=bugtraq&m=134012830914727&w=2 vendor-advisoryx_refsource_HP
- http://secunia.com/advisories/49014 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/49085 third-party-advisoryx_refsource_SECUNIA
- http://support.apple.com/kb/HT5501 x_refsource_CONFIRM
- http://www.debian.org/security/2012/dsa-2465 vendor-advisoryx_refsource_DEBIAN
- http://www.kb.cert.org/vuls/id/520827 third-party-advisoryx_refsource_CERT-VNUS Government Resource
- http://www.php.net/ChangeLog-5.php#5.4.3 x_refsource_CONFIRM
- http://www.php.net/archive/2012.php#id2012-05-08-1 x_refsource_CONFIRM
- http://www.securitytracker.com/id?1027022 vdb-entryx_refsource_SECTRACK
- https://access.redhat.com/security/cve/CVE-2012-2311 Vendor Advisory
- https://bugs.php.net/bug.php?id=61910 x_refsource_CONFIRMVendor Advisory
- https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff-fix-check.patch&revision=1336093719&display=1 x_refsource_CONFIRM
- https://bugzilla.redhat.com/show_bug.cgi?id=818907 Issue Tracking
- https://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862 vendor-advisoryx_refsource_HP
- https://nvd.nist.gov/vuln/detail/CVE-2012-2311
- https://www.cve.org/CVERecord?id=CVE-2012-2311
Change history (0)
No recorded changes yet.