CVE-2024-39931
JSON

9.9critical

Gogs allows deletion of internal files

Severity
9.9critical CVSS:3.1 by mitre
Exploit likelihood
52.7% (higher than 98% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-2vgj-3pvg-xh4wGHSA-ccqv-43vm-4f3wGO-2024-2970

Description

Gogs through 0.13.0 allows deletion of internal files.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
gogs gogsup to 0.13.0CVE List, NVD
github.com/gogs/gogs (Go)up to 0.13.0, all versionsGitHub Advisory Database, Go Vulnerability Database
gogs.io/gogs (Go)before 0.13.1GitHub Advisory Database

All scores

mitre9.9critical CVSS:3.1CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N
GitHub9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
GitHub9.9critical CVSS:3.1CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N
NVD9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Classification

CWE-552

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Gogs through 0.13.0 allows deletion of internal files.

GitHub Advisory Database

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-ccqv-43vm-4f3w. This link is maintained to preserve external references.

Original Description

Gogs through 0.13.0 allows deletion of internal files.

GitHub Advisory Database
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

Go Vulnerability Database

Gogs allows deletion of internal files in github.com/gogs/gogs

NVD (es)

Gogs hasta 0.13.0 permite la eliminación de archivos internos.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-39931 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-2vgj-3pvg-xh4w changed 2024-12-23CC-BY-4.0
GitHub Advisory DatabaseGHSA-ccqv-43vm-4f3w changed 2024-12-23CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2970 changed 2026-03-03CC-BY-4.0
NVDCVE-2024-39931 changed 2026-06-17Public domain