Vulnerability · Published May 16, 2022 · Assigned by mitre
CVE-2022-30781
High 7.5
In plain English
A high-severity security flaw in the gitea package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 87.9% (higher than 99.8% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.5High
Exploit odds (30 days)87.9%top 0.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling2Metasploit, Public PoC
Official description
Gitea before 1.16.7 does not escape git fetch remote.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | gitea | 1.16.7-r0 | ALPINE-CVE-2022-30781 |
| Alpine:v3.21 | gitea | 1.16.7-r0 | ALPINE-CVE-2022-30781 |
| Alpine:v3.22 | gitea | 1.16.7-r0 | ALPINE-CVE-2022-30781 |
| Alpine:v3.23 | gitea | 1.16.7-r0 | ALPINE-CVE-2022-30781 |
| Alpine:v3.24 | gitea | 1.16.7-r0 | ALPINE-CVE-2022-30781 |
| Go | code.gitea.io/gitea | 1.16.7 | GHSA-p5f9-c9j9-g8qx |
| Go | code.gitea.io/gitea | 1.16.7 | GO-2022-0450 |
Affected products (as reported)
References
- https://github.com/go-gitea/gitea/pull/19490
- https://github.com/go-gitea/gitea/pull/19487
- https://blog.gitea.io/2022/05/gitea-1.16.7-is-released/
- http://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.html