Security Digest · Vulnerability record

CVE-2024-39931: Gogs allows deletion of internal files

Gogs through 0.13.0 allows deletion of internal files.

CVSS 9.9 Critical EPSS 52.7% · p99

Should you act?

High exploit likelihood

EPSS ranks it in the top 5% of all CVEs for likely exploitation in the next 30 days. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

  • No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
  • EPSS 52.7%, percentile 99: FIRST’s model estimates a 52.7% chance of exploitation activity in the next 30 days, higher than 99% of all scored CVEs (very high). EPSS is a probability, not a verdict.
  • Needs an account (low (any account)). Exposure depends on who can log in.
  • Only applies if your dependency tree includes gogs.io/gogs (Go) <= 0.13.0, fixed in 0.13.1. Check your lockfile, including transitive dependencies.

What it is

Gogs through 0.13.0 allows deletion of internal files.

From the GitHub advisory

Impact

Unprivileged user accounts can execute arbitrary commands on the Gogs instance with the privileges of the account specified by RUNUSER 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

Weakness type: CWE-552.

Product: gogs.io/gogs (Go) · Assigned by: mitre · Published: 2024-07-04

Affected and fixed versions

EcosystemPackageVulnerableFirst fixed
Gogogs.io/gogs<= 0.13.00.13.1
VendorProductAffected versions (per CVE record)
n/an/asee vendor advisory

Severity scores

Scored byCVSSScoreVector
mitre3.19.9 CriticalCVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N
GitHub3.19.9 CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N
  • Attack complexity: low
  • Attack vector: network (remotely reachable)
  • Privileges required: low (any account)
  • Scope: changed (can affect other components)
  • User interaction: none

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

  • CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
  • CISA SSVC assessment: exploitation none, automatable no, technical impact total.
  • FIRST EPSS (model of 2026-10-21): 52.66% probability of exploitation activity in the next 30 days; percentile 99.

Timeline

  • — CVE record published by mitre
  • — CVE record last updated
  • — GitHub-reviewed advisory GHSA-ccqv-43vm-4f3w published (critical)

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vulnerability records

  1. GitHub Advisory GHSA-ccqv-43vm-4f3w github.com
  2. CVE.org record CVE-2024-39931 cve.org
  3. NVD entry CVE-2024-39931 nvd.nist.gov

Other references from the CVE record and advisory

  1. github.com github.com
  2. sonarsource.com sonarsource.com
  3. github.com github.com

Critical Go advisories · Today’s Security Digest