Skip to content
Fencer Vulns
high 7.5

CVE-2022-30781 in the critical feed json

Shell command injection in gitea

published 2022-05-16 4 y ago modified 2026-09-08 2 mo ago also BIT-gitea-2022-30781 , EUVD-2022-4684 , GHSA-p5f9-c9j9-g8qx , GO-2022-0450

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
87.9%
EPSS 87.9% chance of exploitation in 30 days, percentile 99.7%
public exploits
2
Metasploit, Exploit-DB

Summary

Gitea before 1.16.7 does not escape git fetch remote.

Patch / fix

  • go code.gitea.io/gitea 1.16.7
  • bitnami gitea 1.16.7
  • gitea gitea 1.16.7
  • gitea Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 1.16.7-r0

alpine advisories ALPINE-CVE-2022-30781

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Timeline

  1. Published
  2. First public exploit (Metasploit exploit/multi/http/gitea_git_fetch_rce)

Exploit prediction

87.93% chance of exploitation in the next 30 days, higher than 99.7% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

CVSS scores

assigned by version score vector
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:P/A:N
OSV 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected packages

ecosystem package affected fixed in
go code.gitea.io/gitea
<1.16.7
1.16.7
bitnami gitea
<1.16.7
1.16.7

Classification

Weakness
  • CWE-116 Improper Encoding or Escaping of Output

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.