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.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)0.5%top 56.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Gogithub.com/charmbracelet/soft-serve0.7.5GHSA-m445-w3xr-vp2f
Gogithub.com/charmbracelet/soft-serve0.7.5GO-2024-3019

Affected products (as reported)

VendorProductVersions
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

References