Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-24828

HIGH 8.3EPSS 76%

Missing input validation can lead to command execution in composer

Also known as BIT-composer-2022-24828, GHSA-x7cr-6qr6-2hh6

Mitigation

  • Upgrade composer/composer to one of 1.10.26, 2.2.12, 2.3.5 (or later in the same release line).

Who should check

  • Projects that depend on Packagist package composer/composer (< 1.10.26)
  • Anyone running composer < 1.10.26; >= 2.0.0, < 2.2.12; >= 2.3, < 2.3.6

Vulnerability facts

Affected
composer/composer < 1.10.26
Fixed in
1.10.26, 2.2.12, 2.3.5
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: None
  • User interaction: Required
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
1.60% chance of exploitation in 30 days (percentile 76, 2026-11-26)
CWE
CWE-20
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Packagist composer/composer< 1.10.261.10.26, 2.2.12, 2.3.5osv
composer< 1.10.26; >= 2.0.0, < 2.2.12; >= 2.3, < 2.3.6—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2022-24828. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-24828.md
Affected: composer/composer < 1.10.26
Fixed in: 1.10.26, 2.2.12, 2.3.5

Steps:
1. Search this machine and project for composer/composer (Packagist), composer: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2022-24828 being exploited?

There is no confirmed exploitation: CVE-2022-24828 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.60% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2022-24828?

High: CVSS 8.3 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2022-24828?

composer/composer < 1.10.26.

Is there a fix for CVE-2022-24828?

Yes. Fixed in 1.10.26, 2.2.12, 2.3.5. Upgrade composer/composer to one of 1.10.26, 2.2.12, 2.3.5 (or later in the same release line).

How do I check if I'm affected by CVE-2022-24828?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors