Description
Buffer overflow in the snmpget function in the snmp extension in PHP 5.2.3 and earlier, including PHP 4.4.6 and probably other PHP 4 versions, allows context-dependent attackers to execute arbitrary code via a long value in the third argument (object id).
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 3
- PHP 5.2.3 - 'snmpget()' object id Local Buffer Overflow (EDI) EDB-4274 · local · Aug 9, 2007 · verified
- PHP 5.2.3 - 'snmpget()' Object id Local Buffer Overflow EDB-4204 · local · Jul 20, 2007 · verified
- PHP 4.4.6 - 'snmpget()' Object id Local Buffer Overflow EDB-3439 · local · Mar 9, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- php-snmpget-function-bo(35517) vdb-entry
- 4204 exploit
- 3439 exploit
- http://retrogod.altervista.org/php_446_snmpget_local_bof.html
- 24440 third-party-advisory
- 22893 vdb-entry