{"id":"CVE-2024-41956","aliases":["CVE-2024-41956","GHSA-m445-w3xr-vp2f","GO-2024-3019"],"related":[],"kind":"vulnerability","state":"published","title":"Soft Serve allows arbitrary code execution by crafting git-lfs requests","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nAny servers using soft-serve server and git\n\n### Patches\n>0.7.5\n\n### Workarounds\nNone.\n\n### References\nn/a.\n\n---\n\nIt 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.\n\nThe 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`.\n\nThis can be exploited to execute arbitrary code by, for example, uploading a malicious shared object file to Soft Serve via Git LFS (uploading it via LFS ensures that it is not compressed on disk and easier to work with). The file will be stored under its SHA256 hash, so it has a predictable name.\n\nThis file can then be referenced in `LD_PRELOAD` via a Soft Serve SSH session that causes git to be invoked. For example:\n\n```bash\nLD_PRELOAD=/.../data/lfs/1/objects/a2/b5/a2b585befededf5f95363d06d83655229e393b1b45f76d9f989a336668665a2f ssh server git-upload-pack repo\n```\n\nThe example LFS file patches a shared library function called by git to execute a shell.","format":"markdown","source":"ghsa"},{"lang":"en","text":"soft-serve vulnerable to arbitrary code execution by crafting git-lfs requests in github.com/charmbracelet/soft-serve","format":"markdown","source":"go"},{"lang":"es","text":"Soft Serve es un servidor Git autohospedable para la línea de comandos. Antes de 0.7.5, era posible que un usuario que pudiera enviar archivos a un repositorio alojado por Soft Serve ejecutara código arbitrario mediante manipulación del entorno y Git. El problema es que Soft Serve pasa todas las variables de entorno proporcionadas por el cliente a los subprocesos de git. Esto incluye variables de entorno que controlan la ejecución del programa, como LD_PRELOAD. Esta vulnerabilidad se solucionó en 0.7.5.","source":"nvd"}],"published":"2024-08-01T22:07:32.899Z","modified":"2026-06-17T07:48:31.510Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"< 0.7.5","status":"affected"}],"vendor":"charmbracelet","product":"soft-serve","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"0.7.5","status":"affected"}],"vendor":"charmbracelet","product":"soft-serve","cpe":"cpe:2.3:a:charmbracelet:soft-serve:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.7.5"}],"ecosystem":"Go","package":"github.com/charmbracelet/soft-serve","purl":"pkg:golang/github.com/charmbracelet/soft-serve","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.7.5"}],"ecosystem":"Go","package":"github.com/charmbracelet/soft-serve","purl":"pkg:golang/github.com/charmbracelet/soft-serve","source":"go"}],"references":[{"url":"https://github.com/charmbracelet/soft-serve/security/advisories/GHSA-m445-w3xr-vp2f","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/charmbracelet/soft-serve/commit/4daebdd422a6ba8c04162d023f8be355a8fe3184","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41956","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/charmbracelet/soft-serve","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2024-3019","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-08-02T14:45:52.445Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-41956","url":"https://www.cve.org/CVERecord?id=CVE-2024-41956","licence":"CVE Terms of Use","modified":"2024-08-02T14:47:38.561Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m445-w3xr-vp2f","url":"https://github.com/advisories/GHSA-m445-w3xr-vp2f","licence":"CC-BY-4.0","modified":"2024-08-07T19:26:34.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3019","url":"https://pkg.go.dev/vuln/GO-2024-3019","licence":"CC-BY-4.0","modified":"2026-03-03T04:55:36.530Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-41956","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41956","licence":"Public domain","modified":"2026-06-17T07:48:31.510Z"}],"updatedAt":"2026-11-25T22:58:43.530Z","epss":{"score":0.00509,"percentile":0.44985,"date":"2026-12-01T12:00:22.000Z"}}