Priority MEDIUM 46
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 ..
CVSS 3.0HIGH 7.5· Network · No auth · No interaction · EPSS 0.11289 · Published 2017-08-25 · Will not fix CWE-22
Priority MEDIUM 44
A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
CVSS 3.0HIGH 7.5· Network · No auth · No interaction · EPSS 0.0819 · Published 2018-02-13 · Partial fix CWE-415
Priority MEDIUM 44
An issue was discovered in GNU patch through 2.7.6.
CVSS 3.0HIGH 7.5· Network · No auth · No interaction · EPSS 0.08359 · Published 2018-02-13 · No fix listed CWE-476
Priority MEDIUM 42
GNU Patch version 2.7.6 contains an input validation vulnerability when processing patch files, specifically the EDITOR_PROGRAM invocation (using ed) can result in code execution.
CVSS 3.0HIGH 7.8· Local · No auth · User interaction · EPSS 0.05329 · Published 2018-04-06 · Partial fix CWE-20
Priority MEDIUM 41
GNU patch through 2.7.6 is vulnerable to OS shell command injection that can be exploited by opening a crafted patch file that contains an ed style diff payload with shell metacharacters.
CVSS 3.0HIGH 7.8· Local · No auth · User interaction · EPSS 0.04493 · Published 2019-07-26 · Partial fix CWE-78
Priority LOW 39
do_ed_script in pch.c in GNU patch through 2.7.6 does not block strings beginning with a ! character.
CVSS 3.0HIGH 7.8· Local · No auth · User interaction · EPSS 0.02684 · Published 2019-08-16 · Partial fix CWE-78
Priority LOW 39
A Directory Traversal vulnerability exists in the GNU patch before 2.7.4.
CVSS 3.1HIGH 7.5· Network · No auth · No interaction · EPSS 0.03253 · Published 2019-11-25 · No fix listed CWE-22
Priority LOW 33
In GNU patch through 2.7.6, the following of symlinks is mishandled in certain cases other than input files.
CVSS 3.0MEDIUM 5.9· Network · No auth · No interaction · EPSS 0.03895 · Published 2019-07-17 · Partial fix CWE-59
Priority LOW 29
GNU patch 2.7.1 allows remote attackers to write to arbitrary files via a symlink attack in a patch file.
CVSS 2.0MEDIUM 4.3· Network · No auth · Interaction — · EPSS 0.06146 · Published 2015-01-21 · Will not fix CWE-59
Priority LOW 29
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.
CVSS 3.0MEDIUM 5.5· Local · No auth · User interaction · EPSS 0.02361 · Published 2017-08-25 · No fix listed CWE-399
Priority LOW 28
An issue was discovered in GNU patch before 2.7.6.
CVSS 3.0MEDIUM 5.5· Local · No auth · User interaction · EPSS 0.01558 · Published 2018-02-13 · Partial fix CWE-119
Priority LOW 27
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.
CVSS 3.1MEDIUM 5.5· Local · No auth · User interaction · EPSS 0.01019 · Published 2020-03-25 · Fix deferred CWE-415
Priority LOW 26
An Invalid Pointer vulnerability exists in GNU patch 2.7 via the another_hunk function, which causes a Denial of Service.
CVSS 3.1MEDIUM 5.5· Local · No auth · User interaction · EPSS 0.00759 · Published 2021-12-22 · Fix deferred CWE-763
Priority LOW 20
GNU patch is vulnerable to a denial of service (DoS) due to improper validation of hunk (single block of changes in diff) line offsets in unified-diff input.
CVSS 4.0MEDIUM 4.6· Local · No auth · User interaction · EPSS 0.00115 · Published 2026-07-09 · Fixed CWE-835
Priority LOW 20
GNU patch is vulnerable to a NULL pointer dereference when processing a specially crafted unified-diff patch file.
CVSS 4.0MEDIUM 4.6· Local · No auth · User interaction · EPSS 0.00115 · Published 2026-07-09 · Fixed CWE-476