# JLSEC-2026-17: 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…

- Severity: High 7.8 (CVSS:3.0, scored by Julia Security Advisories) `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-03-31T16:50:26.988Z
- Modified: 2026-07-18T00:01:36.349Z
- Related: CVE-2019-13638

## Description

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.

(As written by Julia Security Advisories.)

## Affected

- patch_jll (Julia): before 2.8.0+0

## Every score

- Julia Security Advisories: CVSS:2.0 `AV:N/AC:M/Au:N/C:C/I:C/A:C`
- Julia Security Advisories: CVSS:3.0 7.8 High `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html> (web)
- <https://access.redhat.com/errata/RHSA-2019:2798> (web)
- <https://access.redhat.com/errata/RHSA-2019:2964> (web)
- <https://access.redhat.com/errata/RHSA-2019:3757> (web)
- <https://access.redhat.com/errata/RHSA-2019:3758> (web)
- <https://access.redhat.com/errata/RHSA-2019:4061> (web)
- <https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0> (web)
- <https://github.com/irsl/gnu-patch-vulnerabilities> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVWWGISFWACROJJPVJJL4UBLVZ7LPOLT/> (web)
- <https://seclists.org/bugtraq/2019/Aug/29> (web)
- <https://seclists.org/bugtraq/2019/Jul/54> (web)
- <https://security-tracker.debian.org/tracker/CVE-2019-13638> (web)
- <https://security.gentoo.org/glsa/201908-22> (web)
- <https://security.netapp.com/advisory/ntap-20190828-0001/> (web)
- <https://www.debian.org/security/2019/dsa-4489> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-17](https://osv.dev/vulnerability/JLSEC-2026-17), CC-BY-4.0, modified 2026-07-18

---

Page: https://cve.day/JLSEC-2026-17 · Whole record: https://cve.day/JLSEC-2026-17.json · Rebuilt by cve.day 2026-11-25T22:56:26.022Z
