ash に認証なしでコード実行や SQL 注入をされる脆弱性
ash は Elixir 向けのフレームワークで、3.31.3 以上 3.38.0 未満の版が対象です。認証されていない攻撃者が、偽造したページ送りのカーソルを送ることで、任意のコードの実行や SQL の注入を行える可能性があります。ash を使っている会社は、利用中の版を確認し、3.38.0 に更新してください。
概要
| CVE 番号 | CVE-2026-124283 |
|---|---|
| CVSS 基本値 | 9.8(CVSS 3.1) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 弱点の種類 | CWE-502、CWE-89 |
| NVD の公開日 | 2026年11月24日 |
| NVD の最終更新日 | 2026年11月30日 |
| 悪用 | CISA の悪用が確認された脆弱性の一覧(KEV)には載っていません(この頁の作成時点) |
対象の製品と版
| ベンダー | 製品 | 影響を受ける版 | 修正された版 |
|---|---|---|---|
| ash Hq | ash Framework | 3.31.3 以上 3.38.0 未満 | 3.38.0 |
版は NVD の CPE の記載から機械的に取っています。「未満」の版が、修正された最初の版です。
NVD の記載(原文)
Deserialization of Untrusted Data vulnerability in ash-project ash allows an unauthenticated attacker to execute arbitrary code or inject SQL through a forged keyset pagination cursor.
Ash.Page.Keyset.filter/4 in lib/ash/page/keyset.ex decodes the client-supplied page[:after] or page[:before] cursor from Erlang external term format and rejects decoded expressions with Ash.Expr.expr?/1. That check does not examine the fields of a struct. The cast of each value against the type of its sort field accepts structs for the :ci_string, :map, :struct and :term types. A struct in the cursor value for such a sort field therefore reaches the data layer. With AshPostgres, the read passes such a struct to inspect/1, which runs the Inspect implementation of the struct module that the attacker selected. A chain of struct modules from ecto and db_connection then calls a function that the cursor names, which permits OS command execution. An %Ash.Query.Function.Fragment{} inside an %Ash.CiString{} value is written into the SQL query as raw text.
This issue affects ash: from 3.31.3 before 3.38.0.
元の情報
- https://github.com/ash-project/ash/security/advisories/GHSA-m5v6-3qwf-6w9r(Exploit、Mitigation)
- https://github.com/ash-project/ash/security/advisories/GHSA-m5v6-3qwf-6w9r(Exploit、Mitigation)
- https://github.com/ash-project/ash/commit/8da3fe514975ac93682f8377c5439baefaf50bad(Patch)
- https://cna.erlef.org/cves/CVE-2026-124283.html(Exploit、Mitigation)
- https://cna.erlef.org/cves/CVE-2026-67579.html(Third Party Advisory)
- https://github.com/ash-project/ash/commit/91874dd5435bc0ffebd8a254acfa573b39b74520(Product)
- https://osv.dev/vulnerability/EEF-CVE-2026-124283(Exploit、VDB Entry)
この頁は、NVD と CISA の記録から自動で作っています。日本語の題と説明は、記録をもとに AI が書き、記録にない数字を含まないことを機械で確かめています。対処の前に、ベンダーの案内(元の情報)を必ず確かめてください。