VendorsGNUpatchany version
Vulnerabilities

GNU Patch any version

Ranked by severity, then by exploit likelihood. Click a CVE ID for its full record.

11CVEs
CVE-2018-20969
do_ed_script in pch.c in GNU patch through 2.7.6 does not block strings beginning with a ! character. NOTE: this is the same commit as for CVE-2019-13638, but the ! syntax is specific to ed, and is unrelated to a shell metacharacter.
Published 2019-08-16 · Modified
9.3EPSS 0.027
CVE-2015-1395
Directory traversal vulnerability in GNU patch versions which support Git-style patching before 2.7.3 allows remote attackers to write to arbitrary files with the permissions of the target user via a .. (dot dot) in a diff file name.
Published 2017-08-25 · Modified
7.8EPSS 0.113
CVE-2018-6951
An issue was discovered in GNU patch through 2.7.6. There is a segmentation fault, associated with a NULL pointer dereference, leading to a denial of service in the intuit_diff_type function in pch.c, aka a "mangled rename" issue.
Published 2018-02-13 · Modified
7.5EPSS 0.084
CVE-2018-6952
A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
Published 2018-02-13 · Modified
7.5EPSS 0.082
CVE-2015-1396
A Directory Traversal vulnerability exists in the GNU patch before 2.7.4. A remote attacker can write to arbitrary files via a symlink attack in a patch file. NOTE: this issue exists because of an incomplete fix for CVE-2015-1196.
Published 2019-11-25 · Modified
7.5EPSS 0.033
CVE-2014-9637
GNU patch 2.7.2 and earlier allows remote attackers to cause a denial of service (memory consumption and segmentation fault) via a crafted diff file.
Published 2017-08-25 · Modified
7.1EPSS 0.024
CVE-2019-13636
In GNU patch through 2.7.6, the following of symlinks is mishandled in certain cases other than input files. This affects inp.c and util.c.
Published 2019-07-17 · Modified
5.9EPSS 0.039
CVE-2016-10713
An issue was discovered in GNU patch before 2.7.6. Out-of-bounds access within pch_write_line() in pch.c can possibly lead to DoS via a crafted input file.
Published 2018-02-13 · Modified
5.5EPSS 0.016
CVE-2019-20633
GNU patch through 2.7.6 contains a free(p_line[p_end]) Double Free vulnerability in the function another_hunk in pch.c that can cause a denial of service via a crafted patch file. NOTE: this issue exists because of an incomplete fix for CVE-2018-6952.
Published 2020-03-25 · Modified
5.5EPSS 0.010
CVE-2026-56288
NULL Pointer Dereference in GNU patch
Published 2026-07-09 · Analyzed
5.5EPSS 0.002
CVE-2026-56289
Loop with Unreachable Exit Condition in GNU patch
Published 2026-07-09 · Analyzed
5.5EPSS 0.002