Security mailing lists by PureSourceCode

CVE-2024-39930

CRITICAL 9.9CVSS 3.1

Duplicate Advisory: github.com/gogs/gogs affected by CVE-2024-39930

The built-in SSH server of Gogs through 0.13.0 allows argument injection in internal/ssh/ssh.go, leading to remote code execution. Authenticated attackers can exploit this by opening an SSH connection and sending a malicious --split-string env request if the built-in SSH server is activated. Windows installations are unaffected.

Published
4 Jul 2024
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Analyzed
Weakness
CWE-88
Also known as
GHSA-p69r-v3h4-rj4fGHSA-vm62-9jw3-c8w3GO-2024-2969
Sources
NVDJSONOSV GHSA-p69r-v3h4-rj4fJSONOSV GHSA-vm62-9jw3-c8w3JSONOSV GO-2024-2969JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 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
NVD cve@mitre.org (Secondary) CVSS 3.1 CRITICAL 9.9 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.9 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.9 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.9 CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD gogs gogs
cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*
<= 0.13.0
OSV Go github.com/gogs/gogs <= 0.13.0
OSV Go gogs.io/gogs < 0.13.1 0.13.1
OSV Go github.com/gogs/gogs all versions

References

History

  • 25 Nov 2026 20:55 UTC · NVD: first stored (published 4 Jul 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Jul 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Dec 2024)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 4 Jul 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.