CVE-2005-3389
The parse_str function in PHP 4.x up to 4.4.0 and 5.x up to 5.0.5, when called with only one parameter, allows remote attackers to enable the register_globals directive via inputs that cause a request to be terminated due to the memory_limit setting, which causes PHP to set an internal flag that enables register_globals and allows attackers to exploit vulnerabilities in PHP applications that would otherwise be protected.
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 4 | php | Fixed | 0:4.3.9-3.9 | RHSA-2005:831 |
| Red Hat Enterprise Linux 4 | php-devel | Fixed | 0:4.3.9-3.9 | RHSA-2005:831 |
| Red Hat Enterprise Linux 4 | php-domxml | Fixed | 0:4.3.9-3.9 | RHSA-2005:831 |
| Red Hat Enterprise Linux 4 | php-gd | Fixed | 0:4.3.9-3.9 | RHSA-2005:831 |
| Red Hat Enterprise Linux 4 | php-imap | Fixed | 0:4.3.9-3.9 | RHSA-2005:831 |
| Red Hat Enterprise Linux 4 | php-ldap | Fixed | 0:4.3.9-3.9 | RHSA-2005:831 |
| Red Hat Enterprise Linux 4 | php-mbstring | Fixed | 0:4.3.9-3.9 | RHSA-2005:831 |
| Red Hat Enterprise Linux 4 | php-mysql | Fixed | 0:4.3.9-3.9 | RHSA-2005:831 |
| Red Hat Enterprise Linux 4 | php-ncurses | Fixed | 0:4.3.9-3.9 | RHSA-2005:831 |
| Red Hat Enterprise Linux 4 | php-odbc | Fixed | 0:4.3.9-3.9 | RHSA-2005:831 |
| Red Hat Enterprise Linux 4 | php-pear | Fixed | 0:4.3.9-3.9 | RHSA-2005:831 |
| Red Hat Enterprise Linux 4 | php-pgsql | Fixed | 0:4.3.9-3.9 | RHSA-2005:831 |
| Red Hat Enterprise Linux 4 | php-snmp | Fixed | 0:4.3.9-3.9 | RHSA-2005:831 |
| Red Hat Enterprise Linux 4 | php-xmlrpc | Fixed | 0:4.3.9-3.9 | RHSA-2005:831 |
| Red Hat Enterprise Linux 3 | php | Fixed | 0:4.3.2-26.ent | RHSA-2005:831 |
| Red Hat Enterprise Linux 3 | php-devel | Fixed | 0:4.3.2-26.ent | RHSA-2005:831 |
| Red Hat Enterprise Linux 3 | php-imap | Fixed | 0:4.3.2-26.ent | RHSA-2005:831 |
| Red Hat Enterprise Linux 3 | php-ldap | Fixed | 0:4.3.2-26.ent | RHSA-2005:831 |
| Red Hat Enterprise Linux 3 | php-mysql | Fixed | 0:4.3.2-26.ent | RHSA-2005:831 |
| Red Hat Enterprise Linux 3 | php-odbc | Fixed | 0:4.3.2-26.ent | RHSA-2005:831 |
| Red Hat Enterprise Linux 3 | php-pgsql | Fixed | 0:4.3.2-26.ent | RHSA-2005:831 |
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.mandriva.com/security/advisories?name=MDKSA-2005:213 (vendor-advisory)
- http://www.redhat.com/support/errata/RHSA-2005-831.html (vendor-advisory)
- http://www.turbolinux.com/security/2006/TLSA-2006-38.txt (vendor-advisory)
- http://itrc.hp.com/service/cki/docDisplay.do?docId=c00786522 (vendor-advisory)
- http://itrc.hp.com/service/cki/docDisplay.do?docId=c00786522 (vendor-advisory)
- http://www.fedoralegacy.org/updates/FC2/2005-11-28-FLSA_2005_166943__Updated_php_packages… (vendor-advisory)
References
- http://www.securityfocus.com/bid/15249
- http://secunia.com/advisories/21252
- http://secunia.com/advisories/22691
- http://securityreason.com/securityalert/134
- http://www.mandriva.com/security/advisories?name=MDKSA-2005:213
- http://www.redhat.com/support/errata/RHSA-2005-831.html
- http://www.turbolinux.com/security/2006/TLSA-2006-38.txt
- http://support.avaya.com/elmodocs2/security/ASA-2006-037.htm
- http://secunia.com/advisories/18198
- http://itrc.hp.com/service/cki/docDisplay.do?docId=c00786522
- http://itrc.hp.com/service/cki/docDisplay.do?docId=c00786522
- http://secunia.com/advisories/18054
- http://www.vupen.com/english/advisories/2005/2254
- http://www.securityfocus.com/archive/1/415291
- http://securitytracker.com/id?1015131
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.