CVE-2022-31268 Path traversal in Gitblit
An attacker can read sensitive website files like WEB-INF or META-INF via path traversal in Gitblit.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-31268?
CVE-2022-31268 is a high-severity path traversal vulnerability in n/a, published on 21 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A Path Traversal vulnerability in Gitblit 1.9.3 can lead to reading website files via /resources//../ (e.g., followed by a WEB-INF or META-INF pathname).
Weakness: CWE-22
Which versions are affected by CVE-2022-31268?
2 open source packages ship an affected version, including com.gitblit:gitblit. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.gitblit:gitblit Maven | All versions to 1.9.3 | None |
com.gitblit:gitblit Maven | All versions to 1.9.3 | None |
Products include Gitblit Gitblit.
How do I fix CVE-2022-31268?
No fix has been published for CVE-2022-31268 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2022-31268 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-31268 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in n/a
Sources
Also known as GHSA-2c65-rq62-fqhq.