Skip to content
Emerging threatsHigh

CVE-2022-30781Gitea Vulnerability

Shell command injection in gitea

Published May 16, 2022 · Updated Nov 3, 2026 · Also known as ALPINE-CVE-2022-30781, BIT-gitea-2022-30781, CLEANSTART-2025-ET02089, CLEANSTART-2025-TF34768, GHSA-p5f9-c9j9-g8qx, GO-2022-0450

Key Facts

Patch immediately
  • CVE-2022-30781 is a high-severity vulnerability (CVSS 7.5 v3.1) affecting Gitea, gitea-fips (cleanstart), code.gitea.io/gitea (go).
  • It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
  • EPSS estimates a 59% probability of exploitation in the next 30 days.
  • Fixed versions are available, including code.gitea.io/gitea 1.16.7, Gitea 1.16.7, Gitea 1.16.7-r0.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

Scores

CVSS v3.1

7.5

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

EPSS (30-day exploit likelihood)

59%

Higher than 99.3% of all scored CVEs

Exploit maturity

Weaponized

ATLAS score

64/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Weaponized

Public exploit code

2

Proof-of-concept links

In-the-wild evidence

0

Reports of active use

Description

Gitea before 1.16.7 does not escape git fetch remote.

Affected Products

21 affected entries in total
ProductAffected versionsFixed in
GiteaGiteaSee advisory1.16.7
gitea-fipscleanstartSee advisory1.16.7-r0
code.gitea.io/giteagoSee advisory1.16.7

Patched Releases

code.gitea.io/gitea

1.16.7

Gitea

1.16.7, 1.16.7-r0

gitea-fips

1.16.7-r0

Timeline

  1. Publicly disclosed

    May 16, 2022

  2. Last updated

    Nov 3, 2026

Weakness Type

  • CWE-116 Improper Encoding or Escaping of Output

References

9 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2022-30781 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Dec 1, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.