本文へ移動
English version →
高 7.6

Livewire PowerGridに SQLインジェクションの脆弱性

CVE-2026-65971 SecPulse初出

概要

Livewire PowerGridの6.0.0から6.10.3までには、公開プロパティsortDirectionの値がSQLのORDER BY句にそのまま埋め込まれるため、SQLインジェクションによって任意のSQLを実行されるおそれがあります。修正版の6.10.4で対処されています。6.10.4以降へのアップデートを進めてください。公表は2026年11月11日で、悪用の情報は確認されていません。

AI要約

SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

Livewire PowerGridの6.0.0から6.10.3までには、公開プロパティsortDirectionの値がSQLのORDER BY句にそのまま埋め込まれるため、SQLインジェクションによって任意のSQLを実行されるおそれがあります。修正版の6.10.4で対処されています。6.10.4以降へのアップデートを進めてください。公表は2026年11月11日で、悪用の情報は確認されていません。

影響パッケージ

パッケージ影響を受ける版 → 修正版
Power-Componentslivewire-powergrid —
composerpower-components/livewire-powergrid
6.10.4 未満→ 6.10.4
Packagistpower-components/livewire-powergrid
6.0.0 以上 6.10.4 未満→ 6.10.4
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

[Description]

The public Livewire property sortDirection is interpolated verbatim into a
raw SQL ORDER BY clause and is not restricted to asc/desc, allowing arbitrary
SQL injection through POST /livewire/update.

Data flow

  • Source — src/Concerns/Sorting.php: public string $sortDirection; is a
    Livewire-bound property with no whitelist/validation (it is only assigned and
    flipped by reverseSort()), so it is fully attacker-controlled via the standard
    Livewire update endpoint.
  • Taint — src/DataSource/Processors/Database/Pipelines/ColumnRawQueries.php,
    resolvePlaceholders():
    preg_replace_callback('/\{(\w+)\}/', fn ($m) => data_get($this->component, $m[1], ''), $sql);
    
    substitutes {sortDirection} with the raw property value.
  • Sink — src/DataSource/Support/Sql.php::getSortSqlByDriver() builds the
    naturalSort expression, e.g. "... {sortDirection}" / "CAST(...) {sortDirection}",
    which is passed to orderByRaw(). The tainted direction lands directly in the SQL
    string.

Why the framework mitigation does not apply (the bypass)

Normally the Sorting pipeline calls orderBy(resolveSortField($sortField), $sortDirection),
and Laravel validates the direction (Order direction must be "asc" or "desc".).
Setting sortField="" makes the Sorting pipeline skip (filled('') is false),
so the validating orderBy never runs — but the ColumnRawQueries pipeline still
applies the naturalSort `o…

出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく