GNU Patch vulnerabilities
15 CVEs affecting GNU Patch, 0 known to be exploited (CISA KEV), with EPSS scores. Latest: CVE-2026-56289, published 2026-07-09.
More from GNU.
Highest priority
Known exploited (CISA KEV) first, then by EPSS exploit probability.
- CVE-2015-1395, published 2017-08-25. High severity, CVSS 7.5. EPSS: 11.3% chance of exploitation in the next 30 days. 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…
- CVE-2018-6951, published 2018-02-13. High severity, CVSS 7.5. EPSS: 8.4% chance of exploitation in the next 30 days. 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…
- CVE-2018-6952, published 2018-02-13. High severity, CVSS 7.5. EPSS: 8.2% chance of exploitation in the next 30 days. A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
- CVE-2015-1196, published 2015-01-21. Medium severity, CVSS 4.3. EPSS: 6.1% chance of exploitation in the next 30 days. GNU patch 2.7.1 allows remote attackers to write to arbitrary files via a symlink attack in a patch file.
- CVE-2018-1000156, published 2018-04-06. High severity, CVSS 7.8. EPSS: 5.3% chance of exploitation in the next 30 days. 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. This attack appear…
- CVE-2019-13638, published 2019-07-26. High severity, CVSS 7.8. EPSS: 4.5% chance of exploitation in the next 30 days. 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. The ed…
- CVE-2019-13636, published 2019-07-17. Medium severity, CVSS 5.9. EPSS: 3.9% chance of exploitation in the next 30 days. 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.
- CVE-2015-1396, published 2019-11-25. High severity, CVSS 7.5. EPSS: 3.3% chance of exploitation in the next 30 days. 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…
- CVE-2018-20969, published 2019-08-16. High severity, CVSS 7.8. EPSS: 2.7% chance of exploitation in the next 30 days. 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…
- CVE-2014-9637, published 2017-08-25. Medium severity, CVSS 5.5. EPSS: 2.4% chance of exploitation in the next 30 days. 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.
Latest
- CVE-2026-56289, published 2026-07-09. Medium severity, CVSS 5.5. EPSS: 0.1% chance of exploitation in the next 30 days. 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. A specially crafted patch can specify an…
- CVE-2026-56288, published 2026-07-09. Medium severity, CVSS 5.5. EPSS: 0.1% chance of exploitation in the next 30 days. GNU patch is vulnerable to a NULL pointer dereference when processing a specially crafted unified-diff patch file. Improper handling of consecutive end-of-file newline markers can corrupt internal…
- CVE-2021-45261, published 2021-12-22. Medium severity, CVSS 5.5. EPSS: 0.8% chance of exploitation in the next 30 days. An Invalid Pointer vulnerability exists in GNU patch 2.7 via the another_hunk function, which causes a Denial of Service.
- CVE-2019-20633, published 2020-03-25. Medium severity, CVSS 5.5. EPSS: 1% chance of exploitation in the next 30 days. 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…