Bug 1557382 (CVE-2018-1083) - CVE-2018-1083 zsh: Stack-based buffer overflow in gen_matches_files() at compctl.c
Summary: CVE-2018-1083 zsh: Stack-based buffer overflow in gen_matches_files() at comp...
Status: NEW
Alias: CVE-2018-1083
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=moderate,public=20180326,repor...
Keywords: Security
Depends On: 1560702 1560696 1560697 1560700 1560701
Blocks: 1557385
TreeView+ depends on / blocked
 
Reported: 2018-03-16 14:01 UTC by Pedro Sampaio
Modified: 2018-10-30 07:30 UTC (History)
7 users (show)

(edit)
A buffer overflow flaw was found in the zsh shell auto-complete functionality. A local, unprivileged user can create a specially crafted directory path which leads to code execution in the context of the user who tries to use auto-complete to traverse the before mentioned path. If the user affected is privileged, this leads to privilege escalation.
Clone Of:
(edit)
Last Closed:


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1932 None None None 2018-06-19 04:56 UTC
Red Hat Product Errata RHSA-2018:3073 None None None 2018-10-30 07:30 UTC

Description Pedro Sampaio 2018-03-16 14:01:25 UTC
zsh is vulnerable to a stack-based buffer overflow in the gen_matches_files() function. A local attacker could exploit this through tab completion of directories with long names leading to arbitrary code execution.

Comment 9 Richard Maciel Costa 2018-03-26 19:10:55 UTC
Created zsh tracking bugs for this issue:

Affects: fedora-all [bug 1560696]

Comment 12 Richard Maciel Costa 2018-05-25 13:13:45 UTC
Acknowledgments:

Name: Richard Maciel Costa (Red Hat)

Comment 13 errata-xmlrpc 2018-06-19 04:56:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2018:1932 https://access.redhat.com/errata/RHSA-2018:1932

Comment 14 errata-xmlrpc 2018-10-30 07:30:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2018:3073 https://access.redhat.com/errata/RHSA-2018:3073


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