Incorrect default permissions in composer - CVE-2024-24821

 

Incorrect default permissions in composer - CVE-2024-24821

Published: February 8, 2024


Vulnerability identifier: #VU86276
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-24821
CWE-ID: CWE-276
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

composer
Amazon Linux AMI
Debian Linux
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Manager Server
SUSE Linux Enterprise Server 15 SP4 LTSS
Web and Scripting Module
openSUSE Leap
Ubuntu
Craft CMS
composer (Ubuntu package)
composer (Debian package)
php-composer2
composer

How to mitigate CVE-2024-24821

Install updates from vendor's website.

composer - addressed in versions 2.2.23, 2.7.0
Craft CMS - update to 4.7.2.1
composer (Ubuntu package) - addressed in versions 1.0.0~beta2-1ubuntu0.1~esm2, 1.6.3-1ubuntu0.1~esm2, 1.10.1-1ubuntu0.1~esm2, 2.2.6-2ubuntu4+esm1, 2.7.1-2ubuntu0.1~esm1
composer (Debian package) - addressed in versions 2.0.9-2+deb11u2, 2.5.5-1+deb12u1
php-composer2 - update to 2.2.3-150400.3.9.1
composer - update to 2.5.8-2

External References

Related Security Bulletins