#VU63998 Input validation error in Gitea


Published: 2022-06-08 | Updated: 2022-11-17

Vulnerability identifier: #VU63998

Vulnerability risk: Medium

CVSSv3.1: 8.2 [CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C]

CVE-ID: CVE-2022-30781

CWE-ID: CWE-20

Exploitation vector: Network

Exploit availability: Yes

Vulnerable software:
Gitea
Web applications / Modules and components for CMS

Vendor: The Gitea Authors

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.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Gitea: 1.16.0 - 1.16.6


External links
http://blog.gitea.io/2022/05/gitea-1.16.7-is-released/
http://github.com/go-gitea/gitea/pull/19487
http://github.com/go-gitea/gitea/pull/19490


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, a fully functional exploit for this vulnerability is available.


Latest bulletins with this vulnerability