Insecure search path in perl5-porters in OpenBSD - CVE-2016-1238

 

Insecure search path in perl5-porters in OpenBSD - CVE-2016-1238

Published: August 10, 2016


Vulnerability identifier: #VU273
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2016-1238
CWE-ID: CWE-427
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: OpenBSD
Affected software:
OpenBSD

Detailed vulnerability description

The vulnerability allows a local user to potentially elevate privileges.

The vulnerability exists due to Perl 5 module loads modules from the includes directory array ("@INC") in which the last element is the current directory ("."). A local attacker can place specially crafted modules into world-writable directory and trick the victim to run arbitrary script from this directory.

Successful exploitation of this vulnerability may allow a local attacker to obtain elevated privileges on the system.


How to mitigate CVE-2016-1238


Sources