GHSA-hf29-9hfh-w63j: Duplicate Advisory Gogs Allows Argument Injection During Vulnerability

CRITICAL
CVSS 9.9
CWE-94
Published
Advisory Summary

GHSA-hf29-9hfh-w63j is a CRITICAL (CVSS 9.9) gogs allows argument injection during vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Duplicate Advisory libraries in the Go ecosystem. The issue involves gogs allows argument injection during the previewing of changes. Remediation is available in the latest vendor maintenance releases.

GHSA-hf29-9hfh-w63j at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-hf29-9hfh-w63j
Severity CRITICAL
CVSS v3.1 Base Score 9.9
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
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-hf29-9hfh-w63j

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-hf29-9hfh-w63j, 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. 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-9pp6-wq8c-3w2c. This link is maintained to preserve external references. # Original Description Gogs through 0.13.0 allows argument injection during the previewing of changes.

GHSA-hf29-9hfh-w63j 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-hf29-9hfh-w63j?
GHSA-hf29-9hfh-w63j is a security vulnerability in Duplicate Advisory involving Gogs allows argument injection during the previewing of changes under CWE-94: Improper Control of Generation of Code ('Code Injection').
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-hf29-9hfh-w63j?
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-hf29-9hfh-w63j?
GHSA-hf29-9hfh-w63j 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-hf29-9hfh-w63j?
GHSA-hf29-9hfh-w63j is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Go dependencies for GHSA-hf29-9hfh-w63j?
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-hf29-9hfh-w63j",
  "modified" : "2024-12-23T20:37:17Z",
  "published" : "2024-07-04T18:31:11Z",
  "withdrawn" : "2024-12-23T20:37:16Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: Gogs allows argument injection during the previewing of changes",
  "details" : "# Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-9pp6-wq8c-3w2c. This link is maintained to preserve external references.\n\n# Original Description\nGogs through 0.13.0 allows argument injection during the previewing of changes.",
  "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-39932"
  }, {
    "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-94" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-05T20:04:46Z",
    "nvd_published_at" : "2024-07-04T16:15:02Z"
  }
}