CVE-2007-4782
PHP before 5.2.3 allows context-dependent attackers to cause a denial of service (application crash) via (1) a long string in the pattern parameter to the glob function; or (2) a long string in the string parameter to the fnmatch function, accompanied by a pattern parameter value with undefined characteristics, as demonstrated by a "*[1]e" value. NOTE: this might not be a vulnerability in most web server environments that support multiple threads, unless these issues can be demonstrated for code execution.
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-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-bcmath | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-cli | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-common | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-dba | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-devel | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-gd | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-imap | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-ldap | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-mbstring | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-mysql | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-ncurses | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-odbc | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-pdo | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-pgsql | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-snmp | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-soap | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-xml | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-xmlrpc | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 4 | php | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-devel | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-domxml | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-gd | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-imap | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-ldap | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-mbstring | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-mysql | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-ncurses | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-odbc | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-pear | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-pgsql | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-snmp | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-xmlrpc | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 3 | php | Fixed | 0:4.3.2-48.ent | RHSA-2008:0544 |
| Red Hat Enterprise Linux 3 | php-devel | Fixed | 0:4.3.2-48.ent | RHSA-2008:0544 |
| Red Hat Enterprise Linux 3 | php-imap | Fixed | 0:4.3.2-48.ent | RHSA-2008:0544 |
| Red Hat Enterprise Linux 3 | php-ldap | Fixed | 0:4.3.2-48.ent | RHSA-2008:0544 |
| Red Hat Enterprise Linux 3 | php-mysql | Fixed | 0:4.3.2-48.ent | RHSA-2008:0544 |
| Red Hat Enterprise Linux 3 | php-odbc | Fixed | 0:4.3.2-48.ent | RHSA-2008:0544 |
| Red Hat Enterprise Linux 3 | php-pgsql | Fixed | 0:4.3.2-48.ent | RHSA-2008:0544 |
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:
- https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00773.html (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html (vendor-advisory)
- http://www.redhat.com/support/errata/RHSA-2008-0582.html (vendor-advisory)
- http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml (vendor-advisory)
- http://www.ubuntu.com/usn/usn-628-1 (vendor-advisory)
- http://www.redhat.com/support/errata/RHSA-2008-0545.html (vendor-advisory)
References
- https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00773.html
- http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html
- http://secunia.com/advisories/28658
- http://secunia.com/advisories/30828
- http://www.redhat.com/support/errata/RHSA-2008-0582.html
- http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml
- http://www.ubuntu.com/usn/usn-628-1
- http://www.securityfocus.com/archive/1/478626/100/0/threaded
- http://www.redhat.com/support/errata/RHSA-2008-0545.html
- http://secunia.com/advisories/31119
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:023
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:022
- https://exchange.xforce.ibmcloud.com/vulnerabilities/36457
- http://secunia.com/advisories/31200
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10897
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.