CVE-2022-2024
CriticalPublic exploitGogs OS Command Injection vulnerability
Published Feb 28, 2023 · Updated Aug 12, 2026 · Also known as GHSA-pfvh-p8qp-9ww9, GO-2023-1596
Key Facts
Patch immediately- CVE-2022-2024 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Gogs, gogs.io/gogs, gogs/gogs.
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 98% probability of exploitation in the next 30 days.
- Fixed versions are available, including Gogs 0.12.11, gogs.io/gogs 0.12.11, gogs/gogs 0.12.11.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
CVSS v3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
98%
Higher than 99.9% of all scored CVEs
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
Available
Proof-of-concept or weaponized module
Get the full CVE-2022-2024 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
Description
OS Command Injection in GitHub repository gogs/gogs prior to 0.12.11.
Affected Products
11 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GogsGogs | See advisory | 0.12.11 |
| gogs.io/gogsgo | See advisory | 0.12.11 |
| gogs/gogs | >= unspecified | 0.12.11 |
Patched Releases
Gogs
0.12.11
gogs.io/gogs
0.12.11
gogs/gogs
0.12.11
Timeline
Publicly disclosed
Feb 28, 2023
Last updated
Aug 12, 2026
Weakness Type
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
- advisoryGHSA advisory
- advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2024.json
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-2024
- articlehttps://github.com/gogs/gogs/blob/f36eeedbf89328ee70cc3a2e239f6314f9021f58/conf/app.ini#L127-L129
- articlehttps://github.com/gogs/gogs/commit/15d0d6a94be0098a8227b6b95bdf2daed105ec41
FAQ
Common Questions.
OS Command Injection in GitHub repository gogs/gogs prior to 0.12.11.
Affected: Gogs; gogs.io/gogs; gogs/gogs versions >= unspecified. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including Gogs 0.12.11, gogs.io/gogs 0.12.11, gogs/gogs 0.12.11.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2022-2024 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo