CVE & CISA-KEV Catalog

CVE-2022-24828

HIGHEPSS 76th pctl
8.3
CVSS v3
NVD

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.

How to fix

Remediation Available
composerDebian
Fixed in:2.0.9-2+deb11u1CVE-2022-24828
Fixed in:2.2.12-1CVE-2022-24828
Fixed in:2.2.12-1CVE-2022-24828
Fixed in:2.2.12-1CVE-2022-24828
composerUbuntu
Fixed in:1.0.0~beta2-1ubuntu0.1~esm2USN-7603-1
Fixed in:1.6.3-1ubuntu0.1~esm2USN-7603-1
Fixed in:1.10.1-1ubuntu0.1~esm2USN-7603-1
Fixed in:2.2.6-2ubuntu4+esm1USN-7603-1
Fixed in:2.7.1-2ubuntu0.1~esm1USN-7603-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionRequired
ScopeChanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H

Exploit Intelligence

1.84%probability of exploitation in 30 days
76thpercentile

Elevated risk: more likely to be exploited than 76% of all known CVEs.

References

Related Vulnerabilities

Other CWE-20 (Improper Input Validation) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-3400Critical10.0100%KEV + Ransom-
CVE-2021-45105Medium5.9100%-Fix
CVE-2021-44228Critical10.0100%KEV + RansomFix
CVE-2021-21985Critical9.8100%KEV + RansomFix
CVE-2018-7600Critical9.8100%KEV + RansomFix
CVE-2020-3452High7.5100%KEVFix
Embed a live status badge for CVE-2022-24828
CVE-2022-24828 severity badge

Markdown

[![CVE-2022-24828](https://tridentstack.com/cve/badge/CVE-2022-24828.svg)](https://tridentstack.com/cve/CVE-2022-24828)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-24828"><img src="https://tridentstack.com/cve/badge/CVE-2022-24828.svg" alt="CVE-2022-24828"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.