CYBER CODE RED

Get real-time updates on Telegram

P4

CVE-2026-40176: composer from 1.0.0 (inclusive), through 2.2.26 (inclusive), from 2.3.0 (inclusive), through 2.9.5 (inclusive), >=…

CVE-2026-40176 affects composer/composer. CVSS 3.1 base score 7.8 (HIGH, Vendor/CNA). EPSS 0.01045 (percentile 0.64297), scored 06-Nov-2026. Affected range: >= 2.3.0, < 2.9.6. Fixed version: 2.9.6. Affected range: >= 1.0.0, < 2.2.27. Fixed version: 2.2.27.

Affected technology

composer · from 1.0.0 (inclusive), through 2.2.26 (inclusive)
getcomposer

composer · from 2.3.0 (inclusive), through 2.9.5 (inclusive)
getcomposer

composer · >= 2.3, < 2.9.6, >= 1.0, < 2.2.27
composer

Red Hat Hardened Images · Exact affected versions not specified by the source
Red Hat

Component: Not specified by the source

Attack conditions (Vendor/CNA, CVSS 3.1): Local · No privileges required · User interaction required

Attack conditions (Source advisory, CVSS 3.1): Local · No privileges required · User interaction required

What an attacker can do

An attacker can inject arbitrary commands through these values in a malicious composer.json declaring a Perforce VCS repository, leading to command execution in the context of the user running Composer, even if Perforce is not installed. Vendor/CNA’s CVSS 3.1 assessment (base score 7.8/10) rates confidentiality, integrity and availability impact as high. Source advisory’s CVSS 3.1 assessment (base score 7.8/10) rates confidentiality, integrity and availability impact as high.

Published

CWE
CWE-20, CWE-78
Product
composer/composer
CCR priority
31.5 /100 (P4)
CVSS 3.1
7.8 /10 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H · Vendor/CNA
EPSS
0.01063 · percentile 0.65168 · 2026-11-15
KEV
no

Provenance

Stable permalink: https://cybercodered.org/item/cve-cve-2026-40176.html