What’s Vulnerable › Vulnerabilities

CVE-2024-41956: Soft Serve allows arbitrary code execution by crafting git-lfs requests

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 products

How to fix

Upgrade to a fixed version: charmbracelet Soft-Serve 0.7.5. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-41956 or the next vulnerability affects your stack