Skip to content
Vulnerability Intelligence

CVE-2022-30781

HighPublic exploit

Shell command injection in gitea

Published May 17, 2022 · Updated Sep 8, 2026 · Also known as BIT-gitea-2022-30781, 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, code.gitea.io/gitea (go).
  • It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
  • EPSS estimates a 88% 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.

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)

88%

Higher than 99.7% of all scored CVEs

Exploited in the wild

No known

Not in a known-exploited catalog

Public exploit code

Available

Proof-of-concept or weaponized module

Get the full CVE-2022-30781 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

Description

Gitea before 1.16.7 does not escape git fetch remote.

Affected Products

18 affected entries in total
ProductAffected versionsFixed in
GiteaGiteaSee advisory1.16.7
code.gitea.io/giteagoSee advisory1.16.7

Patched Releases

code.gitea.io/gitea

1.16.7

Gitea

1.16.7, 1.16.7-r0

Timeline

  1. Publicly disclosed

    May 17, 2022

  2. Last updated

    Sep 8, 2026

Weakness Type

  • CWE-116 Improper Encoding or Escaping of Output

References

7 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2022-30781 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo