CVE-2022-1986
published 2022-06-09CVE-2022-1986: OS Command Injection in GitHub repository gogs/gogs prior to 0.12.9.
PriorityP261critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
4.48%
90.3th percentile
OS Command Injection in GitHub repository gogs/gogs prior to 0.12.9.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| gogs.io | gogs | >= 0 < 0.12.9 | 0.12.9 |
| gogs | gogs | < 0.12.9 | 0.12.9 |
| gogs | gogs_gogs | >= unspecified < 0.12.9 | 0.12.9 |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv3.010.0CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
OS Command Injection in file editor in Gogs in gogs.io/gogs
osv·2024-08-21
CVE-2022-1986 OS Command Injection in file editor in Gogs in gogs.io/gogs
OS Command Injection in file editor in Gogs in gogs.io/gogs
OS Command Injection in file editor in Gogs in gogs.io/gogs
GHSA
OS Command Injection in file editor in Gogs
ghsa·2022-06-08
CVE-2022-1986 [CRITICAL] CWE-78 OS Command Injection in file editor in Gogs
OS Command Injection in file editor in Gogs
### 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.
OSV
OS Command Injection in file editor in Gogs
osv·2022-06-08
CVE-2022-1986 [CRITICAL] OS Command Injection in file editor in Gogs
OS Command Injection in file editor in Gogs
### 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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2022-06-09
Published