Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-29472

published high CVSS 3.1 · 8.8

Missing argument delimiter can lead to code execution via VCS repository URLs or source download URLs on systems with Mercurial in composer

Published
27 Apr 2021, 20:30:15 UTC
Updated
03 Aug 2024, 22:11:05 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
composer — composer< 1.10.22 · >=2.0,<2.0.13 Affected Not stated GitHub_M
Alpine Linux edge composer Fixed 2.0.13-r0 Package fix record
Debian buster composer Advisory build 1.8.4-1+deb10u1 DSA-4907-1
Ubuntu bionic composer Advisory build 1.6.3-1ubuntu0.1~esm1 USN-5220-1
SUSE / openSUSE openSUSE-Leap-15.2 php-composernoarch Advisory build 1.10.22-bp153.2.3.1 OPENSUSE-SU-2021:1289-1
Alpine Linux v3.13 composer Fixed 2.0.13-r0 Package fix record
Alpine Linux v3.14 composer Fixed 2.0.13-r0 Package fix record
Alpine Linux v3.15 composer Fixed 2.0.13-r0 Package fix record
Show 17 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Alpine Linux v3.16 composer Fixed 2.0.13-r0 Package fix record
Alpine Linux v3.17 composer Fixed 2.0.13-r0 Package fix record
Alpine Linux v3.18 composer Fixed 2.0.13-r0 Package fix record
Alpine Linux v3.19 composer Fixed 2.0.13-r0 Package fix record
Alpine Linux v3.20 composer Fixed 2.0.13-r0 Package fix record
Alpine Linux v3.21 composer Fixed 2.0.13-r0 Package fix record
Alpine Linux v3.22 composer Fixed 2.0.13-r0 Package fix record
Alpine Linux v3.23 composer Fixed 2.0.13-r0 Package fix record
Alpine Linux v3.24 composer Fixed 2.0.13-r0 Package fix record
Debian stretch composer Advisory build 1.2.2-1+deb9u1 DLA-2654-1
Ubuntu focal composer Advisory build 1.10.1-1ubuntu0.1~esm1 USN-5220-1
Ubuntu xenial composer Advisory build 1.0.0~beta2-1ubuntu0.1~esm1 USN-5220-1
SUSE / openSUSE openSUSE-Leap-15.3 php-composernoarch Advisory build 1.10.22-bp153.2.3.1 OPENSUSE-SU-2021:1289-1
SUSE / openSUSE openSUSE-Tumbleweed php-composeraarch64 Advisory build 1.10.22-2.2 OPENSUSE-SU-2024:11166-1
SUSE / openSUSE openSUSE-Tumbleweed php-composerppc64le Advisory build 1.10.22-2.2 OPENSUSE-SU-2024:11166-1
SUSE / openSUSE openSUSE-Tumbleweed php-composers390x Advisory build 1.10.22-2.2 OPENSUSE-SU-2024:11166-1
SUSE / openSUSE openSUSE-Tumbleweed php-composerx86_64 Advisory build 1.10.22-2.2 OPENSUSE-SU-2024:11166-1

Description

Composer is a dependency manager for PHP. URLs for Mercurial repositories in the root composer.json and package source download URLs are not sanitized correctly. Specifically crafted URL values allow code to be executed in the HgDriver if hg/Mercurial is installed on the system. The impact to Composer users directly is limited as the composer.json file is typically under their own control and source download URLs can only be supplied by third party Composer repositories they explicitly trust to download and execute source code from, e.g. Composer plugins. The main impact is to services passing user input to Composer, including Packagist.org and Private Packagist. This allowed users to trigger remote code execution. The vulnerability has been patched on Packagist.org and Private Packagist within 12h of receiving the initial vulnerability report and based on a review of logs, to the best of our knowledge, was not abused by anyone. Other services/tools using VcsRepository/VcsDriver or derivatives may also be vulnerable and should upgrade their composer/composer dependency immediately. Versions 1.10.22 and 2.0.13 include patches for this issue.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

21

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.8 / 10
Severity
high
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
composer composer < 1.10.22 (affected)>=2.0,<2.0.13 (affected) GitHub_M · cna

Weaknesses

2
  • CWE-88 CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (GitHub_M · cna)
  • CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection') (GitHub_M · cna)

References

7

Provider assertions

2

GitHub_M · cna

Missing argument delimiter can lead to code execution via VCS repository URLs or source download URLs on systems with Mercurial in composer

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
7873e7476ad5ff22ce5faaa24d3b595da7b38230eec03f9206c7650b46cee6f1
Ingested
23 Sep 2026, 07:53:55 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected