← Back

Patch

patch

Vendor: Gnu • 15 CVEs

CVEs (15)

CVE
VENDORS
PRODUCTS
UPDATED
PUBLISHED
CVSS
1Gnu
1Patch
Jul 13, 2026
Jul 9, 2026
4.6 MEDIUM· v4
5.5 MEDIUM· v3
N/A· v2
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...Show more
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 infinite processing loop while attempting to locate the requested position. This results in excessive CPU consumption and prevents the process from completing. An attacker can trigger this behavior by supplying a malicious patch file, causing the utility to become unresponsive and require manual termination. This issue has been fixed in the commit faba04ef4f2b410257f76c1b9dc85e350929c4b9Show less
1Gnu
1Patch
Jul 13, 2026
Jul 9, 2026
4.6 MEDIUM· v4
5.5 MEDIUM· v3
N/A· v2
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 c...Show more
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 pass a NULL pointer to fwrite() during patch processing. An attacker can trigger this condition with a malicious patch file, causing the utility to crash and resulting in a denial of service. This issue has been fixed in the commit e6d6a4e021660679d7fc9150f981d4920f722313Show less
1Gnu
1Patch
Jun 17, 2026
Dec 22, 2021
N/A· v4
5.5 MEDIUM· v3
4.3 MEDIUM· v2
An Invalid Pointer vulnerability exists in GNU patch 2.7 via the another_hunk function, which causes a Denial of Service.
1Gnu
1Patch
Jun 17, 2026
Mar 25, 2020
N/A· v4
5.5 MEDIUM· v3
4.3 MEDIUM· v2
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 in...Show more
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.Show less
2Debian
Gnu
2Debian Linux
Patch
Nov 21, 2024
Nov 25, 2019
N/A· v4
7.5 HIGH· v3
6.4 MEDIUM· v2
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-...Show more
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.Show less
1Gnu
1Patch
Nov 21, 2024
Aug 16, 2019
N/A· v4
7.8 HIGH· v3
9.3 HIGH· v2
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 m...Show more
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.Show less
2Debian
Gnu
2Debian Linux
Patch
Jun 17, 2026
Jul 26, 2019
N/A· v4
7.8 HIGH· v3
9.3 HIGH· v2
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 editor does not need to b...Show more
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 editor does not need to be present on the vulnerable system. This is different from CVE-2018-1000156.Show less
1Gnu
1Patch
Jun 17, 2026
Jul 17, 2019
N/A· v4
5.9 MEDIUM· v3
5.8 MEDIUM· v2
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.
4Canonical
DebianGnu+1 more
9Debian Linux
Enterprise Linux DesktopEnterprise Linux Server+6 more
Apr 14, 2025
Apr 6, 2018
N/A· v4
7.8 HIGH· v3
6.8 MEDIUM· v2
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...Show more
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 similar to FreeBSD's CVE-2015-1418 however although they share a common ancestry the code bases have diverged over time.Show less
1Gnu
1Patch
Jun 17, 2026
Feb 13, 2018
N/A· v4
7.5 HIGH· v3
5.0 MEDIUM· v2
A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
2Canonical
Gnu
2Patch
Ubuntu Linux
Jun 17, 2026
Feb 13, 2018
N/A· v4
7.5 HIGH· v3
5.0 MEDIUM· v2
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 rena...Show more
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.Show less
1Gnu
1Patch
Nov 21, 2024
Feb 13, 2018
N/A· v4
5.5 MEDIUM· v3
4.3 MEDIUM· v2
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.
3Canonical
FedoraprojectGnu
3Fedora
PatchUbuntu Linux
May 13, 2026
Aug 25, 2017
N/A· v4
7.5 HIGH· v3
7.8 HIGH· v2
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 di...Show more
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.Show less
4Canonical
FedoraprojectGnu+1 more
4Fedora
MageiaPatch+1 more
May 13, 2026
Aug 25, 2017
N/A· v4
5.5 MEDIUM· v3
7.1 HIGH· v2
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.
3Gnu
OpensuseOracle
3Opensuse
PatchSolaris
May 6, 2026
Jan 21, 2015
N/A· v4
N/A· v3
4.3 MEDIUM· v2
GNU patch 2.7.1 allows remote attackers to write to arbitrary files via a symlink attack in a patch file.