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 extremely large line number, causing the application to enter an effectively infi...
Product
GNU patch vulnerabilities
9 published CVES affecting GNU patch, from public sources (CVE.org, NVD, CISA KEV, FIRST EPSS, OSV).
- Total
- 9
- Critical
- 0
- High
- 4
- Medium
- 5
- Low
- 0
- Unscored
- 0
- CISA KEV
- 0
Latest GNU patch CVEs
Newest publication first
-
MediumCVSS 4.6
-
MediumCVSS 4.6
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 hunk (single block of changes in diff) data structures, causing the application to...
-
HighCVSS 7.8
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 to be exploitable via a patch file processed via the patch utility. This is simil...
-
HighCVSS 7.5
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.
-
MediumCVSS 5.5
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.
-
CVE-2018-6952 A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
PublishedHighCVSS 7.5A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
-
HighCVSS 7.5
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.
-
MediumCVSS 5.5
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.
-
MediumCVSS 4.3
GNU patch 2.7.1 allows remote attackers to write to arbitrary files via a symlink attack in a patch file.
Sources: CVE.org, NVD, CISA KEV, FIRST EPSS, OSV and public exploit-reference metadata. Product matching comes from the published CVE records. A proof-of-concept means public code exists; it is not evidence of exploitation.