cve.bz

CVE-2022-24828 Argument Injection

8.8 highEPSS 1.9%Fix available

High (8.8). EPSS 1.9% estimated probability of exploitation activity in the next 30 days. Fixed in composer/composer 1.10.26, 2.2.12, 2.3.5.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.9% (unchanged from 1.9% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-88 Improper Neutralization of Argument Delimiters in a Command (Argument Injection)
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-24828 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-24828?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-24828?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-24828 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
getcomposer:composerbefore 1.10.26
getcomposer:composerfrom 2.0.0 before 2.2.12
getcomposer:composerfrom 2.3.0 before 2.3.5
tenable:tenable.scbefore 5.21.0
fedoraproject:fedora34
fedoraproject:fedora35
fedoraproject:fedora36

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-x7cr-6qr6-2hh6Packagistcomposer/composer<1.10.261.10.26
GHSA-x7cr-6qr6-2hh6Packagistcomposer/composer>=2.0 <2.2.122.2.12
GHSA-x7cr-6qr6-2hh6Packagistcomposer/composer>=2.3 <2.3.52.3.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14composer2.2.12-1DEBIAN-CVE-2022-24828
UbuntuPro:16.04:LTScomposer1.0.0~beta2-1ubuntu0.1~esm2UBUNTU-CVE-2022-24828 USN-7603-1
UbuntuPro:18.04:LTScomposer1.6.3-1ubuntu0.1~esm2UBUNTU-CVE-2022-24828 USN-7603-1
UbuntuPro:20.04:LTScomposer1.10.1-1ubuntu0.1~esm2UBUNTU-CVE-2022-24828 USN-7603-1
UbuntuPro:22.04:LTScomposer2.2.6-2ubuntu4+esm1UBUNTU-CVE-2022-24828 USN-7603-1
UbuntuPro:24.04:LTScomposer2.7.1-2ubuntu0.1~esm1USN-7603-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4php-composer22.2.3-150400.3.3.1SUSE-SU-2022:3020-1
SUSEPackage Hub 15 SP3php-composer1.10.26-bp153.2.6.1openSUSE-SU-2022:0132-1
openSUSELeap 15.3php-composer1.10.26-bp153.2.6.1openSUSE-SU-2022:0132-1
openSUSELeap 15.4php-composer22.2.3-150400.3.3.1SUSE-SU-2022:3020-1
openSUSETumbleweedphp-composer1.10.26-1.1openSUSE-SU-2024:12054-1
openSUSETumbleweedphp-composer22.3.5-1.1openSUSE-SU-2024:12048-1
Alpinev3.15composer2.2.12-r0ALPINE-CVE-2022-24828
Alpinev3.16, v3.17, v3.18 and 6 morecomposer2.3.5-r0ALPINE-CVE-2022-24828

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Attack patterns (CAPEC)

  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-137 Parameter Injection Likelihood: Medium · Severity: Medium
  • CAPEC-174 Flash Parameter Injection Likelihood: High · Severity: Medium
  • CAPEC-460 HTTP Parameter Pollution (HPP) Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON