{"id":"CVE-2024-54148","published":"2024-12-23T15:22:48Z","modified":"2024-12-24T01:52:58Z","title":"Gogs has a Path Traversal in file editing UI","vendor":"gogs","product":"gogs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00855,"percentile":0.59244,"provenance":"source"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-r7j8-5h9c-f6fx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gogs/gogs/issues/7582","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/pull/7857","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/commit/c94baec9ca923f38c19f0c7c5af722b9ec04022a","tags":["x_refsource_MISC"]}],"priority":{"score":17.9,"factors":[{"name":"EPSS percentile","points":11.85},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"gogs","affectedVersions":[{"vendor":"gogs","product":"gogs","versions":["< 0.13.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-12-24T01:52:15.112862Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":["<0.13.1"],"patched":["0.13.1"],"from":["GHSA-r7j8-5h9c-f6fx","GO-2024-3355"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal weakness in the file editing interface of Gogs, an open source self-hosted Git service, where symlink handling lets a crafted symlink escape the repository directory. An attacker with low-privileged authenticated access, able to commit to a repository over the network and without any required user interaction, can use a malicious symlink to reach files outside the repository and gain SSH access to the server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:13Z"},"euvd":{"id":"EUVD-2024-3610","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gogs-cve-2022-1992","children":[{"from":"CVE-2024-54148","to":"CVE-2024-55947","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["internal/route/repo/editor.go"],"commits":["https://github.com/gogs/gogs/commit/c94baec9ca923f38c19f0c7c5af722b9ec04022a","https://github.com/gogs/gogs/commit/9a9388ace25bd646f5098cb9193d983332c34e41"],"basis":"shared function","functions":["editFilePost"]},{"kind":"similar","provenance":"machine","score":0.64,"basis":"same product + CWE + description similarity"}]}]}}