GHSA-h5h8-pc6h-jvvx · 深刻度: high · エコシステム: composer — Composer's missing argument delimiter can lead to code execution via VCS repository URLs or source download URLs on systems with Mercurial
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.
総合評価: CVE-2021-29472 は悪用リスクが高い(84.2/100)。CVSS 深刻度は高。悪用される可能性が高い(EPSS 4.81%、91 パーセンタイル) 根拠: 公開エクスプロイトが 1 件参照されています(Exploit-DB)。 直近 1 日で EPSS が +2.22% 上昇。悪用への関心が高まっている可能性があります。 推奨対応: 公開エクスプロイトが確認されています。影響範囲の確認、緩和策の適用、パッチ適用を優先してください。
リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。
| EDB-ID | ソース | 種別 | 公開 | リンク |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。
| # | 日付 | 旧 EPSS スコア | 新 EPSS スコア | Δ(新 − 旧) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 2.58% | 4.81% | +2.22% |
| 2 | 2026-06-04 | 1.97% | 2.58% | +0.61% |
| 3 | 2026-05-28 | — | 1.97% | — |
EPSS の全履歴 (全 32 件)
この CVE の CVSS 指標。
| ベーススコア | バージョン | 深刻度 | ベクトル | 悪用しやすさ | 影響 | スコアの出典 |
|---|---|---|---|---|---|---|
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
| 6.5 | 2.0 | MEDIUM |
|
8.0 | 6.4 | [email protected] |
GHSA-h5h8-pc6h-jvvx · 深刻度: high · エコシステム: composer — Composer's missing argument delimiter can lead to code execution via VCS repository URLs or source download URLs on systems with Mercurial
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
high | CVE-2021-29472: 1 source package rows (composer); 7 state rows across 7 repos (3.17-community, 3.18-community, 3.19-community, 3.20-community, 3.21-community, 3.22-community, edge-community); fixed 7, open 0. | https://security.alpinelinux.org/vuln/CVE-2021-29472 |
debian
|
not yet assigned | CVE-2021-29472 not yet assigned priority: Debian including 1 source packages (composer), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2021-29472 |
ubuntu
|
medium | CVE-2021-29472 medium priority: Ubuntu including 1 source packages (composer), 15 status rows across 15 suites (bionic, focal, groovy, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, trusty, upstream, xenial): not-affected 8, released 4, ignored 2, DNE 1. | https://ubuntu.com/security/CVE-2021-29472 |
| ベンダー | 製品 | バージョン | 生の CPE |
|---|---|---|---|
| getcomposer | composer | < 1.10.22 | cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:* |
| getcomposer | composer | >= 2.0, < 2.0.13 | cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:* |
| debian | debian_linux | 9.0 | cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
| debian | debian_linux | 10.0 | cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
| fedoraproject | fedora | 33 | cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
| fedoraproject | fedora | 34 | cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
| URL | タグ |
|---|---|
| https://blog.sonarsource.com/php-supply-chain-attack-on-composer/ | Exploit Third Party Advisory |
| https://getcomposer.org/ | Vendor Advisory |
| https://github.com/composer/composer/security/advisories/GHSA-h5h8-pc6h-jvvx | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/05/msg00009.html | Mailing List Third Party Advisory |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FAQUAMGO4Q4BLNZ2OH4CXQD7UK4IO2GE/ | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KN3DMFH42BJW45VT6FYF2RXKC26D6VC2/ | |
| https://www.debian.org/security/2021/dsa-4907 | Third Party Advisory |