GLSA-201511-01 : MirBSD Korn Shell: Arbitrary code execution

medium Nessus Plugin ID 86701

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-201511-01 (MirBSD Korn Shell: Arbitrary code execution)

Improper sanitation of environment import allows for appending of values to passed parameters.
Impact :

An attacker who already had access to the environment could so append values to parameters passed through programs (including sudo(8) or setuid) to shell scripts, including indirectly, after those programs intended to sanitise the environment, e.g. invalidating the last $PATH component.
Workaround :

There is no known workaround at this time.

Solution

All mksh users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=app-shells/mksh-50c'

See Also

http://www.nessus.org/u?72ae2b87

https://security.gentoo.org/glsa/201511-01

Plugin Details

Severity: Medium

ID: 86701

File Name: gentoo_GLSA-201511-01.nasl

Version: 2.2

Type: local

Published: 11/3/2015

Updated: 1/11/2021

Supported Sensors: Nessus

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:mksh, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 11/2/2015

Reference Information

GLSA: 201511-01