PT-2018-1898 · Gnu+5 · Gnu Patch+5
Rachel Kroll
·
Published
2018-04-05
·
Updated
2024-06-15
·
CVE-2018-1000156
CVSS v2.0
9.3
High
| Vector | AV:N/AC:M/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
GNU Patch version 2.7.6
Description
The issue is related to an input validation vulnerability in GNU Patch when processing patch files, specifically with the EDITOR PROGRAM invocation using
ed. This can result in code execution. The vulnerability is exploitable via a patch file processed by the patch utility. It is similar to a previously known issue, although the code bases have diverged over time. The vulnerability is also related to the support for the outdated "ed" format, which allows the execution of external commands using the ! operator, potentially enabling a remote attacker to execute arbitrary code.Recommendations
For GNU Patch version 2.7.6, consider disabling the
ed format support or restricting the use of the EDITOR PROGRAM invocation until a patch is available. Avoid using the ! operator in patch files to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Centos
Gnu Patch
Red Hat
Suse
Ubuntu