CVE-2021-29417 gitjacker arbitrary code execution
Remote attackers can execute arbitrary code via a crafted .git directory due to directory traversal in the gitjacker library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-29417?
CVE-2021-29417 is a critical path traversal vulnerability in n/a, published on 29 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
gitjacker before 0.1.0 allows remote attackers to execute arbitrary code via a crafted .git directory because of directory traversal.
Weakness: CWE-22
Which versions are affected by CVE-2021-29417?
3 open source packages ship an affected version, including github.com/liamg/gitjacker. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/liamg/gitjacker Go | All versions | 0.1.0 |
github.com/liamg/gitjacker Go | All versions | 0.1.0 |
github.com/liamg/gitjacker Go | All versions | 0.1.0 |
Products include Gitjacker Project Gitjacker.
How do I fix CVE-2021-29417?
Upgrade github.com/liamg/gitjacker to 0.1.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-29417 being exploited?
There is no known exploitation of CVE-2021-29417 in the wild and no public exploit code.
Sources
Also known as GHSA-4j5x-f394-xx79, GO-2023-1911.