CVE-2024-39932
CRITICAL9.9EPSS 3.2%Gogs allows argument injection during the previewing of changes
Published: 12/23/2024Modified: 12/23/2024
Description
### 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 https://www.cve.org/CVERecord?id=CVE-2024-39932
Affected packages (3)
- Go/github.com/gogs/gogsfrom 0, <= 0.13.0
- Go/github.com/gogs/gogsfrom 0
- Go/gogs.io/gogsfrom 0, < 0.13.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | 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 |
| osv | CVSS 3.1 | CRITICAL9.9 | CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N |
References (6)
- ADVISORYhttps://github.com/advisories/GHSA-hf29-9hfh-w63j
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-39932
- PATCHhttps://github.com/gogs/gogs
- WEBhttps://github.com/gogs/gogs/releases
- WEBhttps://github.com/gogs/gogs/security/advisories/GHSA-9pp6-wq8c-3w2c
- WEBhttps://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1