CVE-2022-1986 json
OS Command Injection in gogs/gogs
published 2022-06-08 4 y ago modified 2026-06-17 4 mo ago also GHSA-67mx-jc2f-jgjm , GO-2022-0556 , EUVD-2022-5955
- cvss
- 10.0
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.2%
- EPSS 4.2% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
Summary
OS Command Injection in GitHub repository gogs/gogs prior to 0.12.9.
Patch / fix
Exploit prediction
4.22% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.dev https://huntr.dev/bounties/776e8f29-ff5e-4501-bb9f-0bd335007930 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 10.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | gogs.io/gogs | <0.12.9 |
0.12.9 |
Affected products
- gogs gogs/gogs
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
github.com
/gogs/gogs/commit/38aff73251cc46ced96dd608dab6190415032a82
web, patch, third-party-advisory
-
huntr.dev
/bounties/776e8f29-ff5e-4501-bb9f-0bd335007930
web, exploit, third-party-advisory
-
github.com
/gogs/gogs/security/advisories/GHSA-67mx-jc2f-jgjm
web, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-1986
advisory
-
github.com
/gogs/gogs
package
-
github.com
/gogs/gogs/blob/f36eeedbf89328ee70cc3a2e239f6314f9021f58/conf/app.ini#L127-L129
web
Sources
- CVE List CVE-2022-1986
- GitHub Advisory GHSA-67mx-jc2f-jgjm
- NVD CVE-2022-1986
- OSV GO-2022-0556
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.