Path traversal in gogs - CVE-2022-1992

 

Path traversal in gogs - CVE-2022-1992

Published: June 8, 2022 / Updated: April 27, 2026


Vulnerability identifier: #VU128082
CSH Severity: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2022-1992
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
gogs
Software vendor:
gogs.io

Description

The vulnerability allows a remote user to delete and upload arbitrary files.

The vulnerability exists due to path traversal in the file editor when handling repository uploads on Windows. A remote user can supply a crafted pathname to delete and upload arbitrary files.

Only Windows installations with repository upload enabled are vulnerable.


Remediation

Install security update from vendor's website.

External links