9.9critical
Gogs allows argument injection during the previewing of changes
- Severity
- 9.9critical CVSS:3.1 by mitre
- Exploit likelihood
- 16.2% (higher than 97% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-9pp6-wq8c-3w2cGHSA-hf29-9hfh-w63jGO-2024-2971
Description
Gogs through 0.13.0 allows argument injection during the previewing of changes.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| gogs gogs | 0.13.0, up to 0.13.0 | CVE List, NVD |
| gogs.io/gogs (Go) | before 0.13.1 | GitHub Advisory Database |
| github.com/gogs/gogs (Go) | up to 0.13.0, all versions | GitHub Advisory Database, Go Vulnerability Database |
All scores
| mitre | 9.9critical CVSS:3.1 | CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N |
| GitHub | 9.9critical CVSS:3.1 | CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N |
| GitHub | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
| NVD | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
Gogs through 0.13.0 allows argument injection during the previewing of changes.
GitHub Advisory Database
Impact
Unprivileged user accounts can write to arbitrary files on the filesystem. We could demonstrate its exploitation to force a re-installation of the instance, granting administrator rights. It allows accessing and altering any user's code hosted on the same instance.
Patches
Unintended Git options has been ignored for diff preview (https://github.com/gogs/gogs/pull/7871). Users should upgrade to 0.13.1 or the latest 0.14.0+dev.
Workarounds
No viable workaround available, please only grant access to trusted users to your Gogs instance on affected versions.
References
GitHub Advisory Database
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-9pp6-wq8c-3w2c. This link is maintained to preserve external references.
Original Description
Gogs through 0.13.0 allows argument injection during the previewing of changes.
Go Vulnerability Database
Gogs allows argument injection during the previewing of changes in github.com/gogs/gogs
NVD (es)
Gogs hasta 0.13.0 permite la inyección de argumentos durante la vista previa de los cambios.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-39932 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9pp6-wq8c-3w2c changed 2024-12-23 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-hf29-9hfh-w63j changed 2024-12-23 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2971 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2024-39932 changed 2026-06-17 | Public domain |