CVE-2024-41956 Soft Serve allows arbitrary code execution by crafting git-lfs requests
HighCVSS 8.1
EPSS 0.51%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| charmbracelet soft-serve | < 0.7.5; = < 0.7.5 | 0.7.5 | Fixed |
| charmbracelet soft-serve(Go) | < 0.7.5 | 0.7.5 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| charmbracelet soft-serve(Go) | < 0.7.5 | 0.7.5 |
| charmbracelet soft-serve | = < 0.7.5 | No fix listed |
| charmbracelet soft-serve | < 0.7.5 | 0.7.5 |
References
- https://github.com/charmbracelet/soft-serve/security/advisories/GHSA-m445-w3xr-vp2f vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/charmbracelet/soft-serve/commit/4daebdd422a6ba8c04162d023f8be355a8fe3184 patch
- github.com product
- pkg.go.dev
- github.com