CVE-2022-1986
CRITICAL 9.8CVSS 3.1OS Command Injection in file editor in Gogs
OS Command Injection in GitHub repository gogs/gogs prior to 0.12.9.
- Published
- 9 Jun 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- GHSA-67mx-jc2f-jgjmGO-2022-0556
- Sources
- NVDJSONOSV GHSA-67mx-jc2f-jgjmJSONOSV GO-2022-0556JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | CRITICAL 10.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gogs | gogscpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:* |
< 0.12.9 | 0.12.9 |
| OSV | Go | gogs.io/gogs | < 0.12.9 | 0.12.9 |
References
- https://github.com/gogs/gogs/commit/38aff73251cc46ced96dd608dab6190415032a82 · Patch, Third Party Advisory, WEB
- https://huntr.dev/bounties/776e8f29-ff5e-4501-bb9f-0bd335007930 · Exploit, Third Party Advisory, WEB
- https://github.com/gogs/gogs/security/advisories/GHSA-67mx-jc2f-jgjm · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-1986 · ADVISORY
- https://github.com/gogs/gogs · PACKAGE
- https://github.com/gogs/gogs/blob/f36eeedbf89328ee70cc3a2e239f6314f9021f58/conf/app.ini#L127-L129 · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 9 Jun 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 8 Jun 2022)