ADVISORIES

GitHub Advisory Database

GHSA-33pr-m977-5w97

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.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/charmbracelet/soft-serve
All versions before 0.10.0 (fixed in 0.10.0)

References