GHSA-hf29-9hfh-w63j: Duplicate Advisory Gogs Allows Argument Injection During Vulnerability
CRITICALGHSA-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
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).
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.
Upgrade github.com/gogs/gogs to Latest secure release
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
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?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-hf29-9hfh-w63j?
Is github.com/gogs/gogs affected?
What is the CVSS score of GHSA-hf29-9hfh-w63j?
What CWE is associated with GHSA-hf29-9hfh-w63j?
How can I check Go dependencies for GHSA-hf29-9hfh-w63j?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}