AI summary
PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (php-cgi), does not properly handle query strings that lack an equals sign. Remote attackers can execute arbitrary code by placing command-line options in the query string.
Generated automatically from the source description. Check the sources below before acting.
Improper handling of query strings in PHP as CGI
PHP PHP
At a glance
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle query strings that lack an = (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.
Source description · CVE List / CNA
System impact
CVSS summary v3.1
- Published:
- Updated:
- EPSS:
- 99.999%
- Exploited in attacks:
- Confirmed
- Ransomware campaigns:
- Not confirmed
- Attack vector:
- Network
Affected software
Vendor, product and affected version ranges.
| Vendor | Product | Affected versions |
|---|---|---|
| Vendor:php | php | Affected versions:< 5.3.12Show full version range for php≥ 5.4.0, < 5.4.2 |
| Vendor:redhat | application stack | Affected versions: 2.0 |
| Vendor:redhat | gluster storage server for on-premise | Affected versions: 2.0 |
| Vendor:redhat | storage | Affected versions: 2.0 |
| Vendor:redhat | storage for public cloud | Affected versions: 2.0 |
| Vendor:Apple | mac os x | Affected versions:≥ 10.6.8, < 10.7.5Show full version range for mac os x≥ 10.8.0, < 10.8.2 |
| Vendor:Debian | debian linux | Affected versions: 6.0 |
| Vendor:Fedora | fedora | Affected versions:39Show full version range for fedora40 |
| Vendor:hp | hp-ux | Affected versions:b.11.23Show full version range for hp-uxb.11.31 |
| Vendor:opensuse | opensuse | Affected versions:11.4Show full version range for opensuse12.1 |
1–10 of 509 · Page 1 of 51
CVSS scores and metrics10
CISA-ADP · CVE List / CNA (adp)Primary9.8 / 10CriticalCVSS 3.1Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H134c704f-9b21-4f2e-91b3-4a467353bcc0 · NVD (Secondary)9.8 / 10CriticalCVSS 3.1Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Hnvd · Wazuh CTI (cna)9.8 / 10CriticalCVSS 3.1Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSUSE · SUSE VEX (adp)9.8 / 10CriticalCVSS 3.1Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H[email protected] · NVD (Primary)7.5 / 10HighCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:L/Au:N/C:P/I:P/A:Palas · Wazuh CTI (adp)6.8 / 10MediumCVSS 2.0Details
- Attack complexity
- Medium
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:M/Au:N/C:P/I:P/A:Predhat · Wazuh CTI (adp)6.8 / 10MediumCVSS 2.0Details
- Attack complexity
- Medium
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:M/Au:N/C:P/I:P/A:Pnvd · Wazuh CTI (cna)7.5 / 10HighCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:L/Au:N/C:P/I:P/A:Poraclelinux · Wazuh CTI (adp)7.5 / 10HighCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:L/Au:N/C:P/I:P/A:PRed Hat · Red Hat VEX (adp)6.8 / 10MediumCVSS 2.0Details
- Attack complexity
- Medium
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:M/Au:N/C:P/I:P/A:PCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
Sources and advisories50
- CVE List / CNA
- nvd.nist.gov
- cisa.gov
- Wazuh CTI
- Red Hat VEX
- SUSE VEX
- FIRST EPSS
- securitytracker.com
- lists.opensuse.org
- lists.opensuse.org
- lists.apple.com
- mandriva.com
- eindbazen.net
- openwall.com
- debian.org
- lists.opensuse.org
- rhn.redhat.com
- support.apple.com
- secunia.com
- kb.cert.org
- bugs.php.net
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- php.net
- secunia.com
- rhn.redhat.com
- bugs.php.net
- kb.cert.org
- secunia.com
- php.net
- secunia.com
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- marc.info
- h20000.www2.hp.com
- SUSE-SU-2012:0598-2
- SUSE-SU-2012:0598-1
- openSUSE-SU-2012:0590-1
- SUSE CVE-2012-1823
- access.redhat.com
- SUSE-SU-2013:1351-1
- SUSE-SU-2012:0604-1
- linux.oracle.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- Mitre CVE-2012-1823
- cve.mitre.org
CISA: Apply updates per vendor instructions.
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences