portage-ng / portage / app-shells / mksh / 59c
portage-ng glsa
1 advisory reference app-shells/mksh · none place version 59c in a vulnerable range
▸ GLSA 201511-01 MirBSD Korn Shell: Arbitrary code execution this version unaffected normal local 2015-11-02

An attacker who already had access to the environment could so append values to parameters passed through programs.

Announced
2015-11-02
Revised
2015-11-02 (revision 2)
Access
local
Bugs
#524414
Advisory
https://security.gentoo.org/glsa/201511-01

Affected packages

PackageArchVulnerableUnaffected
app-shells/mksh*< 50c>= 50c

Background

MirBSD Korn Shell is an actively developed free implementation of the Korn Shell programming language and a successor to the Public Domain Korn Shell.

Description

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.

Resolution

All mksh users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-shells/mksh-50c"

References