{"schemaVersion":3,"id":"CVE-2024-35241","aliases":["UBUNTU-CVE-2024-35241","DEBIAN-CVE-2024-35241","CGA-9xff-5wvp-wf49","CGA-rq68-hqwg-7wxp"],"status":"published","duplicateOf":null,"title":null,"description":"Composer is a dependency manager for PHP. On the 2.x branch prior to versions 2.2.24 and 2.7.7, the `status`, `reinstall` and `remove` commands with packages installed from source via git containing specially crafted branch names in the repository can be used to execute code. Patches for this issue are available in version 2.2.24 for 2.2 LTS or 2.7.7 for mainline. As a workaround, avoid installing dependencies via git by using `--prefer-dist` or the `preferred-install: dist` config setting.","dates":{"published":"2024-06-10T21:19:47.123Z","modified":"2025-04-21T15:20:35.089Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0105,"percentile":0.63719,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.0105},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0105,"percentile":0.63719}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0105,"percentile":0.63719}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command ('Command Injection')","description":"The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/77.html"}],"affected":[{"vendor":"chainguard","product":"composer","name":"composer","label":"composer","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/composer","purlType":"apk","versions":[{"text":"< 2.7.7-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.7-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"composer","name":"composer","label":"composer","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/composer","purlType":"apk","versions":[{"text":"< 2.7.7-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.7-r0","eol":null,"hubHref":null},{"vendor":"composer","product":"composer","name":"composer","label":"composer","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0, < 2.2.24","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.3, < 2.7.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0, < 2.2.24 | ≥ 2.3, < 2.7.7","eol":null,"hubHref":"/vendor/composer/composer"},{"vendor":"debian","product":"composer","name":"composer","label":"composer","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/composer","purlType":"deb","versions":[{"text":"< 2.5.5-1+deb12u2","noFixRecorded":false,"fixedIn":null},{"text":"< 2.7.7-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.5.5-1+deb12u2 | < 2.7.7-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"composer","name":"composer","label":"composer","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/composer","purlType":"deb","versions":[{"text":"< 1.0.0~beta2-1ubuntu0.1~esm2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.6.3-1ubuntu0.1~esm2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.10.1-1ubuntu0.1~esm2","noFixRecorded":false,"fixedIn":null},{"text":"< 2.2.6-2ubuntu4+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.7.1-2ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.0~beta2-1ubuntu0.1~esm2 | < 1.6.3-1ubuntu0.1~esm2 | < 1.10.1-1ubuntu0.1~esm2 | < 2.2.6-2ubuntu4+esm1 | < 2.7.1-2ubuntu0.1~esm1","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/composer/composer/security/advisories/GHSA-47f6-5gq3-vx9c","label":"github.com/composer/composer/security/advisories/GHSA-47f6-5gq3-vx9c","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Advisory"]},{"url":"https://github.com/composer/composer/commit/b93fc6ca437da35ae73d667d0618749c763b67d4","label":"github.com/composer/composer/commit/b93fc6ca437da35ae73d667d0618749c763b67d4","hostname":"github.com","tags":["X Refsource MISC","REPORT","FIX"]},{"url":"https://github.com/composer/composer/commit/ee28354ca8d33c15949ad7de2ce6656ba3f68704","label":"github.com/composer/composer/commit/ee28354ca8d33c15949ad7de2ce6656ba3f68704","hostname":"github.com","tags":["X Refsource MISC","REPORT","FIX"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VLPJHM2WWSYU2F6KHW2BYFGYL4IGTKHC/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["REPORT","WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PO4MU2BC7VR6LMHEX4X7DKGHVFXZV2MC/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["REPORT","WEB"]},{"url":"https://www.vicarius.io/vsociety/posts/cve-2024-35241-detect-composer-vulnerability","label":"www.vicarius.io/vsociety/posts/cve-2024-35241-detect-composer-vulnerability","hostname":"www.vicarius.io","tags":["WEB"]},{"url":"https://www.vicarius.io/vsociety/posts/cve-2024-35241-mitigate-vulnerable-composer","label":"www.vicarius.io/vsociety/posts/cve-2024-35241-mitigate-vulnerable-composer","hostname":"www.vicarius.io","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2024-35241","label":"ubuntu.com/security/CVE-2024-35241","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-35241","label":"www.cve.org/CVERecord?id=CVE-2024-35241","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7603-1","label":"ubuntu.com/security/notices/USN-7603-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-35241","label":"security-tracker.debian.org/tracker/CVE-2024-35241","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35241.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35241.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35241","label":"nvd.nist.gov/vuln/detail/CVE-2024-35241","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3838-1","DSA-5715-1","OPENSUSE-SU-2024:14040-1","SUSE-SU-2024:2106-1","SUSE-SU-2024:2107-1","SUSE-SU-2026:3105-1","USN-7603-1"],"duplicates":[],"related":["CGA-295G-WMMH-C56F","CGA-G75W-3GXM-GJ8G","OPENSUSE-SU-2024:14040-1","SUSE-SU-2024:2106-1","SUSE-SU-2024:2107-1","SUSE-SU-2026:3105-1","USN-7603-1"]},"timeline":[{"kind":"published","date":"2024-06-10T21:19:47.123Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-21T15:20:35.089Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T07:13:37.576Z","stale":false,"partial":false}}