CVE-2022-24828
Packagist Composer Code Injection Vulnerability
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.
INFO
Published Date :
April 13, 2022, 9:15 p.m.
Last Modified :
Nov. 7, 2023, 3:44 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
2.8
Affected Products
The following products are affected by CVE-2022-24828
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-24828
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-24828
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-24828
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QD7JQWL6C4GVROO25DTXWYWM6BPOPPCG/ [No types assigned] Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GWT6LDSRY7SFMTDZWJ4MS2ZBXHL7VQEF/ [No types assigned] Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/625MT3IKWKFVIWLSYZFSXHVUA2LES7YQ/ [No types assigned] Removed Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/GWT6LDSRY7SFMTDZWJ4MS2ZBXHL7VQEF/ Removed Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/QD7JQWL6C4GVROO25DTXWYWM6BPOPPCG/ Removed Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/625MT3IKWKFVIWLSYZFSXHVUA2LES7YQ/ -
Reanalysis by [email protected]
Jun. 23, 2023
Action Type Old Value New Value Removed CWE NIST CWE-94 Added CWE NIST CWE-88 -
Modified Analysis by [email protected]
Sep. 09, 2022
Action Type Old Value New Value Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/625MT3IKWKFVIWLSYZFSXHVUA2LES7YQ/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/625MT3IKWKFVIWLSYZFSXHVUA2LES7YQ/ Mailing List, Third Party Advisory Changed CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* OR *cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* -
CVE Modified by [email protected]
May. 07, 2022
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/625MT3IKWKFVIWLSYZFSXHVUA2LES7YQ/ [No Types Assigned] -
Initial Analysis by [email protected]
Apr. 23, 2022
Action Type Old Value New Value Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:P/I:P/A:P) Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/composer/composer/commit/2c40c53637c5c7e43fff7c09d3d324d632734709 No Types Assigned https://github.com/composer/composer/commit/2c40c53637c5c7e43fff7c09d3d324d632734709 Patch, Third Party Advisory Changed Reference Type https://github.com/composer/composer/security/advisories/GHSA-x7cr-6qr6-2hh6 No Types Assigned https://github.com/composer/composer/security/advisories/GHSA-x7cr-6qr6-2hh6 Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/GWT6LDSRY7SFMTDZWJ4MS2ZBXHL7VQEF/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/GWT6LDSRY7SFMTDZWJ4MS2ZBXHL7VQEF/ Mailing List, Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/QD7JQWL6C4GVROO25DTXWYWM6BPOPPCG/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/QD7JQWL6C4GVROO25DTXWYWM6BPOPPCG/ Mailing List, Third Party Advisory Changed Reference Type https://www.tenable.com/security/tns-2022-09 No Types Assigned https://www.tenable.com/security/tns-2022-09 Patch, Third Party Advisory Added CWE NIST CWE-94 Added CPE Configuration OR *cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:* versions up to (excluding) 1.10.26 *cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:* versions from (including) 2.0.0 up to (excluding) 2.2.12 *cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:* versions from (including) 2.3.0 up to (excluding) 2.3.5 Added CPE Configuration OR *cpe:2.3:a:tenable:tenable.sc:*:*:*:*:*:*:*:* versions up to (excluding) 5.21.0 Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Apr. 21, 2022
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/GWT6LDSRY7SFMTDZWJ4MS2ZBXHL7VQEF/ [No Types Assigned] Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/QD7JQWL6C4GVROO25DTXWYWM6BPOPPCG/ [No Types Assigned] -
CVE Modified by [email protected]
Apr. 20, 2022
Action Type Old Value New Value Added Reference https://www.tenable.com/security/tns-2022-09 [No Types Assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-24828
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-24828
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.39 }} 0.11%
score
0.73926
percentile