CVE-2007-1583
The mb_parse_str function in PHP 4.0.0 through 4.4.6 and 5.0.0 through 5.2.1 sets the internal register_globals flag and does not disable it in certain cases when a script terminates, which allows remote attackers to invoke available PHP scripts with register_globals functionality that is not detectable by these scripts, as demonstrated by forcing a memory_limit violation.
What to do
Fixed builds are available from Red Hat: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Red Hat Enterprise Linux 5 | php | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-bcmath | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-cli | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-common | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-dba | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-devel | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-gd | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-imap | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-ldap | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-mbstring | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-mysql | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-ncurses | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-odbc | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-pdo | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-pgsql | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-snmp | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-soap | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-xml | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-xmlrpc | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 4 | php | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-devel | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-domxml | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-gd | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-imap | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-ldap | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-mbstring | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-mysql | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-ncurses | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-odbc | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-pear | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-pgsql | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-snmp | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-xmlrpc | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 3 | php | Fixed | 0:4.3.2-40.ent | RHSA-2007:0155 |
| Red Hat Enterprise Linux 3 | php-devel | Fixed | 0:4.3.2-40.ent | RHSA-2007:0155 |
| Red Hat Enterprise Linux 3 | php-imap | Fixed | 0:4.3.2-40.ent | RHSA-2007:0155 |
| Red Hat Enterprise Linux 3 | php-ldap | Fixed | 0:4.3.2-40.ent | RHSA-2007:0155 |
| Red Hat Enterprise Linux 3 | php-mysql | Fixed | 0:4.3.2-40.ent | RHSA-2007:0155 |
| Red Hat Enterprise Linux 3 | php-odbc | Fixed | 0:4.3.2-40.ent | RHSA-2007:0155 |
| Red Hat Enterprise Linux 3 | php-pgsql | Fixed | 0:4.3.2-40.ent | RHSA-2007:0155 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://www.debian.org/security/2007/dsa-1283 (vendor-advisory)
- http://lists.apple.com/archives/security-announce//2007/Jul/msg00004.html (vendor-advisory)
- http://security.gentoo.org/glsa/glsa-200705-19.xml (vendor-advisory)
- http://www.redhat.com/support/errata/RHSA-2007-0162.html (vendor-advisory)
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:090 (vendor-advisory)
- http://www.ubuntu.com/usn/usn-455-1 (vendor-advisory)
References
- http://www.vupen.com/english/advisories/2007/2732
- http://secunia.com/advisories/25056
- http://www.debian.org/security/2007/dsa-1283
- http://www.securityfocus.com/archive/1/466166/100/0/threaded
- http://lists.apple.com/archives/security-announce//2007/Jul/msg00004.html
- http://security.gentoo.org/glsa/glsa-200705-19.xml
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10245
- http://www.redhat.com/support/errata/RHSA-2007-0162.html
- http://www.securityfocus.com/bid/23016
- http://us2.php.net/releases/4_4_7.php
- http://secunia.com/advisories/25062
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:090
- http://www.ubuntu.com/usn/usn-455-1
- http://secunia.com/advisories/24909
- http://secunia.com/advisories/24945
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.