CVE-2024-54148
Gogs has a Path Traversal in file editing UI
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 · gogsWant to know if your infrastructure is exposed to this?
Talk to TrueHacking →