CVE-2024-54148highCWE-22CWE-61

CVE-2024-54148: high-severity vulnerability in gogs

Gogs has a Path Traversal in file editing UI

Published · Updated

E-mail alert when it lands in KEV, gets a public PoC or its score goes up.

21Vexday Risk Score

No sign of exploitation. No public exploitation artifact known so far.

ssvc Trackcvss 8.7epss 0.9%
In short

Gogs allows attackers to exploit symlink files in repositories to gain unauthorized SSH access to the server. By committing and editing specially crafted symlink files, a malicious user can bypass access controls and compromise the system.

Technical detail

This path traversal vulnerability (CWE-22, CWE-61) in Gogs' file editing UI permits authenticated users to commit symlink files that traverse directories outside the repository scope. The flaw enables attackers to manipulate SSH access mechanisms, potentially leading to remote code execution or unauthorized system access. Exploitation requires repository write access.

Summary generated and translated by AI from the official description.
Gogs is an open source self-hosted Git service. A malicious user is able to commit and edit a crafted symlink file to a repository to gain SSH access to the server. The vulnerability is fixed in 0.13.1.
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
Affected products
gogs · gogs