CVE-2024-39931
Published: 04 July 2024
Summary
CVE-2024-39931 is a critical-severity Files or Directories Accessible to External Parties (CWE-552) vulnerability in Gogs Gogs. Its CVSS base score is 9.9 (Critical).
Operationally, exploitation aligns with the MITRE ATT&CK technique Unix Shell (T1059.004); ranked in the top 8.2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
CVE-2024-39931 is a vulnerability in Gogs through version 0.13.0 that allows deletion of internal files. It carries a CVSS 3.1 score of 9.9 and is associated with CWE-552, indicating exposure of files or directories to external parties.
An authenticated attacker can exploit the flaw remotely with low attack complexity and no user interaction required. Successful exploitation permits modification of internal resources with high impact to confidentiality, integrity, and availability, and the attack crosses a security boundary due to changed scope.
Public references include Gogs release pages and a SonarSource technical analysis of unpatched issues in the project, directing administrators to review available updates for remediation steps. The associated EPSS score has remained in a moderate range with a recorded peak of 0.0951.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-3577
Vulnerability details
Gogs through 0.13.0 allows deletion of internal files.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Authenticated vulnerability enables arbitrary command execution (Unix Shell), local data collection (source code), file deletion, and data destruction (wipe repositories).
MITRE ATLAS TechniquesAI
MITRE ATLAS techniques
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Controls on authorized publication limit files and directories with nonpublic data from becoming accessible to external parties.
Controlling and documenting P2P file sharing prevents files and directories from being made accessible to external parties for unauthorized distribution.
Identifying and documenting file and directory locations allows restriction of access to external parties.
Protecting backup files ensures they are not accessible to external parties or unauthorized spheres.
Sanitizing equipment before off-site maintenance reduces the risk of files or directories containing sensitive data becoming accessible to external parties.
Policy restricts media access to authorized parties only, preventing exposure of resources to external or unauthorized actors.
Media access restrictions prevent files or directories from being accessible to external parties.
Employing and evaluating controls at documented alternate sites makes files and directories less likely to be accessible to external parties through physical or environmental weaknesses.