---
title: "CVE-2024-39930: Gogs has an argument Injection in the built-in SSH server"
url: https://erroneo.us/security/cve/CVE-2024-39930/
description: "CVE-2024-39930 (gogs.io/gogs (Go)): The built-in SSH server of Gogs through 0.13.0 allows argument injection in internal/ssh/ssh.go, leading to remote code…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-07-04
date_modified: 2024-12-23
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-39930"
kev: false
cvss: 9.9
epss: 0.07743
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-39930: Gogs has an argument Injection in the built-in SSH server

**Signal:** Critical, preconditions apply. Severe if exploited, but exploitation needs conditions that may not apply to you. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 7.7% , percentile 95: FIRST’s model estimates a 7.7% chance of exploitation activity in the next 30 days, higher than 95% of all scored CVEs (elevated). EPSS is a probability, not a verdict.
- Needs an account (low (any account)). Exposure depends on who can log in.
- Only applies if your dependency tree includes gogs.io/gogs (Go) <= 0.13.0, fixed in 0.13.1 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- Go `gogs.io/gogs` <= 0.13.0 → fixed: 0.13.1

## Affected products (CVE record)

- n/a n/a: see advisory

## Severity

- mitre CVSS 3.1: 9.9 `CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N`
- GitHub CVSS 3.1: 9.9 `CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 7.74% probability of exploitation activity in the next 30 days; percentile 95.

## Sources

- [GitHub Advisory GHSA-vm62-9jw3-c8w3](https://github.com/advisories/GHSA-vm62-9jw3-c8w3)
- [CVE.org record CVE-2024-39930](https://www.cve.org/CVERecord?id=CVE-2024-39930)
- [NVD entry CVE-2024-39930](https://nvd.nist.gov/vuln/detail/CVE-2024-39930)
- [github.com](https://github.com/gogs/gogs/releases)
- [sonarsource.com](https://www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1/)
- [vicarius.io](https://www.vicarius.io/vsociety/posts/argument-injection-in-gogs-ssh-server-cve-2024-39930)
- [github.com](https://github.com/gogs/gogs/security/advisories/GHSA-vm62-9jw3-c8w3)

---
Source page: https://erroneo.us/security/cve/CVE-2024-39930/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
