CVE-2022-1986
highpriority · track · 41EPSS 0.045 · 91 %ileEUUSEPSS · scored 2026-10-23
OS Command Injection in GitHub repository gogs/gogs prior to 0.12.9.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–10
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-67mx-jc2f-jgjmOS Command Injection in file editor in Gogs2022-06-08ghsa · osvUS
### Impact The malicious user is able to update a crafted `config` file into repository's `.git` directory in combination with crafted file deletion 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 File deletions are prohibited to repository's `.git` directory. Users should upgrade to 0.12.9 or the latest 0.13.0+dev. ### Workarounds N/A ### References https://huntr.dev/bounties/776e8f29-ff5e-4501-bb9f-0bd335007930/ ### For more information If you have any questions or comments about this advisory, please post on #7000.
- GO-2022-0556OS Command Injection in file editor in Gogs in gogs.io/gogs2024-08-21vendor · osvUS
OS Command Injection in file editor in Gogs in gogs.io/gogs
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2022-1986/cnnvd
- https://github.com/gogs/gogsPatchcnnvd
- https://github.com/gogs/gogs/commit/38aff73251cc46ced96dd608dab6190415032a82cnnvd
- https://huntr.dev/bounties/776e8f29-ff5e-4501-bb9f-0bd335007930cnnvd
- https://github.com/gogs/gogs/commit/38aff73251cc46ced96dd608dab6190415032a82enisa_euvd
- https://huntr.dev/bounties/776e8f29-ff5e-4501-bb9f-0bd335007930enisa_euvd
- https://github.com/gogs/gogs/commit/38aff73251cc46ced96dd608dab6190415032a82PatchThird Party Advisorynvd
- https://huntr.dev/bounties/776e8f29-ff5e-4501-bb9f-0bd335007930ExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan