Improper Link Resolution Before File Access ('Link Following') in GNU patch - CVE-2019-13636

 

Improper Link Resolution Before File Access ('Link Following') in GNU patch - CVE-2019-13636

Published: July 22, 2019 / Updated: July 22, 2019


Vulnerability identifier: #VU19283
CSH Severity: Low
CVSS v4: 4.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-13636
CWE-ID: CWE-59
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to gain unauthorized access to files or directories on a targeted system.

The vulnerability exists due to the software mishandles the following of symlinks in certain cases other than input files in the "inp.c" and "util.c" files. A local authenticated user can gain unauthorized access to read or modify files and directories on a targeted system.

Affected software

GNU patch
patch (Alpine package)
patch (Debian package)
patch (Red Hat package)
patch
patch-debuginfo
patch-debugsource
Gentoo Linux
SUSE Manager Server
SUSE Manager Proxy
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for x86_64
SUSE Linux Enterprise Server
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Server for SAP Applications
openSUSE Leap
Fedora

How to mitigate CVE-2019-13636

Cybersecurity Help is currently unaware of any official solution to address this vulnerability.

patch (Alpine package) - addressed in versions 2.7.5-r3, 2.7.6-r3
patch (Debian package) - update to 2.7.5-1+deb9u2
patch (Red Hat package) - update to 2.7.6-11.el8
patch - addressed in versions 2.7.5-8.8.1, 2.7.6-150000.5.3.1
patch-debuginfo - addressed in versions 2.7.5-8.8.1, 2.7.6-150000.5.3.1
patch-debugsource - addressed in versions 2.7.5-8.8.1, 2.7.6-150000.5.3.1
patch - update to 2.7.6-11.fc30

External References

Related Security Bulletins