Security Digest · Vulnerability record

CVE-2024-39932: Gogs allows argument injection during the previewing of changes

Gogs through 0.13.0 allows argument injection during the previewing of changes.

CVSS 9.9 Critical EPSS 17.3% · p97

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.

  • Not in CISA KEV, but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
  • EPSS 17.3%, percentile 97: FIRST’s model estimates a 17.3% chance of exploitation activity in the next 30 days, higher than 97% 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 argument injection during the previewing of changes.

From the GitHub advisory

Impact

Unprivileged user accounts can write to arbitrary files on the filesystem. We could demonstrate its exploitation to force a re-installation of the instance, granting administrator rights. It allows accessing and altering any user's code hosted on the same instance.

Patches

Unintended Git options has been ignored for diff preview (https://github.com/gogs/gogs/pull/7871). Users should upgrade to 0.13.1 or the latest 0.14.0+dev.

Workarounds

Weakness type: CWE-94.

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 poc, automatable no, technical impact total.
  • FIRST EPSS (model of 2026-10-21): 17.32% probability of exploitation activity in the next 30 days; percentile 97.

Timeline

  • — CVE record published by mitre
  • — CVE record last updated
  • — GitHub-reviewed advisory GHSA-9pp6-wq8c-3w2c 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-9pp6-wq8c-3w2c github.com
  2. CVE.org record CVE-2024-39932 cve.org
  3. NVD entry CVE-2024-39932 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