Input validation error in Gitea - CVE-2022-30781

 

Input validation error in Gitea - CVE-2022-30781

Published: June 6, 2022 / Updated: November 17, 2022


Vulnerability identifier: #VU63998
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A/U:Green
CVE-ID: CVE-2022-30781
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: The Gitea Authors
Affected software:
Gitea

Detailed vulnerability description

The vulnerability allows a remote user to compromise the affected system.

The vulnerability exists due to insufficient validation of user-supplied input when processing git fetch remote command. A remote user can migrate a specially crafted repository to the affected Gitea instance and execute arbitrary code on the system.


How to mitigate CVE-2022-30781

Install updates from vendor's website.

Sources