{"api_version":"1","generated_at":"2026-04-22T22:50:44+00:00","cve":"CVE-2022-24828","urls":{"html":"https://cve.report/CVE-2022-24828","api":"https://cve.report/api/cve/CVE-2022-24828.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-24828","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-24828"},"summary":{"title":"CVE-2022-24828","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-04-13 21:15:00","updated_at":"2023-11-07 03:44:00"},"problem_types":["CWE-88"],"metrics":[],"references":[{"url":"https://github.com/composer/composer/commit/2c40c53637c5c7e43fff7c09d3d324d632734709","name":"https://github.com/composer/composer/commit/2c40c53637c5c7e43fff7c09d3d324d632734709","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-x7cr-6qr6-2hh6 · composer/composer@2c40c53 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GWT6LDSRY7SFMTDZWJ4MS2ZBXHL7VQEF/","name":"FEDORA-2022-47d2e7da46","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: composer-2.3.5-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/625MT3IKWKFVIWLSYZFSXHVUA2LES7YQ/","name":"FEDORA-2022-60ec715192","refsource":"","tags":[],"title":"[SECURITY] Fedora 36 Update: composer-2.3.5-1.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.tenable.com/security/tns-2022-09","name":"https://www.tenable.com/security/tns-2022-09","refsource":"CONFIRM","tags":[],"title":"[R1] Tenable.sc 5.21.0 Fixes Multiple Third-Party Vulnerabilities - Security Advisory | Tenable®","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QD7JQWL6C4GVROO25DTXWYWM6BPOPPCG/","name":"FEDORA-2022-617a6df23e","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: composer-2.2.12-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/625MT3IKWKFVIWLSYZFSXHVUA2LES7YQ/","name":"FEDORA-2022-60ec715192","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 36 Update: composer-2.3.5-1.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QD7JQWL6C4GVROO25DTXWYWM6BPOPPCG/","name":"FEDORA-2022-617a6df23e","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: composer-2.2.12-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/composer/composer/security/advisories/GHSA-x7cr-6qr6-2hh6","name":"https://github.com/composer/composer/security/advisories/GHSA-x7cr-6qr6-2hh6","refsource":"CONFIRM","tags":[],"title":"Missing input validation can lead to command execution via VcsDriver::getFileContent() · Advisory · composer/composer · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GWT6LDSRY7SFMTDZWJ4MS2ZBXHL7VQEF/","name":"FEDORA-2022-47d2e7da46","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: composer-2.3.5-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-24828","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24828","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"24828","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"24828","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"24828","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"36","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"24828","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"getcomposer","cpe5":"composer","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"24828","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"tenable","cpe5":"tenable.sc","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-24828","qid":"180878","title":"Debian Security Update for composer (CVE-2022-24828)"},{"cve":"CVE-2022-24828","qid":"282611","title":"Fedora Security Update for composer (FEDORA-2022-47d2e7da46)"},{"cve":"CVE-2022-24828","qid":"282612","title":"Fedora Security Update for composer (FEDORA-2022-617a6df23e)"},{"cve":"CVE-2022-24828","qid":"502045","title":"Alpine Linux Security Update for composer"},{"cve":"CVE-2022-24828","qid":"502254","title":"Alpine Linux Security Update for composer"},{"cve":"CVE-2022-24828","qid":"504629","title":"Alpine Linux Security Update for composer"},{"cve":"CVE-2022-24828","qid":"690841","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for composer (24a9bd2b-bb43-11ec-af81-0897988a1c07)"},{"cve":"CVE-2022-24828","qid":"753117","title":"SUSE Enterprise Linux Security Update for php-composer2 (SUSE-SU-2022:3020-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-24828","STATE":"PUBLIC","TITLE":"Missing input validation can lead to command execution in composer"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"composer","version":{"version_data":[{"version_value":"< 1.10.26"},{"version_value":">= 2.0.0, < 2.2.12"},{"version_value":">= 2.3, < 2.3.6"}]}}]},"vendor_name":"composer"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.3,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-20: Improper Input Validation"}]}]},"references":{"reference_data":[{"name":"https://github.com/composer/composer/security/advisories/GHSA-x7cr-6qr6-2hh6","refsource":"CONFIRM","url":"https://github.com/composer/composer/security/advisories/GHSA-x7cr-6qr6-2hh6"},{"name":"https://github.com/composer/composer/commit/2c40c53637c5c7e43fff7c09d3d324d632734709","refsource":"MISC","url":"https://github.com/composer/composer/commit/2c40c53637c5c7e43fff7c09d3d324d632734709"},{"refsource":"CONFIRM","name":"https://www.tenable.com/security/tns-2022-09","url":"https://www.tenable.com/security/tns-2022-09"},{"refsource":"FEDORA","name":"FEDORA-2022-617a6df23e","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QD7JQWL6C4GVROO25DTXWYWM6BPOPPCG/"},{"refsource":"FEDORA","name":"FEDORA-2022-47d2e7da46","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GWT6LDSRY7SFMTDZWJ4MS2ZBXHL7VQEF/"},{"refsource":"FEDORA","name":"FEDORA-2022-60ec715192","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/625MT3IKWKFVIWLSYZFSXHVUA2LES7YQ/"}]},"source":{"advisory":"GHSA-x7cr-6qr6-2hh6","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-04-13 21:15:00","lastModifiedDate":"2023-11-07 03:44:00","problem_types":["CWE-88"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*","versionStartIncluding":"2.3.0","versionEndExcluding":"2.3.5","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*","versionStartIncluding":"2.0.0","versionEndExcluding":"2.2.12","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*","versionEndExcluding":"1.10.26","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:tenable:tenable.sc:*:*:*:*:*:*:*:*","versionEndExcluding":"5.21.0","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"24828","Ordinal":"228293","Title":"CVE-2022-24828","CVE":"CVE-2022-24828","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"24828","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}