Bug 26213 - ksh new security issue CVE-2019-14868
Summary: ksh new security issue CVE-2019-14868
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2020-02-18 15:40 CET by David Walser
Modified: 2021-03-17 12:03 CET (History)
6 users (show)

See Also:
Source RPM: ksh-2020.0.0.81.git8052490-0.1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description David Walser 2020-02-18 15:40:38 CET
RedHat has issued an advisory on February 17:
https://access.redhat.com/errata/RHSA-2020:0515

The upstream fix is linked from the RedHat bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1757324

Mageia 7 is also affected.
David Walser 2020-02-18 15:40:51 CET

Whiteboard: (none) => MGA7TOO
CC: (none) => smelror

Comment 1 Lewis Smith 2020-02-18 20:32:54 CET
Assigning (previously CC) to Stig as the active 'ksh' maintainer.

Assignee: bugsquad => smelror
CC: smelror => (none)

Comment 2 David Walser 2020-02-20 22:56:08 CET
Fedora has issued an advisory for this on February 16:
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/N4R57SLEOTTXFWOLPTVVS2AOZ35FZEJR/
David Walser 2020-02-21 17:52:13 CET

Status comment: (none) => Patch available from Fedora

Comment 3 Stig-Ørjan Smelror 2020-02-24 19:32:45 CET
ksh 2020.0.0 on Cauldron has been obsoleted and pdksh has been updated to take its place.
Stig-Ørjan Smelror 2020-02-24 19:33:52 CET

Whiteboard: MGA7TOO => (none)
Version: Cauldron => 7
Source RPM: ksh-2020.0.0.338.git8d91e8a-0.2.mga8.src.rpm => ksh-2020.0.0.81.git8052490-0.1.mga7.src.rpm

Comment 4 Keith Bowes 2021-03-02 17:12:31 CET
(In reply to Stig-Ørjan Smelror from comment #3)
> ksh 2020.0.0 on Cauldron has been obsoleted and pdksh has been updated to
> take its place.

That seems backwards to me.  From what I gather, only ksh2020 isn't being further developed, where the master branch is a continuation of ksh93 (a shame as the only shells I've tried in which `echo hi | read a; echo $a` (https://github.com/ibara/oksh/blob/main/README.pdksh) prints out "hi" are ksh2020 and zsh; bash, ksh93, pdksh, mksh, etc all print out an empty string).  pdksh is ancient and I can't even find where it exists on the Internet anymore.  In fact, I don't even know where you guys get the source code; it's certainly not at the location specified in the SPEC file (perhaps it's just cached, inherited from Mandriva).

The mksh FAQ says that pdksh hasn't been updated since 1999.  It seems to me that if you're going to replace upstream ksh with something, it should be mksh, which (unlike pdksh) is actively developed and has been blessed by David Korn. 
http://www.mirbsd.org/mksh-faq.htm#kornshell

CC: (none) => zooplah

Comment 5 David Walser 2021-03-02 17:19:02 CET
Thanks for the information.  Please file a new bug with this information if you haven't already.
Comment 6 Nicolas Lécureuil 2021-03-15 19:42:12 CET
patch added to fix this CVE:


src:
    - ksh-2020.0.0.81.git8052490-0.1.1.mga7

CC: (none) => mageia
Status comment: Patch available from Fedora => (none)
Assignee: smelror => qa-bugs

Comment 7 David Walser 2021-03-15 23:45:07 CET
Advisory:
========================

Updated ksh package fixes security vulnerability:

A flaw was found in the way ksh evaluates certain environment variables. An
attacker could use this flaw to override or bypass environment restrictions to
execute shell commands. Services and applications that allow remote
unauthenticated attackers to provide one of those environment variables could
allow them to exploit this issue remotely (CVE-2019-14868).

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-14868
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/N4R57SLEOTTXFWOLPTVVS2AOZ35FZEJR/
Comment 8 Brian Rockwell 2021-03-16 18:49:42 CET
MGA7 - 64 bit - gnome

Installed and ran a basic script.  My days of sophisticated KSH scripts are done since I quit coding for hp-ux.

ksh is functional.

CC: (none) => brtians1
Whiteboard: (none) => MGA7-64-OK

Comment 9 Thomas Andrews 2021-03-16 21:59:25 CET
Validating. Advisory in Comment 7.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Comment 10 Dave Hodgins 2021-03-17 10:27:41 CET
Advisory committed to svn.

Keywords: (none) => advisory
CC: (none) => davidwhodgins

Comment 11 Mageia Robot 2021-03-17 12:03:00 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2021-0141.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.