CVE-2022-24828 | Missing input validation can lead to command execution in composer

Composer is a dependency manager for the PHP programming language. Integrators using Composer code to call `VcsDriver::getFileContent` can have a code injection vulnerability if the user can control the `$file` or `$identifier` argument. This leads to a vulnerability on packagist.org for example where the composer.json's `readme` field can be used as a vector for injecting parameters into hg/Mercurial via the `$file` argument, or git via the `$identifier` argument if you allow arbitrary data there (Packagist does not, but maybe other integrators do). Composer itself should not be affected by the vulnerability as it does not call `getFileContent` with arbitrary data into `$file`/`$identifier`. To the best of our knowledge this was not abused, and the vulnerability has been patched on packagist.org and Private Packagist within a day of the vulnerability report.

公開: 2022-04-13 最終更新: 2026-06-17 Assigner: [email protected] ソース: [email protected]

総合評価: CVE-2022-24828 は中リスク(61.1/100)。CVSS 深刻度は高。悪用される可能性が高い(EPSS 1.78%、75 パーセンタイル) 根拠: 直近 1 日で EPSS が +1.57% 上昇。悪用への関心が高まっている可能性があります。 推奨対応: 影響資産を整理し、修補計画に組み込んでください。

リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。

CVE-2022-24828 の EPSS(Exploit Prediction Scoring System)スコア

EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。

# 日付 旧 EPSS スコア 新 EPSS スコア Δ(新 − 旧)
1 2026-06-15 0.21% 1.78% +1.57%
2 2026-05-28 0.28% 0.21% -0.07%
3 2026-05-27 0.28%

EPSS の全履歴 (全 30 件)

CVE-2022-24828 の CVSS(Common Vulnerability Scoring System)指標

この CVE の CVSS 指標。

ベーススコア バージョン 深刻度 ベクトル 悪用しやすさ 影響 スコアの出典
8.3 3.1 HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H クリックして展開
攻撃ベクター (AV:N)
インターネットなど、ルーティングされたネットワーク越しに遠隔から悪用しうる。端末の前にいる必要はない。
攻撃の複雑さ (AC:H)
到達できても、タイミング・負荷・周辺設定など、揃わないと成功しない局面が多い。
必要な権限 (PR:N)
事前のログインや昇格は不要で、匿名アクセスのまま踏み台にしうる。
ユーザーの関与 (UI:R)
インストールの許可、設定変更、悪意あるファイルの実行など、人の一度の判断がトリガーになる。
スコープ (S:C)
脆弱箇所を足がかりに、別コンポーネントや別権限域まで影響が広がりうる。
機密性への影響 (C:H)
広範な機微データの読み取りや持ち出しが現実的。
完全性への影響 (I:H)
権限の奪取や広範なログ改竄など、システムの信頼根拠を揺るがす改ざんが現実的。
可用性への影響 (A:H)
長時間のサービス停止、データ損壊による復旧不能に近い状態など、利用者に著しい不便を与えうる。
1.6 6.0 [email protected]
8.8 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H クリックして展開
攻撃ベクター (AV:N)
インターネットなど、ルーティングされたネットワーク越しに遠隔から悪用しうる。端末の前にいる必要はない。
攻撃の複雑さ (AC:L)
攻撃者が条件を満たせば、レース条件や珍しい構成に依存せずに再現しやすい。
必要な権限 (PR:N)
事前のログインや昇格は不要で、匿名アクセスのまま踏み台にしうる。
ユーザーの関与 (UI:R)
インストールの許可、設定変更、悪意あるファイルの実行など、人の一度の判断がトリガーになる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:H)
広範な機微データの読み取りや持ち出しが現実的。
完全性への影響 (I:H)
権限の奪取や広範なログ改竄など、システムの信頼根拠を揺るがす改ざんが現実的。
可用性への影響 (A:H)
長時間のサービス停止、データ損壊による復旧不能に近い状態など、利用者に著しい不便を与えうる。
2.8 5.9 [email protected]
6.8 2.0 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P クリックして展開
アクセス経路 (AV:N)
ルーティング可能なネットワーク越しに、遠隔から到達・悪用しうる。
アクセスの複雑さ (AC:M)
多少の有利条件は要るが、極端なレアケースではない。
認証 (AU:N)
認証を経ずに攻撃を完結できる。
機密性への影響 (C:P)
機密性は部分的に損なわれる。
完全性への影響 (I:P)
完全性は部分的に損なわれる。
可用性への影響 (A:P)
可用性は部分的に損なわれる。
8.6 6.4 [email protected]

CVE-2022-24828 の弱点分類(列挙)

CVE-2022-24828 の GitHub Security Advisory

GHSA-x7cr-6qr6-2hh6 · 深刻度: high · エコシステム: composer — Missing input validation can lead to command execution in composer

CVE-2022-24828 の OS トラッカー

vendor priority summary link
alpine high CVE-2022-24828: 1 source package rows (composer); 11 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 4. https://security.alpinelinux.org/vuln/CVE-2022-24828
debian not yet assigned CVE-2022-24828 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-2022-24828
gentoo normal CVE-2022-24828: 1 GLSA(s) (202508-06), 1 atom(s) (dev-php/composer); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2022-24828
suse high CVE-2022-24828 severity important: SUSE including 7 source package names (8-4.1:php-composer2-2.2.3-150400.3.3.1, latest:php-composer2-2.2.3-150400.3.3.1, …), 15 product×package rows across 11 product lines (Container bci/php, Container bci/php-apache, … (11 product lines)): Fixed 15. https://www.suse.com/security/cve/CVE-2022-24828/
ubuntu medium CVE-2022-24828 medium priority: Ubuntu including 1 source packages (composer), 14 status rows across 14 suites (bionic, focal, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): released 5, ignored 4, not-affected 4, DNE 1. https://ubuntu.com/security/CVE-2022-24828

CVE-2022-24828 の影響を受けるソフトウェア/構成

ベンダー 製品 バージョン 生の CPE
getcomposer composer < 1.10.26 cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*
getcomposer composer >= 2.0.0, < 2.2.12 cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*
getcomposer composer >= 2.3.0, < 2.3.5 cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*
tenable tenable.sc < 5.21.0 cpe:2.3:a:tenable:tenable.sc:*:*:*:*:*:*:*:*
fedoraproject fedora 34 cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
fedoraproject fedora 35 cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
fedoraproject fedora 36 cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*

CVE-2022-24828 の参考情報

cvelogic Threat Intelligence