{"cve":"CVE-2021-32546","nvd":{"published":"2022-06-02T14:15:28.587","modified":"2026-06-17T03:53:08.963","status":"Modified","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).","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":[],"references":["https://github.com/gogs/gogs/releases","https://github.com/gogs/gogs/security/advisories/GHSA-56j7-2pm8-rgmx","https://github.com/gogs/gogs/releases","https://github.com/gogs/gogs/security/advisories/GHSA-56j7-2pm8-rgmx"],"products":["gogs:gogs"],"source":"nvd","synced_at":"2026-10-19T21:31:59.322382750+00:00"},"epss":{"cve":"CVE-2021-32546","score":0.022,"percentile":0.82517,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-56j7-2pm8-rgmx","url":"https://osv.dev/vulnerability/GHSA-56j7-2pm8-rgmx","summary":"OS Command Injection in gogs","modified":"2026-07-08T06:27:32.376981629Z","packages":[{"ecosystem":"Go","name":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","ranges":["<0.12.8"],"fixed":["0.12.8"]}]},{"id":"GO-2022-0471","url":"https://osv.dev/vulnerability/GO-2022-0471","summary":"OS Command Injection in gogs in gogs.io/gogs","modified":"2026-03-03T04:50:25.941676Z","packages":[{"ecosystem":"Go","name":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","ranges":["<0.12.8"],"fixed":["0.12.8"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}