Vulnerability advisory
CVE-2024-54148
Gogs has a Path Traversal in file editing UI
Also known as GHSA-r7j8-5h9c-f6fxGO-2024-3355
Severity
- CVSS 4.0
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 versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/gogs/gogs ↗ | |
| All commits before 0c40e600a275d490481cfeea53705810fbe94d9b | 0c40e600a275d490481cfeea53705810fbe94d9b |
| Not specified | c94baec9ca923f38c19f0c7c5af722b9ec04022a |
Also listed as affected (55)
| |
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.
References
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2024/54xxx/CVE-2024-54148.json ↗
- Advisorygithub.com/gogs/gogs/security/advisories/GHSA-r7j8-5h9c-f6fx ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-54148 ↗
- Reportgithub.com/gogs/gogs/issues/7582 ↗
- Fixgithub.com/gogs/gogs/commit/c94baec9ca923f38c19f0c7c5af722b9ec04022a ↗
- Fixgithub.com/gogs/gogs/pull/7857 ↗