Lucene search

K
gentooGentoo FoundationGLSA-200911-06
HistoryNov 26, 2009 - 12:00 a.m.

PEAR Net_Traceroute: Command injection

2009-11-2600:00:00
Gentoo Foundation
security.gentoo.org
9

10 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:L/Au:N/C:C/I:C/A:C

0.011 Low

EPSS

Percentile

84.7%

Background

PEAR Net_Traceroute is an OS independent wrapper class for executing traceroute calls from PHP.

Description

Pasquale Imperato reported that the $host parameter to the traceroute() function in Traceroute.php is not properly sanitized before being passed to exec().

Impact

A remote attacker could exploit this vulnerability when user input is passed directly to PEAR Net_Traceroute in a PHP script, possibly resulting in the remote execution of arbitrary shell commands with the privileges of the user running the affected PHP script.

Workaround

Ensure that all data that is passed to the traceroute() function is properly shell escaped (for instance using the escapeshellcmd() function).

Resolution

All PEAR Net_Traceroute users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-php/PEAR-Net_Traceroute-0.21.2"
OSVersionArchitecturePackageVersionFilename
Gentooanyalldev-php/pear-net_traceroute< 0.21.2UNKNOWN

10 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:L/Au:N/C:C/I:C/A:C

0.011 Low

EPSS

Percentile

84.7%