Description
Argument injection vulnerability in the ping function in Ping.php in the Net_Ping package before 2.4.5 for PEAR allows remote attackers to execute arbitrary shell commands via the host parameter. NOTE: this has also been reported as a shell metacharacter problem.
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 | php-net-ping | 2.4.2-1+lenny1 | DSA-1949-1 |
| Debian 4.0 | php-net-ping | 2.4.2-1+etch1 | DSA-1949-1 |
Advisories 1
- DSA-1949-1 php-net-ping - arbitrary code execution Debian Security (DSA / DLA) · Mar 9, 2026
References
- FEDORA-2009-11613 vendor-advisory
- http://pear.php.net/package/Net_Ping/download/2.4.5
- http://svn.php.net/viewvc/pear/packages/Net_Ping/trunk/Ping.php?r1=274728&r2=290669&pathrev=290669
- http://pear.php.net/advisory20091114-01.txt
- FEDORA-2009-12156 vendor-advisory
- netping-ping-command-execution(54390) vdb-entry
- http://blog.pear.php.net/2009/11/14/net_traceroute-and-net_ping-security-advisory/
- 37093 vdb-entry
- ADV-2009-3320 vdb-entry
- 37502 third-party-advisory
- FEDORA-2009-11523 vendor-advisory
- DSA-1949 vendor-advisory
- 37451 third-party-advisory