CVE-2022-2024 — Vulnerability in gogs.io/gogs — CVE Details
Gogs OS Command Injection vulnerability
Summary
Advisory Timeline
- First published February 28, 2023 (1322 days ago).
- Last revised August 20, 2024 — 539 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get gogs.io/gogs@v0.12.11
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: go (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| gogs.io/gogs | go | All versions | 0.12.11 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-78OS Command InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/gogs/gogs/security/advisories/GHSA-pfvh-p8qp-9ww9WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-2024ADVISORY
- https://github.com/gogs/gogs/issues/7030WEB
- https://github.com/gogs/gogs/commit/15d0d6a94be0098a8227b6b95bdf2daed105ec41WEB
- https://github.com/gogs/gogsPACKAGE
- https://github.com/gogs/gogs/blob/f36eeedbf89328ee70cc3a2e239f6314f9021f58/conf/app.ini#L127-L129WEB
- https://huntr.dev/bounties/18cf9256-23ab-4098-a769-85f8da130f97WEB
Frequently Asked Questions
- What is CVE-2022-2024?
- Gogs OS Command Injection vulnerability This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2022-2024?
- CVE-2022-2024 affects gogs.io/gogs. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-2024 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2022-1986CRITICAL
OS Command Injection in file editor in Gogs
- CVE-2026-52811CRITICAL
Gogs: UploadRepoFiles writes outside repo working tree via committed parent sym
- CVE-2024-39932CRITICAL
Gogs allows argument injection during the previewing of changes
- CVE-2026-52813CRITICAL
Gogs has Path Traversal in organization name that results in RCE through Git hooks
- CVE-2024-39930CRITICAL
Gogs has an argument Injection in the built-in SSH server
- CVE-2024-56731CRITICAL
Gogs allows deletion of internal files which leads to remote command execution
- CVE-2026-26022HIGH
Gogs: Stored XSS via data URI in issue comments
- CVE-2026-52816MEDIUM
Gogs's Unauthenticated Jupyter Notebook (ipynb) Sanitizer allows arbitrary data: URIs leading to XSS
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies