Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2022-24828

8.3 · HIGH
Published Apr 13, 2022 getcomposer CWE-20 EPSS 1.86% (78th pctl)

Overview

CVE-2022-24828 is a high-severity vulnerability affecting getcomposer composer. It was published on April 13, 2022 and has a CVSS 3.1 base score of 8.3 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.3, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from getcomposer. Update composer to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
getcomposer composer >= 0, < 1.10.26 Affected
tenable tenable.sc >= 0, < 5.21.0 Affected

Frequently Asked Questions

What is CVE-2022-24828?

CVE-2022-24828 is a high-severity vulnerability affecting getcomposer composer. It was published on April 13, 2022 and has a CVSS 3.1 base score of 8.3 (HIGH).

How severe is CVE-2022-24828?

This vulnerability has a CVSS 3.1 base score of 8.3, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2022-24828?

Check the references section for vendor advisories and patches from getcomposer. Update composer to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-24828?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-24828 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.