Composer getFileContent file/identifier code injection
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 8.0 | $0-$5k | 0.00 |
Summary
A vulnerability was found in Composer and classified as critical. The impacted element is the function VcsDriver::getFileContent. The manipulation of the argument file/identifier results in code injection.
This vulnerability is reported as CVE-2022-24828. The attack can be launched remotely. No exploit exists.
It is advisable to implement a patch to correct this issue.
Details
A vulnerability, which was classified as critical, was found in Composer (the affected version is unknown). Affected is the function VcsDriver::getFileContent. The manipulation of the argument file/identifier with an unknown input leads to a code injection vulnerability. CWE is classifying the issue as CWE-94. The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. This is going to have an impact on confidentiality, integrity, and availability.
The weakness was disclosed 04/14/2022 as GHSA-x7cr-6qr6-2hh6. The advisory is shared for download at github.com. This vulnerability is traded as CVE-2022-24828 since 02/10/2022. There are known technical details, but no exploit is available. The MITRE ATT&CK project declares the attack technique as T1059.
The vulnerability scanner Nessus provides a plugin with the ID 241064 (Ubuntu 16.04 LTS / 18.04 LTS / 20.04 LTS / 22.04 LTS / 24.04 LTS : Composer vulnerabilities (USN-7603-1)), which helps to determine the existence of the flaw in a target environment.
Applying the patch 2c40c53637c5c7e43fff7c09d3d324d632734709 is able to eliminate this problem. The bugfix is ready for download at github.com.
The vulnerability is also documented in the vulnerability database at Tenable (241064). Once again VulDB remains the best source for vulnerability data.
Product
Name
License
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 8.2VulDB Meta Temp Score: 8.0
VulDB Base Score: 8.1
VulDB Temp Score: 7.7
VulDB Vector: 🔍
VulDB Reliability: 🔍
CNA Base Score: 8.3
CNA Vector (GitHub, Inc.): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Code injectionCWE: CWE-94 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 241064
Nessus Name: Ubuntu 16.04 LTS / 18.04 LTS / 20.04 LTS / 22.04 LTS / 24.04 LTS : Composer vulnerabilities (USN-7603-1)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
0-Day Time: 🔍
Patch: 2c40c53637c5c7e43fff7c09d3d324d632734709
Timeline
02/10/2022 🔍04/14/2022 🔍
04/14/2022 🔍
07/02/2025 🔍
Sources
Product: github.comAdvisory: GHSA-x7cr-6qr6-2hh6
Status: Confirmed
CVE: CVE-2022-24828 (🔍)
GCVE (CVE): GCVE-0-2022-24828
GCVE (VulDB): GCVE-100-197292
Entry
Created: 04/14/2022 07:30Updated: 07/02/2025 05:06
Changes: 04/14/2022 07:30 (50), 04/19/2022 14:35 (1), 04/19/2022 14:38 (1), 07/02/2025 05:06 (16)
Complete: 🔍
Cache ID: 216::103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.