CVE-2024-39933
JSON

7.7high

Gogs allows argument Injection when tagging new releases

Severity
7.7high CVSS:3.1 by mitre
Exploit likelihood
0.69% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-8mm6-wmpp-mmm3GHSA-m27m-h5gj-wwmgGO-2024-2972

Description

Gogs through 0.13.0 allows argument injection during the tagging of a new release.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
gogs gogsup to 0.13.0CVE List, NVD
github.com/gogs/gogs (Go)up to 0.13.0, all versionsGitHub Advisory Database, Go Vulnerability Database
gogs.io/gogs (Go)before 0.13.1GitHub Advisory Database

All scores

mitre7.7high CVSS:3.1CVSS:3.1/AC:L/AV:N/A:N/C:H/I:N/PR:L/S:C/UI:N
GitHub7.7high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
GitHub7.7high CVSS:3.1CVSS:3.1/AC:L/AV:N/A:N/C:H/I:N/PR:L/S:C/UI:N
NVD7.7high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Classification

CWE-88

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Gogs through 0.13.0 allows argument injection during the tagging of a new release.

GitHub Advisory Database

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-m27m-h5gj-wwmg. This link is maintained to preserve external references.

Original Description

Gogs through 0.13.0 allows argument injection during the tagging of a new release. This vulnerability is still unfixed as of the time of this advisory being published.

GitHub Advisory Database
Impact

Unprivileged user accounts with at least one SSH key can read arbitrary files on the system. For instance, they could leak the configuration files that could contain database credentials ([database] *) and [security] SECRET_KEY. Attackers could also exfiltrate TLS certificates, other users' repositories, and the Gogs database when the SQLite driver is enabled.

Patches

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

Workarounds

No viable workaround available, please only grant access to trusted users to your Gogs instance on affected versions.

References

https://www.cve.org/CVERecord?id=CVE-2024-39933

Go Vulnerability Database

Gogs allows argument injection during the tagging of a new release in github.com/gogs/gogs

NVD (es)

Gogs hasta 0.13.0 permite la inyección de argumentos durante el etiquetado de una nueva versión.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-39933 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-8mm6-wmpp-mmm3 changed 2024-12-23CC-BY-4.0
GitHub Advisory DatabaseGHSA-m27m-h5gj-wwmg changed 2024-12-23CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2972 changed 2026-03-03CC-BY-4.0
NVDCVE-2024-39933 changed 2026-06-17Public domain