{"id":"EUVD-2022-5932","revision":"7a2ec0ad4f1b4e6ab4270b375a7c8f80","records":[{"revision":"7a2ec0ad4f1b4e6ab4270b375a7c8f80","observedAt":"2026-11-22T02:46:20.435+00:00","statement":{"source":"euvd","id":"EUVD-2022-5932","aliases":["CVE-2021-32546","GHSA-56j7-2pm8-rgmx"],"title":"Missing input validation in internal/db/repo_editor.go in Gogs before 0.12.8 allows an attacker to execute code remotely. An unprivileged attacker (registered user) can overwrite the Git configuration in his repository. This leads to Remote…","description":"Missing input validation in internal/db/repo_editor.go in Gogs before 0.12.8 allows an attacker to execute code remotely. An unprivileged attacker (registered user) can overwrite the Git configuration in his repository. This leads to Remote Command Execution, because that configuration can contain an option such as sshCommand, which is executed when a master branch is a remote branch (using an ssh:// URI). The remote branch can also be configured by editing the Git configuration file. One can create a new file in a new repository, using the GUI, with \"\\\" as its name, and then rename this file to .git/config with the custom configuration content (and then save it).","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[],"references":["https://github.com/gogs/gogs/releases","https://github.com/gogs/gogs/security/advisories/GHSA-56j7-2pm8-rgmx"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-5932","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"May 31, 2022, 9:21:18 PM","dateUpdated":"Aug 3, 2024, 11:25:30 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2022-5932","identifiers":["EUVD-2022-5932","CVE-2021-32546","GHSA-56j7-2pm8-rgmx"]},"retained":false,"historicalAffected":[]}],"coverage":[]}