# JLSEC-2026-13: doedscript in pch.c in GNU patch through 2.7.6 does not block strings beginning with a !

- 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-25T18:23:47.198Z
- Related: CVE-2018-20969

## Description

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

(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://seclists.org/bugtraq/2019/Aug/29> (web)

## Sources

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

---

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