GHSA-33pr-m977-5w97

Suggest an improvement
Source
https://github.com/advisories/GHSA-33pr-m977-5w97
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-33pr-m977-5w97/GHSA-33pr-m977-5w97.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-33pr-m977-5w97
Aliases
Published
2025-09-02T19:43:03Z
Modified
2025-09-08T14:59:25.274883Z
Severity
  • 7.7 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N CVSS Calculator
Summary
Soft Serve vulnerable to arbitrary file writing through SSH API
Details

Attackers can create/override arbitrary files with uncontrolled data.

For a PoC, spin up an instance of soft-serve as explained in the README, and execute the following command:

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

It should have created a file in /tmp/pwned.

Database specific
{
    "nvd_published_at": "2025-09-04T10:42:32Z",
    "github_reviewed_at": "2025-09-02T19:43:03Z",
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "HIGH",
    "github_reviewed": true
}
References

Affected packages

Go / github.com/charmbracelet/soft-serve

Package

Name
github.com/charmbracelet/soft-serve
View open source insights on deps.dev
Purl
pkg:golang/github.com/charmbracelet/soft-serve

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.10.0