Description
Buffer overflow in the sqlite_decode_binary function in the bundled sqlite library in PHP 4 before 4.4.5 and PHP 5 before 5.2.1 allows context-dependent attackers to execute arbitrary code via an empty value of the in parameter, as demonstrated by calling the sqlite_udf_decode_binary function with a 0x01 character.
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.0-10+lenny1 | DTSA-39-1 |
| Debian 4.0 | php5 | 5.2.0-8+etch3 | DSA-1283-1 |
Advisories 2
- DTSA-39-1 php5 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1283-1 php5 Debian Security (DSA / DLA) · Mar 9, 2026
References
- 27110 third-party-advisory
- DSA-1283 vendor-advisory
- ADV-2007-2016 vdb-entry
- GLSA-200710-02 vendor-advisory
- oval:org.mitre.oval:def:5348 vdb-entry signature
- http://www.php.net/releases/5_2_1.php
- http://www.php-security.org/MOPB/MOPB-41-2007.html
- 25062 third-party-advisory
- FEDORA-2007-2215 vendor-advisory
- USN-455-1 vendor-advisory
- 24909 third-party-advisory
- ADV-2007-3386 vdb-entry
- php-sqlitedecodebinary-bo(33766) vdb-entry
- 23235 vdb-entry
- 27037 third-party-advisory
- http://www.php.net/releases/5_2_3.php
- SSRT071447 vendor-advisory
- 27102 third-party-advisory
- MDKSA-2007:089 vendor-advisory
- 25057 third-party-advisory
- MDKSA-2007:088 vendor-advisory