Remote command execution in Gitea



Published: 2022-06-08 | Updated: 2022-11-17
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2022-30781
CWE-ID CWE-20
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Subscribe
Gitea
Web applications / Modules and components for CMS

Vendor The Gitea Authors

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Input validation error

EUVDB-ID: #VU63998

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 - Improper input validation

Exploit availability: Yes

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.



###SIDEBAR###