cve/2017/CVE-2017-17458.md

20 lines
913 B
Markdown
Raw Normal View History

2024-05-26 14:27:05 +02:00
### [CVE-2017-17458](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-17458)
![](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
In Mercurial before 4.4.1, it is possible that a specially malformed repository can cause Git subrepositories to run arbitrary code in the form of a .git/hooks/post-update script checked into the repository. Typical use of Mercurial prevents construction of such repositories, but they can be created programmatically.
### POC
#### Reference
- https://bz.mercurial-scm.org/show_bug.cgi?id=5730
- https://hackerone.com/reports/294147
- https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html
#### Github
No PoCs found on GitHub currently.