CVE-2018-6951
An issue was discovered in GNU patch through 2.7.6. There is a segmentation fault, associated...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
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.
- Record
CVE-2018-6951- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-476
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2018-6951- Updated
- 2026-11-02
EUVDEUVD-2018-18695 No score
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.
- Record
EUVD-2018-18695- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-jx75-987w-4cqc
7.5
An issue was discovered in GNU patch through 2.7.6. There is a segmentation fault, associated...
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.
- Record
GHSA-jx75-987w-4cqc- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-476
- Updated
- 2026-11-02
OSVALPINE-CVE-2018-6951
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.
- Record
ALPINE-CVE-2018-6951- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVAZL-35103
7.5
CVE-2018-6951 affecting package patch for versions less than 2.7.6-9
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.
- Record
AZL-35103- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-05
Show 12 moreShow less
OSVAZL-6787
7.5
CVE-2018-6951 affecting package patch for versions less than 2.7.6-7
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.
- Record
AZL-6787- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2018-6951
7.5
CVE-2018-6951 does not affect BellSoft software
- Record
BELL-CVE-2018-6951- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSV
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.
- Record
CVE-2018-6951- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-6951
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.
- Record
DEBIAN-CVE-2018-6951- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVJLSEC-2026-14
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.
- Record
JLSEC-2026-14- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-6951
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.
- Record
UBUNTU-CVE-2018-6951- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVMGASA-2018-0277 No score
Updated patch packages fix security vulnerabilities
Updated patch package fixes security vulnerabilities:
It was discovered that Patch incorrectly handled certain files. An attacker could possibly use this to cause a denial of service (CVE-2016-10713).
It was discovered that Patch incorrectly handled certain inputs. An attacker could possibly use this to cause a denial of service (CVE-2018-6951).
It was discovered that Patch incorrectly handled certain input validation. An attacker could possibly use this to execute arbitrary code (CVE-2018-1000156).
- Record
MGASA-2018-0277- Updated
- 2026-11-02
OSVMGASA-2018-0448 No score
Updated patch packages fix security vulnerabilities
A NULL pointer dereference flaw was found in the way patch processed patch files. An attacker could potentially use this flaw to crash patch by tricking it into processing crafted patches (CVE-2018-6951).
A double-free flaw was found in the way the patch utility processed patch files. An attacker could potentially use this flaw to crash the patch utility by tricking it into processing crafted patches (CVE-2018-6952).
- Record
MGASA-2018-0448- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11151-1 No score
patch-2.7.6-3.43 on GA media
These are all security issues fixed in the patch-2.7.6-3.43 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11151-1- Updated
- 2026-11-02
OSVROOT-OS-DEBIAN-12-CVE-2018-6951 No score
CVE-2018-6951 in patch - Patched by Root
Root has patched CVE-2018-6951 in the patch package for Root:Debian:12. Multiple fixed versions available.
- Record
ROOT-OS-DEBIAN-12-CVE-2018-6951- Updated
- 2026-11-02
OSVSUSE-SU-2018:1128-1 No score
Security update for patch
This update for patch fixes the following issues:
Security issues fixed:
- CVE-2018-1000156: Malicious patch files cause ed to execute arbitrary commands (bsc#1088420).
- CVE-2018-6951: Fixed NULL pointer dereference in the intuit_diff_type function in pch.c (bsc#1080918).
- CVE-2016-10713: Fixed out-of-bounds access within pch_write_line() in pch.c (bsc#1080918).
- Record
SUSE-SU-2018:1128-1- Updated
- 2026-11-02
OSVUSN-3624-1 No score
patch vulnerabilities
It was discovered that Patch incorrectly handled certain files. An attacker could possibly use this to cause a denial of service. (CVE-2016-10713)
It was discovered that Patch incorrectly handled certain input validation. An attacker could possibly use this to execute arbitrary code. (CVE-2018-1000156)
It was discovered that Patch incorrectly handled certain inputs. An attacker could possibly use this to cause a denial of service. (CVE-2018-6951)
- Record
USN-3624-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
patchAlpine:v3.10 |
before 2.7.6-r2 | 2.7.6-r2 |
patchAlpine:v3.11 |
before 2.7.6-r2 | 2.7.6-r2 |
patchAlpine:v3.12 |
before 2.7.6-r2 | 2.7.6-r2 |
patchAlpine:v3.13 |
before 2.7.6-r2 | 2.7.6-r2 |
patchAlpine:v3.14 |
before 2.7.6-r2 | 2.7.6-r2 |
patchAlpine:v3.15 |
before 2.7.6-r2 | 2.7.6-r2 |
patchAlpine:v3.16 |
before 2.7.6-r2 | 2.7.6-r2 |
patchAlpine:v3.17 |
before 2.7.6-r2 | 2.7.6-r2 |
patchAlpine:v3.18 |
before 2.7.6-r2 | 2.7.6-r2 |
patchAlpine:v3.19 |
before 2.7.6-r2 | 2.7.6-r2 |
Show 30 moreShow less
| Package | Affected | Fixed |
|---|---|---|
patchAlpine:v3.20 |
before 2.7.6-r2 | 2.7.6-r2 |
patchAlpine:v3.21 |
before 2.7.6-r2 | 2.7.6-r2 |
patchAlpine:v3.22 |
before 2.7.6-r2 | 2.7.6-r2 |
patchAlpine:v3.23 |
before 2.7.6-r2 | 2.7.6-r2 |
patchAlpine:v3.24 |
before 2.7.6-r2 | 2.7.6-r2 |
patchAlpine:v3.4 |
before 2.7.5-r2 | 2.7.5-r2 |
patchAlpine:v3.5 |
before 2.7.5-r2 | 2.7.5-r2 |
patchAlpine:v3.6 |
before 2.7.5-r2 | 2.7.5-r2 |
patchAlpine:v3.7 |
before 2.7.5-r2 | 2.7.5-r2 |
patchAlpine:v3.8 |
before 2.7.6-r2 | 2.7.6-r2 |
patchAlpine:v3.9 |
before 2.7.6-r2 | 2.7.6-r2 |
patchAzure Linux:3 |
before 2.7.6-9 | 2.7.6-9 |
patchAzure Linux:2 |
before 2.7.6-7 | 2.7.6-7 |
patchDebian:12 |
All versions, plus listed versions 2.7.6-72.8-12.8-2 |
None known |
patchDebian:13 |
All versions, plus listed versions 2.8-2 |
None known |
patchDebian:14 |
All versions, plus listed versions 2.8-2 |
None known |
patch_jllJulia |
before 2.8.0+0 | 2.8.0+0 |
patchMageia:5 From an advisory covering 3 CVEs |
before 2.7.6-1.mga5 | 2.7.6-1.mga5 |
patchMageia:6 From an advisory covering 3 CVEs |
before 2.7.6-1.mga6 | 2.7.6-1.mga6 |
patchMageia:6 From an advisory covering 2 CVEs |
before 2.7.6-1.1.mga6 | 2.7.6-1.1.mga6 |
patchRoot:Debian:12 |
before 2.7.6-7.aikido.7 | 2.7.6-7.aikido.72.7.6-7.root.io.52.7.6-7.root.io.22.7.6-7.root.io.42.7.6-7.root.io.62.7.6-7.root.io.3 |
rootio-patchRoot:Debian:12 |
before 2.7.6-7.aikido.7 | 2.7.6-7.aikido.72.7.6-7.root.io.52.7.6-7.root.io.22.7.6-7.root.io.42.7.6-7.root.io.62.7.6-7.root.io.3 |
patchSUSE:Linux Enterprise Desktop 12 SP3 From an advisory covering 3 CVEs |
before 2.7.5-8.5.1 | 2.7.5-8.5.1 |
patchSUSE:Linux Enterprise Server 12 SP3 From an advisory covering 3 CVEs |
before 2.7.5-8.5.1 | 2.7.5-8.5.1 |
patchSUSE:Linux Enterprise Server for SAP Applications 12 SP3 From an advisory covering 3 CVEs |
before 2.7.5-8.5.1 | 2.7.5-8.5.1 |
patchUbuntu:14.04:LTS |
before 2.7.1-4ubuntu2.4, plus listed versions 2.7.1-32.7.1-42.7.1-4ubuntu12.7.1-4ubuntu22.7.1-4ubuntu2.3 |
2.7.1-4ubuntu2.4 |
patchUbuntu:16.04:LTS |
before 2.7.5-1ubuntu0.16.04.1, plus listed versions 2.7.5-1 |
2.7.5-1ubuntu0.16.04.1 |
patchUbuntu:14.04:LTS From an advisory covering 3 CVEs |
before 2.7.1-4ubuntu2.4, plus listed versions 2.7.1-32.7.1-42.7.1-4ubuntu12.7.1-4ubuntu22.7.1-4ubuntu2.3 |
2.7.1-4ubuntu2.4 |
patchUbuntu:16.04:LTS From an advisory covering 3 CVEs |
before 2.7.5-1ubuntu0.16.04.1, plus listed versions 2.7.5-1 |
2.7.5-1ubuntu0.16.04.1 |
patchopenSUSE:Tumbleweed From an advisory covering 3 CVEs |
before 2.7.6-3.43 | 2.7.6-3.43 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-6951 is a high vulnerability (CVSS 7.5) in Gnu Patch, published February 13, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 8.36%, the 94th percentile. Fixed in patch 2.7.6-r2.
References
usn.ubuntu.com/3624-1
git.savannah.gnu.org/cgit/patch.git/commit?id=f290f48a621867084884bfff87f8093c15195e6a
securityfocus.com/bid/103044
savannah.gnu.org/bugs/index.php?53132
security.gentoo.org/glsa/201904-17
nvd.nist.gov/vuln/detail/CVE-2018-6951
Show 21 moreShow less
github.com/advisories/GHSA-jx75-987w-4cqc
security.alpinelinux.org/vuln/CVE-2018-6951
docs.bell-sw.com/security/cves/CVE-2018-6951
security-tracker.debian.org/tracker/CVE-2018-6951
advisories.mageia.org/MGASA-2018-0277.html
bugs.mageia.org/show_bug.cgi?id=22587
advisories.mageia.org/MGASA-2018-0448.html
bugs.mageia.org/show_bug.cgi?id=23704
lists.fedoraproject.org/archives/list/[email protected]/thread/DTAZPKCAJTAOK6CYQP7SPWNXDIAG4A37
suse.com/support/update/announcement/2018/suse-su-20181128-1
bugzilla.suse.com/1080918
bugzilla.suse.com/1080951
bugzilla.suse.com/1088420
suse.com/security/cve/CVE-2016-10713
suse.com/security/cve/CVE-2018-1000156
suse.com/security/cve/CVE-2018-6951
ubuntu.com/security/CVE-2018-6951
ubuntu.com/security/notices/USN-3624-1
cve.org/CVERecord?id=CVE-2018-6951
ubuntu.com/security/CVE-2016-10713
ubuntu.com/security/CVE-2018-1000156