CVE-2024-39931
CRITICAL9.9EPSS 7.2%Gogs allows deletion of internal files
發布日:2024/7/4修改日:2024/12/23
描述
### Impact Unprivileged user accounts can execute arbitrary commands on the Gogs instance with the privileges of the account specified by `RUN_USER` in the configuration. It allows attackers to access and alter any users' code hosted on the same instance. ### Patches Deletion of `.git` files has been prohibited (https://github.com/gogs/gogs/pull/7870). 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-39931
受影響套件(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 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| 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/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
參考連結(6)
- ADVISORYhttps://github.com/advisories/GHSA-2vgj-3pvg-xh4w
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-39931
- PATCHhttps://github.com/gogs/gogs
- WEBhttps://github.com/gogs/gogs/releases
- WEBhttps://github.com/gogs/gogs/security/advisories/GHSA-ccqv-43vm-4f3w
- WEBhttps://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1