{"schemaVersion":3,"id":"CVE-2022-24828","aliases":["SUSE-SU-2022:3020-1","UBUNTU-CVE-2022-24828","DEBIAN-CVE-2022-24828","openSUSE-SU-2024:12048-1","openSUSE-SU-2024:12054-1"],"status":"published","duplicateOf":null,"title":null,"description":"Composer is a dependency manager for the PHP programming language. Integrators using Composer code to call `VcsDriver::getFileContent` can have a code injection vulnerability if the user can control the `$file` or `$identifier` argument. This leads to a vulnerability on packagist.org for example where the composer.json's `readme` field can be used as a vector for injecting parameters into hg/Mercurial via the `$file` argument, or git via the `$identifier` argument if you allow arbitrary data there (Packagist does not, but maybe other integrators do). Composer itself should not be affected by the vulnerability as it does not call `getFileContent` with arbitrary data into `$file`/`$identifier`. To the best of our knowledge this was not abused, and the vulnerability has been patched on packagist.org and Private Packagist within a day of the vulnerability report.","dates":{"published":"2022-04-13T21:00:22.000Z","modified":"2025-04-23T18:40:09.513Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","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.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/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":"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},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01886,"percentile":0.79197,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.00899999999999998,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01877},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01886,"percentile":0.79197}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01877,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01886,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01886,"percentile":0.79197}]},"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-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"},{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')","description":"The product constructs a string for a command to be executed by a separate component\nin another control sphere, but it does not properly delimit the\nintended arguments, options, or switches within that command string.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/88.html"}],"affected":[{"vendor":"composer","product":"composer","name":"composer","label":"composer","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.10.26","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.0.0, < 2.2.12","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.3, < 2.3.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.10.26 | ≥ 2.0.0, < 2.2.12 | ≥ 2.3, < 2.3.6","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.2.12-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.2.12-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}],"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","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"34","noFixRecorded":false,"fixedIn":null},{"text":"35","noFixRecorded":false,"fixedIn":null},{"text":"36","noFixRecorded":false,"fixedIn":null}],"versionsText":"34 | 35 | 36","eol":{"isEol":true,"eolDate":"2022-06-07T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"34","label":"34","eolFrom":"2022-06-07T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"getcomposer","product":"composer","name":"composer","label":"composer","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.10.26","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.0.0, < 2.2.12","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.3.0, < 2.3.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.10.26 | ≥ 2.0.0, < 2.2.12 | ≥ 2.3.0, < 2.3.5","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"composer","label":"Composer","category":"app"}},"hubHref":"/vendor/getcomposer/composer"},{"vendor":"opensuse","product":"php-composer2&distro=openSUSE Leap 15.4","name":"php-composer2","label":"php-composer2&distro=openSUSE Leap 15.4","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/php-composer2&distro=openSUSE Leap 15.4","purlType":"rpm","versions":[{"text":"< 2.2.3-150400.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.2.3-150400.3.3.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"php-composer2&distro=openSUSE Tumbleweed","name":"php-composer2","label":"php-composer2&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/php-composer2&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 2.3.5-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.3.5-1.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"php-composer&distro=openSUSE Tumbleweed","name":"php-composer","label":"php-composer&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/php-composer&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 1.10.26-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.10.26-1.1","eol":null,"hubHref":null},{"vendor":"suse","product":"php-composer2&distro=SUSE Linux Enterprise Module for Web and Scripting 15 SP4","name":"php-composer2","label":"php-composer2&distro=SUSE Linux Enterprise Module for Web and Scripting 15 SP4","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/php-composer2&distro=SUSE Linux Enterprise Module for Web and Scripting 15 SP4","purlType":"rpm","versions":[{"text":"< 2.2.3-150400.3.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.2.3-150400.3.3.1","eol":null,"hubHref":null},{"vendor":"tenable","product":"tenable.sc","name":"tenable.sc","label":"tenable.sc","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.21.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.21.0","eol":null,"hubHref":"/vendor/tenable/tenablesc"}],"affectedCount":10,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/composer/composer/security/advisories/GHSA-x7cr-6qr6-2hh6","label":"github.com/composer/composer/security/advisories/GHSA-x7cr-6qr6-2hh6","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Third Party Advisory"]},{"url":"https://github.com/composer/composer/commit/2c40c53637c5c7e43fff7c09d3d324d632734709","label":"github.com/composer/composer/commit/2c40c53637c5c7e43fff7c09d3d324d632734709","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch","Third Party Advisory"]},{"url":"https://www.tenable.com/security/tns-2022-09","label":"www.tenable.com/security/tns-2022-09","hostname":"www.tenable.com","tags":["X Refsource CONFIRM","Patch","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QD7JQWL6C4GVROO25DTXWYWM6BPOPPCG/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GWT6LDSRY7SFMTDZWJ4MS2ZBXHL7VQEF/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/625MT3IKWKFVIWLSYZFSXHVUA2LES7YQ/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://www.suse.com/support/update/announcement/2022/suse-su-20223020-1/","label":"www.suse.com/support/update/announcement/2022/suse-su-20223020-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1198494","label":"bugzilla.suse.com/1198494","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2022-24828","label":"www.suse.com/security/cve/CVE-2022-24828","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2022-24828","label":"ubuntu.com/security/CVE-2022-24828","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-24828","label":"www.cve.org/CVERecord?id=CVE-2022-24828","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-2022-24828","label":"security-tracker.debian.org/tracker/CVE-2022-24828","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2022:0132-1","USN-7603-1"],"duplicates":[],"related":["OPENSUSE-SU-2022:0132-1","USN-7603-1"]},"timeline":[{"kind":"published","date":"2022-04-13T21:00:22.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-23T18:40:09.513Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":36,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T22:41:31.964Z","stale":false,"partial":false}}