GHSA-2vgj-3pvg-xh4w: Duplicate Advisory Gogs Allows Deletion Of Internal Vulnerability

CRITICAL
CVSS 9.9
CWE-552
Published
Advisory Summary

GHSA-2vgj-3pvg-xh4w is a CRITICAL (CVSS 9.9) gogs allows deletion of internal vulnerability (CWE-552: Files or Directories Accessible to External Parties) affecting Duplicate Advisory libraries in the Go ecosystem. The issue involves gogs allows deletion of internal files. Remediation is available in the latest vendor maintenance releases.

GHSA-2vgj-3pvg-xh4w at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-2vgj-3pvg-xh4w
Severity CRITICAL
CVSS v3.1 Base Score 9.9
CWE Classification CWE-552: Files or Directories Accessible to External Parties
Affected Product Duplicate Advisory
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-2vgj-3pvg-xh4w

To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/gogs/gogs fixed: Latest secure release
Upgrade github.com/gogs/gogs to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/gogs/gogs

How to Check if You Are Affected

To determine whether your application is affected by GHSA-2vgj-3pvg-xh4w, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for github.com/gogs/gogs

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-552: Files or Directories Accessible to External Parties, where the product makes files or directories accessible to unauthorized actors, even though they should not be. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

# Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-ccqv-43vm-4f3w. This link is maintained to preserve external references. # Original Description Gogs through 0.13.0 allows deletion of internal files.

GHSA-2vgj-3pvg-xh4w Affected Duplicate Advisory Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/gogs/gogs
Go
≤ 0.13.0

References

Frequently Asked Questions

What is GHSA-2vgj-3pvg-xh4w?
GHSA-2vgj-3pvg-xh4w is a security vulnerability in Duplicate Advisory involving Gogs allows deletion of internal files under CWE-552: Files or Directories Accessible to External Parties.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/gogs/gogs.
What version fixes GHSA-2vgj-3pvg-xh4w?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/gogs/gogs affected?
Yes, github.com/gogs/gogs is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of GHSA-2vgj-3pvg-xh4w?
GHSA-2vgj-3pvg-xh4w has a CVSS v3.1 base score of 9.9 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with GHSA-2vgj-3pvg-xh4w?
GHSA-2vgj-3pvg-xh4w is classified under CWE-552: Files or Directories Accessible to External Parties (The product makes files or directories accessible to unauthorized actors, even though they should not be.).
How can I check Go dependencies for GHSA-2vgj-3pvg-xh4w?
Run the dependency tree command: 'inspect dependencies for github.com/gogs/gogs'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2vgj-3pvg-xh4w",
  "modified" : "2024-12-23T20:37:05Z",
  "published" : "2024-07-04T18:31:10Z",
  "withdrawn" : "2024-12-23T20:37:05Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: Gogs allows deletion of internal files",
  "details" : "# Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-ccqv-43vm-4f3w. This link is maintained to preserve external references.\n\n# Original Description\nGogs through 0.13.0 allows deletion of internal files. ",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/gogs/gogs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.13.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-39931"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gogs/gogs"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gogs/gogs/releases"
  }, {
    "type" : "WEB",
    "url" : "https://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-552" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-05T20:04:44Z",
    "nvd_published_at" : "2024-07-04T16:15:02Z"
  }
}