Vulnerability · Published Aug 1, 2024 · Assigned by GitHub_M
CVE-2024-41956Soft Serve allows arbitrary code execution by crafting git-lfs requests
High 8.1
In plain English
A high-severity OS command injection in soft-serve from charmbracelet. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Soft Serve is a self-hostable Git server for the command line. Prior to 0.7.5, it is possible for a user who can commit files to a repository hosted by Soft Serve to execute arbitrary code via environment manipulation and Git. The issue is that Soft Serve passes all environment variables given by the client to git subprocesses. This includes environment variables that control program execution, such as LD_PRELOAD. This vulnerability is fixed in 0.7.5.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/charmbracelet/soft-serve | 0.7.5 | GHSA-m445-w3xr-vp2f |
| Go | github.com/charmbracelet/soft-serve | 0.7.5 | GO-2024-3019 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| charmbracelet | soft-serve | < 0.7.5 |
Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N