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.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
https://github.com/gogs/gogs/security/advisories/GHSA-r7j8-5h9c-f6fx | vendor advisory exploit |
https://github.com/gogs/gogs/issues/7582 | issue tracking |
https://github.com/gogs/gogs/pull/7857 | patch |
https://github.com/gogs/gogs/commit/c94baec9ca923f38c19f0c7c5af722b9ec04022a | patch |