cve/2018/CVE-2018-20969.md
2024-06-09 00:33:16 +00:00

25 lines
1.1 KiB
Markdown

### [CVE-2018-20969](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-20969)
![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen)
### 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.
### POC
#### Reference
- http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html
- http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html
- https://github.com/irsl/gnu-patch-vulnerabilities
- https://github.com/irsl/gnu-patch-vulnerabilities
- https://seclists.org/bugtraq/2019/Aug/29
- https://seclists.org/bugtraq/2019/Aug/29
#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/irsl/gnu-patch-vulnerabilities
- https://github.com/phonito/phonito-vulnerable-container