CVE-2022-2024
CRITICAL
Published 2023-02-25T00:00:00.000Z
Actions:
Expert Analysis
Professional remediation guidance
Get tailored security recommendations from our analyst team for CVE-2022-2024. We'll provide specific mitigation strategies based on your environment and risk profile.
CVSS Score
V3.0
9.8
/10
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Base Score Metrics
Exploitability: N/A
Impact: N/A
EPSS Score
v2025.03.14
0.438
probability
of exploitation in the wild
There is a 43.8% chance that this vulnerability will be exploited in the wild within the next 30 days.
Updated: 2025-06-25
Exploit Probability
Percentile: 0.974
Higher than 97.4% of all CVEs
Attack Vector Metrics
Impact Metrics
Description
OS Command Injection in GitHub repository gogs/gogs prior to 0.12.11.
Available Exploits
No exploits available for this CVE.
Related News
No news articles found for this CVE.
Affected Products
Affected Versions:
GitHub Security Advisories
Community-driven vulnerability intelligence from GitHub
Advisory Details
### 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 on case-insensitive file systems. All installations with [repository upload enabled (default)](https://github.com/gogs/gogs/blob/f36eeedbf89328ee70cc3a2e239f6314f9021f58/conf/app.ini#L127-L129) on case-insensitive file systems (Windows, macOS, etc.) are affected.
### Patches
Make sanitization of upload path to `.git` directory to be case-insensitive. Users should upgrade to 0.12.11 or the latest 0.13.0+dev.
### Workarounds
Disable [repository upload](https://github.com/gogs/gogs/blob/f36eeedbf89328ee70cc3a2e239f6314f9021f58/conf/app.ini#L127-L129).
### References
https://huntr.dev/bounties/18cf9256-23ab-4098-a769-85f8da130f97/
### For more information
If you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/issues/7030.
Affected Packages
Go
gogs.io/gogs
ECOSYSTEM:
≥0
<0.12.11
CVSS Scoring
CVSS Score
9.0
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
Advisory provided by GitHub Security Advisory Database. Published: February 28, 2023, Modified: March 9, 2023
References
Published: 2023-02-25T00:00:00.000Z
Last Modified: 2025-03-11T15:39:29.120Z
Copied to clipboard!