1 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
2 |
Gentoo Linux Security Advisory GLSA 201511-01 |
3 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
4 |
https://security.gentoo.org/ |
5 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
6 |
|
7 |
Severity: Normal |
8 |
Title: MirBSD Korn Shell: Arbitrary code execution |
9 |
Date: November 02, 2015 |
10 |
Bugs: #524414 |
11 |
ID: 201511-01 |
12 |
|
13 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
14 |
|
15 |
Synopsis |
16 |
======== |
17 |
|
18 |
An attacker who already had access to the environment could so append |
19 |
values to parameters passed through programs. |
20 |
|
21 |
Background |
22 |
========== |
23 |
|
24 |
MirBSD Korn Shell is an actively developed free implementation of the |
25 |
Korn Shell programming language and a successor to the Public Domain |
26 |
Korn Shell. |
27 |
|
28 |
Affected packages |
29 |
================= |
30 |
|
31 |
------------------------------------------------------------------- |
32 |
Package / Vulnerable / Unaffected |
33 |
------------------------------------------------------------------- |
34 |
1 app-shells/mksh < 50c >= 50c |
35 |
|
36 |
Description |
37 |
=========== |
38 |
|
39 |
Improper sanitation of environment import allows for appending of |
40 |
values to passed parameters. |
41 |
|
42 |
Impact |
43 |
====== |
44 |
|
45 |
An attacker who already had access to the environment could so append |
46 |
values to parameters passed through programs (including sudo(8) or |
47 |
setuid) to shell scripts, including indirectly, after those programs |
48 |
intended to sanitise the environment, e.g. invalidating the last $PATH |
49 |
component. |
50 |
|
51 |
Workaround |
52 |
========== |
53 |
|
54 |
There is no known workaround at this time. |
55 |
|
56 |
Resolution |
57 |
========== |
58 |
|
59 |
All mksh users should upgrade to the latest version: |
60 |
|
61 |
# emerge --sync |
62 |
# emerge --ask --oneshot --verbose ">=app-shells/mksh-50c" |
63 |
|
64 |
References |
65 |
========== |
66 |
|
67 |
[ 1 ] mksh R50c released, security fix |
68 |
|
69 |
https://www.mirbsd.org/permalinks/wlog-10_e20141003-tg.htm#e20141003-tg_wlog-10 |
70 |
|
71 |
Availability |
72 |
============ |
73 |
|
74 |
This GLSA and any updates to it are available for viewing at |
75 |
the Gentoo Security Website: |
76 |
|
77 |
https://security.gentoo.org/glsa/201511-01 |
78 |
|
79 |
Concerns? |
80 |
========= |
81 |
|
82 |
Security is a primary focus of Gentoo Linux and ensuring the |
83 |
confidentiality and security of our users' machines is of utmost |
84 |
importance to us. Any security concerns should be addressed to |
85 |
security@g.o or alternatively, you may file a bug at |
86 |
https://bugs.gentoo.org. |
87 |
|
88 |
License |
89 |
======= |
90 |
|
91 |
Copyright 2015 Gentoo Foundation, Inc; referenced text |
92 |
belongs to its owner(s). |
93 |
|
94 |
The contents of this document are licensed under the |
95 |
Creative Commons - Attribution / Share Alike license. |
96 |
|
97 |
http://creativecommons.org/licenses/by-sa/2.5 |