Description
The glob function in PHP 5.2.3 allows context-dependent attackers to cause a denial of service and possibly execute arbitrary code via an invalid value of the flags parameter, probably related to memory corruption or an invalid read on win32 platforms, and possibly related to lack of initialization for a glob structure.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 5.0 | php5 | 5.2.3-1+lenny1 | DTSA-61-1 |
| Debian 4.0 | php4 | 6:4.4.4-8+etch6 | DSA-1578-1 |
| Debian 4.0 | php5 | 5.2.0-8+etch11 | DSA-1572-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- PHP 5.2.3 - 'glob()' Denial of Service EDB-4181 · dos · Jul 14, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 3
- DSA-1572-1 php5 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1578-1 php4 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DTSA-61-1 php5 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- 30288 third-party-advisory
- http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dir.c?r1=1.166&r2=1.167
- 36085 vdb-entry
- ADV-2007-2547 vdb-entry
- php-glob-security-bypass(35437) vdb-entry
- 4181 exploit
- DSA-1572 vendor-advisory
- GLSA-200710-02 vendor-advisory
- http://www.php.net/ChangeLog-5.php#5.2.4
- 30158 third-party-advisory
- 26085 third-party-advisory
- DSA-1578 vendor-advisory
- 27102 third-party-advisory
- http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dir.c?view=log
- http://www.php.net/releases/5_2_4.php
- 24922 vdb-entry
- 25498 vdb-entry
- 26642 third-party-advisory