CVE-2022-30781
7.5high
Shell command injection in gitea
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 87.9% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-p5f9-c9j9-g8qxBIT-GITEA-2022-30781GO-2022-0450
Description
Gitea before 1.16.7 does not escape git fetch remote.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| code.gitea.io/gitea (Go) | before 1.16.7 | GitHub Advisory Database, Go Vulnerability Database |
| gitea gitea | before 1.16.7 | NVD |
| gitea (Bitnami) | before 1.16.7 | Bitnami Vulnerability Database |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
Gitea before 1.16.7 does not escape git fetch remote.
GitHub Advisory Database
Gitea before 1.16.7 does not escape the shell out for git fetch remote allowing for shell command injection
Go Vulnerability Database
Shell command injection in gitea in code.gitea.io/gitea
NVD (es)
Gitea versiones anteriores a 1.16.7, no escapa de git fetch remote
References
| https://github.com/go-gitea/gitea/pull/19490 | advisory, patch, third-party-advisory, web | |
| https://github.com/go-gitea/gitea/pull/19487 | advisory, patch, third-party-advisory, web | |
| https://blog.gitea.io/2022/05/gitea-1.16.7-is-released/ | advisory, release-notes, vendor-advisory | |
| http://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.html | advisory, exploit, third-party-advisory, vdb-entry, web | |
| http://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.html | advisory, exploit, third-party-advisory, vdb-entry, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-30781 | advisory, web | |
| https://blog.gitea.io/2022/05/gitea-1.16.7-is-released | web | |
| https://github.com/go-gitea/gitea | package | |
| https://github.com/advisories/GHSA-p5f9-c9j9-g8qx | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-30781 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-p5f9-c9j9-g8qx changed 2024-08-21 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-0450 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2022-30781 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GITEA-2022-30781 changed 2026-09-08 | Apache-2.0 |