CVE-2008-3659

Publication date 14 August 2008

Last updated 24 July 2024


Ubuntu priority

Buffer overflow in the memnstr function in PHP 4.4.x before 4.4.9 and PHP 5.6 through 5.2.6 allows context-dependent attackers to cause a denial of service (crash) and possibly execute arbitrary code via the delimiter argument to the explode function. NOTE: the scope of this issue is limited since most applications would not use an attacker-controlled delimiter, but local attacks against safe_mode are feasible.

Read the notes from the security team

Status

Package Ubuntu Release Status

Notes


jdstrand

per Debian, php5 -d memory_limit=256M -r \ '$res = explode(str_repeat("A",145999999),1);' (From upstream's ext/standard/tests/strings/explode_bug.phpt)

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details

References

Related Ubuntu Security Notices (USN)

    • USN-720-1
    • PHP vulnerabilities
    • 12 February 2009

Other references