AshAuthenticationで認証用JWTが汎用の認証に使われる脆弱性
概要
2026年8月に公表された、AshAuthenticationの認証回避の脆弱性です。サインイン用に発行されたJWTが、通常のベアラートークンとして受け入れられ、current_userとして扱われるおそれがあります。影響を受けるのはHex版ash_authenticationの3.10.5以上4.14.2未満と5.0.0-rc.0以上5.0.0-rc.13未満で、4.14.2と5.0.0-rc.13が修正版です。修正版への更新を優先して確認してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
CVE-2026-65633 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに Authorization header のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
不正な操作・情報露出のリスクがあります。
対策: ベンダー公式の修正版に更新してください。
心配なら、システム担当者や製品の公式サイトで「CVE-2026-65633」を検索してください。
CVE-2026-65633 — CWE-287
脆弱箇所: Authorization header
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
認証バイパス (CWE-287) が報告されています。攻撃者は Authorization header を経由して脆弱な処理に到達できます。
影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: Authorization header。
重要度: ?。不正な操作・情報露出のリスクがあります。
ベンダー公式アドバイザリの修正版に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1
影響範囲の特定identify
Audit SBOM/dependencies for affected components.資産台帳・SBOM・依存マニフェストで影響コンポーネントを特定する。
-
2
事後検証verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| Hexash_authentication |
3.10.5 以上 4.14.2 未満→ 4.14.2 5.0.0-rc.0 以上 5.0.0-rc.13 未満→ 5.0.0-rc.13 |
4.14.2 5.0.0-rc.13 |
| team-alembicash_authentication |
eca8cadea0f1595ed2c10a0c177b1da9aa9e5269 以上(修正版なし)→ 124eddd1bbeb40289c3fe8831ac10677a19fcf09, 8cf8b2d4426172be0900a3505e9491800b951750 |
124eddd1bbeb40289c3fe8831ac10677a19fcf09, 8cf8b2d4426172be0900a3505e9491800b951750 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Summary
Improper Authentication vulnerability in team-alembic AshAuthentication allows purpose-limited JWTs to be replayed as full bearer API credentials when a resource uses stateless bearer-token verification.
The bearer-token authentication helper AshAuthentication.Plug.Helpers.retrieve_from_bearer/3 verifies an Authorization: Bearer JWT's signature and rejects tokens containing an act claim, but performs no check that the token's purpose claim equals user at the bearer boundary. When the resource is configured with require_token_presence_for_authentication?: false (the DSL default), the follow-on validate_token/3 helper returns {:ok, nil} without consulting the token resource, so no downstream check on purpose takes place either. As a result, any valid, non-expired JWT the library itself issued for a narrow, single-purpose flow (most notably the purpose: sign_in token that WebAuthn always emits during sign-in, and that the Password strategy emits when sign-in tokens are enabled) is accepted directly as a general-purpose bearer credential and resolves to a full current_user assignment.
This bypasses the library's intended token-exchange contract, in which the sign_in token is meant to be presented exactly once to a preparation that validates the purpose claim and immediately revokes the token. The first use of a still-valid sign-in token presented directly in the Authorization header succeeds because the stateless bearer path never scopes…
出典: NIST National Vulnerability Database NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package hex.pm
- package github.com
- patch github.com
- patch github.com
- web cna.erlef.org
- web osv.dev
- web github.com
- web repo.hex.pm
- web github.com