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...
Keywords:
Status: CLOSED ERRATA
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:
Depends On: 1560696 1560697 1560700 1560701 1560702
Blocks: 1557385
TreeView+ depends on / blocked
 
Reported: 2018-03-16 14:01 UTC by Pedro Sampaio
Modified: 2021-02-17 00:37 UTC (History)
7 users (show)

Fixed In Version: zsh 5.5
Doc Type: If docs needed, set a value
Doc Text:
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:
Environment:
Last Closed: 2019-06-10 10:17:57 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1932 0 None None None 2018-06-19 04:56:32 UTC
Red Hat Product Errata RHSA-2018:3073 0 None None None 2018-10-30 07:30:26 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.