cve/2018/CVE-2018-1000156.md

29 lines
1.4 KiB
Markdown
Raw Normal View History

2024-05-26 14:27:05 +02:00
### [CVE-2018-1000156](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-1000156)
![](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
GNU Patch version 2.7.6 contains an input validation vulnerability when processing patch files, specifically the EDITOR_PROGRAM invocation (using ed) can result in code execution. This attack appear to be exploitable via a patch file processed via the patch utility. This is similar to FreeBSD's CVE-2015-1418 however although they share a common ancestry the code bases have diverged over time.
### POC
#### Reference
- http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html
- http://rachelbythebay.com/w/2018/04/05/bangpatch/
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667#19
- https://savannah.gnu.org/bugs/index.php?53566
- https://seclists.org/bugtraq/2019/Aug/29
#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/NeXTLinux/vunnel
- https://github.com/anchore/vunnel
- https://github.com/andir/nixos-issue-db-example
- https://github.com/irsl/gnu-patch-vulnerabilities
- https://github.com/khulnasoft-lab/vulnlist
- https://github.com/phonito/phonito-vulnerable-container
- https://github.com/renovate-bot/NeXTLinux-_-vunnel