# CVE-2018-6951

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 8% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2018-02-13 · Modified: 2024-08-05
- Aliases: ALPINE-CVE-2018-6951, UBUNTU-CVE-2018-6951, DEBIAN-CVE-2018-6951, CGA-frg3-gqm6-92qr, CGA-xhhf-6rv8-7mhq
- Record: https://cvemate.com/vulnerability/CVE-2018-6951 · JSON: https://cvemate.com/vulnerability/CVE-2018-6951/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 8.427%, percentile 95.139%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine patch (Alpine Linux): \< 2.7.6-r2 \| \< 2.7.5-r2
- chainguard patch (Chainguard): \< 2.7.6-r3
- wolfi patch (Wolfi): \< 2.7.6-r3
- canonical ubuntu\_linux: 14.04 \| 16.04 \| 17.10
- debian patch (Debian): All versions (No fix recorded)
- ubuntu patch (Ubuntu): \< 2.7.1-4ubuntu2.4 \| \< 2.7.5-1ubuntu0.16.04.1
- gnu patch: ≤ 2.7.6

## References

- <https://usn.ubuntu.com/3624-1/>
- <https://git.savannah.gnu.org/cgit/patch.git/commit/?id=f290f48a621867084884bfff87f8093c15195e6a>
- <http://www.securityfocus.com/bid/103044>
- <https://savannah.gnu.org/bugs/index.php?53132>
- <https://security.gentoo.org/glsa/201904-17>
- <https://security.alpinelinux.org/vuln/CVE-2018-6951>
- <https://ubuntu.com/security/CVE-2018-6951>
- <https://ubuntu.com/security/notices/USN-3624-1>
- <https://www.cve.org/CVERecord?id=CVE-2018-6951>
- <https://security-tracker.debian.org/tracker/CVE-2018-6951>
- <https://nvd.nist.gov/vuln/detail/CVE-2018-6951>

---

Data as of 2026-12-05T03:11:18.103Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
