8.8

CVE-2022-24828: composer Improper Input Validation

CVSS: 8.8v3.1HighModified
AliasesSUSE-SU-2022:3020-1UBUNTU-CVE-2022-24828DEBIAN-CVE-2022-24828
Published 13-04-2022Last modified 23-04-2025

Vulnerability summary

CVE-2022-24828 is a high (CVSS 8.8) Improper Input Validation vulnerability in composer. EPSS estimates a 1.89% chance of exploitation in the next 30 days, higher than 79.1% of scored vulnerabilities.

Overall risk
36/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
1.89%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 2 · Related 2

Timeline

  1. 13-04-2022
    PublishedVulnerability first disclosed.
  2. 23-04-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

1.89%

Chance of exploitation in the next 30 days

Percentile

79%

Versus all other CVEs

30-day change

+0.01 pp

From 1.88% on 18-09-2026

18-09-202618-10-2026
EPSS score
1.89%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Opensuse3 products
  • php-composer2&distro=openSUSE Leap 15.4< 2.2.3-150400.3.3.1
  • php-composer2&distro=openSUSE Tumbleweed< 2.3.5-1.1
  • php-composer&distro=openSUSE Tumbleweed< 1.10.26-1.1
Composer1 product
  • composer< 1.10.26 | ≥ 2.0.0, < 2.2.12 | ≥ 2.3, < 2.3.6
Debian1 product
  • composer< 2.2.12-1
Fedoraproject1 product
Getcomposer1 product
  • composer< 1.10.26 | ≥ 2.0.0, < 2.2.12 | ≥ 2.3.0, < 2.3.5
Suse1 product
  • php-composer2&distro=SUSE Linux Enterprise Module for Web and Scripting 15 SP4< 2.2.3-150400.3.3.1
Tenable1 product
Ubuntu1 product
  • composer< 1.0.0~beta2-1ubuntu0.1~esm2 | < 1.6.3-1ubuntu0.1~esm2 | < 1.10.1-1ubuntu0.1~esm2 | < 2.2.6-2ubuntu4+esm1

8 vendors · 10 products

References

13 links
Show all 13 references