#VU86276 Incorrect default permissions in composer


Published: 2024-02-08

Vulnerability identifier: #VU86276

Vulnerability risk: Low

CVSSv3.1: 6.8 [CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2024-24821

CWE-ID: CWE-276

Exploitation vector: Local

Exploit availability: No

Vulnerable software:
composer
Other software / Other software solutions

Vendor: getcomposer.org

Description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to several files within the local working directory are included during the invocation of Composer and in the context of the executing user. A local user can execute arbitrary code with elevated privileges via the compromised InstalledVersions.php or installed.php files.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

composer: 2.6.0 - 2.6.6, 2.2.0 - 2.2.22, 2.5.0 - 2.5.8, 2.4.0 - 2.4.4, 2.3.0 - 2.3.10, 2.1.0 - 2.1.14, 2.0.0 - 2.0.14


External links
http://github.com/composer/composer/security/advisories/GHSA-7c6p-848j-wh5h


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability