Arbitrary Argument Injection Affecting github.com/charmbracelet/soft-serve/pkg/ssh/cmd package, versions <0.9.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.04% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMCHARMBRACELETSOFTSERVEPKGSSHCMD-12485338
  • published5 Sept 2025
  • disclosed4 Sept 2025
  • creditMoritz Sanft

Introduced: 4 Sep 2025

NewCVE-2025-58355  (opens in a new tab)
CWE-88  (opens in a new tab)

How to fix?

Upgrade github.com/charmbracelet/soft-serve/pkg/ssh/cmd to version 0.9.2 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Argument Injection via the commitCommand function. An attacker can create or overwrite arbitrary files by sending specially crafted requests through the SSH interface.

Note: This vulnerability was fixed in version v0.9.2-0.20250821162915-5a2bde588261, but the fix was not included in v0.10.0.

PoC

ssh -p23231 localhost repo commit icecream -- --output=/tmp/pwned

References

CVSS Base Scores

version 4.0
version 3.1