Skip to main content
VulnerabilityPublished Updated

CVE-2024-39931: gogs · Exposed Files or Directories

Affects gogsSource CVE Database V5

0

Not known to be exploited · 52% EPSS · CVSS 9.9 Critical : upgrade to 0.13.1 as a priority.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 3.1 base score
9.9Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
52.6% chance of exploitation in 30 days – higher than 98% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.13.1
CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Jul 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade gogs/gogs to 0.13.1.

Affected software

ProductAffectedFixed in
GitHubgogs/gogspkg:github/gogs/gogsOther threatsAffected
  • <0.13.1
Fixed in
  • 0.13.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2024-39931, organizations should first restrict access to Gogs instances by enforcing strict network segmentation and limiting user privileges to the minimum necessary. Implement role-based access control (RBAC) to ensure users cannot perform unauthorized file deletions. Monitor file system integrity using tools like Tripwire or OSSEC to detect unauthorized changes promptly. Regularly back up Gogs repositories and configuration files to enable rapid recovery in case of deletion. Keep abreast of updates from the Gogs development team and apply patches immediately once released. Conduct security audits and penetration testing focused on file access controls within Gogs environments. Additionally, implement comprehensive logging and alerting to detect suspicious activities related to file operations.

Description

Gogs through 0.13.0 allows deletion of internal files.

References

Community reviews

Loading reviews…