CVE-2021-32546
mediumPriorität · verfolgen · 36EPSS 0.022 · 82. PerzentilEUUSEPSS · bewertet 2026-10-23
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
Technischer Schweregrad, 0–10. Eine Zeile je Quelle.
Basiswert 0–10 · höher = schwerwiegender · Vektor überfahren zum Auflösen⚠ Quellen uneinig · medium–high · 6.5–8.8
schwächen
Die CWE-Schwächeklassen, zu denen dies gehört.
betroffene Produkte (3)
Betroffene Produkte und Versionsbereiche.
Advisories (2)
Hersteller- und Ökosystem-Meldungen dazu.
- GHSA-56j7-2pm8-rgmxOS Command Injection in gogs2022-06-02ghsa · osvUS
### Impact The malicious user is able to update a crafted `config` file into repository's `.git` directory with to gain SSH access to the server. All installations with [repository upload enabled (default)](https://github.com/gogs/gogs/blob/f36eeedbf89328ee70cc3a2e239f6314f9021f58/conf/app.ini#L127-L129) are affected. ### Patches Repository file updates are prohibited to its `.git` directory. Users should upgrade to 0.12.8 or the latest 0.13.0+dev. ### Workarounds N/A ### References N/A ### For more information If you have any questions or comments about this advisory, please post on #6555.
- GO-2022-0471OS Command Injection in gogs in gogs.io/gogs2024-08-21vendor · osvUS
OS Command Injection in gogs in gogs.io/gogs
auch bekannt als (5)
Weitere Namen und Kennungen dieser Entität.
quellen
Welche Quellen diesen Datensatz belegen und wann.
Referenzen (7)
Externe Belege — Patches, Meldungen, Analysen.
- https://cxsecurity.com/cveshow/CVE-2021-32546/cnnvd
- https://github.com/gogs/gogs/releasescnnvd
- https://github.com/gogs/gogs/security/advisories/GHSA-56j7-2pm8-rgmxcnnvd
- https://github.com/gogs/gogs/releasesenisa_euvd
- https://github.com/gogs/gogs/security/advisories/GHSA-56j7-2pm8-rgmxenisa_euvd
- https://github.com/gogs/gogs/releasesRelease NotesThird Party Advisorynvd
- https://github.com/gogs/gogs/security/advisories/GHSA-56j7-2pm8-rgmxIssue TrackingThird Party Advisorynvd
Angreifer nutzen Schwachstellen wie diese gegen im Internet exponierte Dienste aus. Sehen Sie mit einem kostenlosen Passiv-Scan, was exponiert ist.
Kostenloser Scan