7.5
HIGH
CVE-2022-30781
Gitea Git Remote Command Injection Vulnerability
Description

Gitea before 1.16.7 does not escape git fetch remote.

INFO

Published Date :

May 16, 2022, 4:15 a.m.

Last Modified :

Jan. 27, 2023, 7:57 p.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2022-30781 has a 11 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2022-30781 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Gitea gitea
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2022-30781.

URL Resource
http://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.html Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.html Exploit Third Party Advisory VDB Entry
https://blog.gitea.io/2022/05/gitea-1.16.7-is-released/ Release Notes Vendor Advisory
https://github.com/go-gitea/gitea/pull/19487 Patch Third Party Advisory
https://github.com/go-gitea/gitea/pull/19490 Patch Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

All CVE - PoC in GitHub

poc proofofconcept tester allcve cvegithub cvenew cvepoc cveupdate

Updated: 1 month ago
5 stars 2 fork 2 watcher
Born at : March 22, 2024, 3:58 p.m. This repo has been linked 928 different CVEs too.

None

Updated: 6 months, 2 weeks ago
1 stars 0 fork 0 watcher
Born at : March 11, 2024, 1:21 p.m. This repo has been linked 930 different CVEs too.

None

Updated: 1 year, 6 months ago
0 stars 2 fork 2 watcher
Born at : April 8, 2023, 6:19 a.m. This repo has been linked 923 different CVEs too.

None

Updated: 7 months, 2 weeks ago
20 stars 3 fork 3 watcher
Born at : Feb. 14, 2023, 6:10 p.m. This repo has been linked 921 different CVEs too.

None

Updated: 7 months, 1 week ago
2 stars 2 fork 2 watcher
Born at : Nov. 25, 2022, 5:43 p.m. This repo has been linked 930 different CVEs too.

None

Updated: 3 weeks, 3 days ago
17 stars 5 fork 5 watcher
Born at : July 28, 2022, 3:22 a.m. This repo has been linked 149 different CVEs too.

None

HTML

Updated: 2 years, 4 months ago
0 stars 0 fork 0 watcher
Born at : May 30, 2022, 2:43 p.m. This repo has been linked 1 different CVEs too.

🍵 Gitea repository migration remote command execution exploit.

gitea cve-2022-30781 cve exploit

HTML

Updated: 1 month, 2 weeks ago
85 stars 16 fork 16 watcher
Born at : May 22, 2022, 5:15 a.m. This repo has been linked 1 different CVEs too.

收录go语言编写的项目、框架和组件出现的cve,或者一些相关的利用方式的文章

cve go security bugbounty exploit poc

Updated: 1 month, 3 weeks ago
35 stars 2 fork 2 watcher
Born at : May 4, 2022, 11:32 a.m. This repo has been linked 30 different CVEs too.

POC集合,框架nday漏洞利用

Updated: 3 weeks, 5 days ago
373 stars 49 fork 49 watcher
Born at : April 4, 2022, 5:54 a.m. This repo has been linked 105 different CVEs too.

🍆 My GitHub Profile

Go

Updated: 3 weeks, 1 day ago
4 stars 6 fork 6 watcher
Born at : July 10, 2020, 10:24 a.m. This repo has been linked 6 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-30781 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-30781 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Jan. 27, 2023

    Action Type Old Value New Value
    Changed Reference Type http://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.html No Types Assigned http://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.html Exploit, Third Party Advisory, VDB Entry
  • CVE Modified by [email protected]

    Nov. 17, 2022

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.html [No Types Assigned]
  • Modified Analysis by [email protected]

    Oct. 27, 2022

    Action Type Old Value New Value
    Changed Reference Type http://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.html No Types Assigned http://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.html Exploit, Third Party Advisory, VDB Entry
  • CVE Modified by [email protected]

    Sep. 15, 2022

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.html [No Types Assigned]
  • Initial Analysis by [email protected]

    May. 24, 2022

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:N/AC:L/Au:N/C:N/I:P/A:N)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
    Changed Reference Type https://blog.gitea.io/2022/05/gitea-1.16.7-is-released/ No Types Assigned https://blog.gitea.io/2022/05/gitea-1.16.7-is-released/ Release Notes, Vendor Advisory
    Changed Reference Type https://github.com/go-gitea/gitea/pull/19487 No Types Assigned https://github.com/go-gitea/gitea/pull/19487 Patch, Third Party Advisory
    Changed Reference Type https://github.com/go-gitea/gitea/pull/19490 No Types Assigned https://github.com/go-gitea/gitea/pull/19490 Patch, Third Party Advisory
    Added CWE NIST CWE-116
    Added CPE Configuration OR *cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:* versions up to (excluding) 1.16.7
  • CVE Modified by [email protected]

    May. 16, 2022

    Action Type Old Value New Value
    Changed Description Gitea before 1.6.7 does not escape git fetch remote. Gitea before 1.16.7 does not escape git fetch remote.
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-30781 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-30781 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

81.18 }} -0.79%

score

0.98401

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability