{"id":"CVE-2007-1887","aliases":["DSA-1283-1","DTSA-39-1","EUVD-2007-1881","GHSA-7fcm-v46p-r75h"],"status":"published","title":"Buffer overflow in the sqlite_decode_binary function in the bundled sqlite library in PHP 4...","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.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.04822,"percentile":0.92037,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-120"],"published":"2007-04-06T01:00:00Z","modified":"2026-06-16T22:38:30Z","affected":[{"source":"osv","ecosystem":"Debian:4.0","package":"php5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.0-8+etch3"}]}],"versions":["5.2.0-8+etch1"],"bundled":17},{"source":"osv","ecosystem":"Debian:5.0","package":"php5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.0-10+lenny1"}]}],"bundled":18}],"products":[{"vendor":"canonical","product":"ubuntu_linux"},{"vendor":"debian","product":"debian_linux"},{"vendor":"php","product":"php"}],"references":[{"url":"http://secunia.com/advisories/27110","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Not Applicable"]},{"url":"http://www.debian.org/security/2007/dsa-1283","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory"]},{"url":"http://www.vupen.com/english/advisories/2007/2016","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Permissions Required"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5348","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred","Third Party Advisory"]},{"url":"http://www.php.net/releases/5_2_1.php","tags":["x_refsource_CONFIRM","x_transferred","Release Notes","Vendor Advisory"]},{"url":"http://www.php-security.org/MOPB/MOPB-41-2007.html","tags":["x_refsource_MISC","x_transferred","Broken Link","Vendor Advisory"]},{"url":"http://secunia.com/advisories/25062","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Not Applicable"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2007-September/msg00397.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Mailing List","Third Party Advisory"]},{"url":"http://www.ubuntu.com/usn/usn-455-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory"]},{"url":"http://secunia.com/advisories/24909","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Not Applicable"]},{"url":"http://www.vupen.com/english/advisories/2007/3386","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Permissions Required"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/33766","tags":["vdb-entry","x_refsource_XF","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://www.securityfocus.com/bid/23235","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://secunia.com/advisories/27037","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Not Applicable"]},{"url":"http://www.php.net/releases/5_2_3.php","tags":["x_refsource_CONFIRM","x_transferred","Release Notes","Vendor Advisory"]},{"url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01178795","tags":["vendor-advisory","x_refsource_HP","x_transferred","Broken Link"]},{"url":"http://secunia.com/advisories/27102","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Not Applicable"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2007:089","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","Broken Link"]},{"url":"http://secunia.com/advisories/25057","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Not Applicable"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2007:088","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","Broken Link"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-1887"},{"url":"https://github.com/advisories/GHSA-7fcm-v46p-r75h"}],"sources":{"cve":[{"id":"CVE-2007-1887","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.","status":"published","published":"2007-04-06T01:00:00Z","modified":"2024-08-07T13:13:41.29Z","updated_at":"2026-11-02T13:33:52.669326Z"}],"euvd":[{"id":"EUVD-2007-1881","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.","status":"published","published":"2007-04-06T01:00:00Z","modified":"2024-08-07T13:13:41Z","updated_at":"2026-11-03T01:38:23.856285Z"}],"ghsa":[{"id":"GHSA-7fcm-v46p-r75h","title":"Buffer overflow in the sqlite_decode_binary function in the bundled sqlite library in PHP 4...","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.","status":"published","published":"2022-05-01T17:58:01Z","modified":"2023-01-27T05:02:03Z","cwes":["CWE-120"],"updated_at":"2026-11-02T14:42:00.879238Z"}],"nvd":[{"id":"CVE-2007-1887","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.","status":"published","published":"2007-04-06T01:19:00Z","modified":"2026-06-16T22:38:30.34Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-120"],"updated_at":"2026-11-02T14:01:14.732044Z"}],"osv":[{"id":"DSA-1283-1","title":"php5","status":"published","published":"2007-04-29T00:00:00Z","modified":"2026-03-09T01:01:00.8697Z","updated_at":"2026-11-02T15:46:14.285228Z"},{"id":"DTSA-39-1","title":"php5 - several vulnerabilities","status":"published","published":"2007-05-28T00:00:00Z","modified":"2026-03-09T01:01:30.482688Z","updated_at":"2026-11-02T15:46:18.716547Z"}]}}
