Cyber Resilience

CVE-2024-39931

Critical

Published: 04 July 2024

Published
04 July 2024
Modified
10 April 2025
KEV Added
Patch
CVSS Score v3.1 9.9 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS Score 0.0723 91.8th percentile
Risk Priority 24 60% EPSS · 20% KEV · 20% CVSS

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

Vulnerability details

Gogs through 0.13.0 allows deletion of internal files.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise TechniquesAI

T1059.004 Unix Shell Execution
Adversaries may abuse Unix shell commands and scripts for execution.
T1005 Data from Local System Collection
Adversaries may search local system sources, such as file systems, configuration files, local databases, virtual machine files, or process memory, to find files of interest and sensitive data prior to Exfiltration.
T1070.004 File Deletion Stealth
Adversaries may delete files left behind by the actions of their intrusion activity.
T1485 Data Destruction Impact
Adversaries may destroy data and files on specific systems or in large numbers on a network to interrupt availability to systems, services, and network resources.
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

AML.T0010.000: HardwareAML.T0016.000: Adversarial AI Attack ImplementationsAML.T0024.000: Infer Training Data MembershipAML.T0048.000: Financial Harm

Affected Assets

gogs
gogs
≤ 0.13.0

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.

addresses: CWE-552

Controls on authorized publication limit files and directories with nonpublic data from becoming accessible to external parties.

addresses: CWE-552

Controlling and documenting P2P file sharing prevents files and directories from being made accessible to external parties for unauthorized distribution.

addresses: CWE-552

Identifying and documenting file and directory locations allows restriction of access to external parties.

addresses: CWE-552

Protecting backup files ensures they are not accessible to external parties or unauthorized spheres.

addresses: CWE-552

Sanitizing equipment before off-site maintenance reduces the risk of files or directories containing sensitive data becoming accessible to external parties.

addresses: CWE-552

Policy restricts media access to authorized parties only, preventing exposure of resources to external or unauthorized actors.

addresses: CWE-552

Media access restrictions prevent files or directories from being accessible to external parties.

addresses: CWE-552

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.

References