English version →
カテゴリ
CVE-2025-53513

github.com/juju/juju に パストラバーサル (CVE-2025-53513)

概要

github.com/juju/juju に パストラバーサル (CVE-2025-53513) が存在。悪用されるとシステム全体を乗っ取られる可能性があります。PUT /model-34bb5ef0-5a3e-41d7-873c-2f884adf606d/charms/pathtw-5c9f25c 経由で攻撃可能。対策: 0.0.0-20250619215741-6356e984b82a 以上に更新。

原文の説明

取得元が公開している説明をそのまま載せています (多くは英語)。

Impact

Any user with a Juju account on a controller can upload a charm to the /charms endpoint.
No specific permissions are required - it's just sufficient for the user to exist in the controller user database.
A charm which exploits the zip slip vulnerability may be used to allow such a user to get access to a machine running a unit using the affected charm.

Details

A controller exposes three charm-related HTTP API endpoints, as follows:

  • PUT/GET https://:17070/model-/charms/-
  • POST/GET https://:17070/model-/charms
  • GET https://:17070/charms

These endpoints require Basic HTTP authentication credentials and will accept any valid user within the context of the controller. A user that has no specific permission or access granted can call all of these APIs.

To reproduce:

juju bootstrap
juju add-user testuser
juju change-user-password testuser

Download the ZIP file of an arbitrary charm eg https://github.com/juju/hello-juju-charm

Download and install the following tool: https://github.com/usdAG/slipit

Run the following command to generate a new SSH key pair: ssh-keygen

Copy the contents of the newly created public key into a file called authorized_keys

Run the following command to inject the malicious path into the ZIP file:

slipit hello.zip authorized_keys --separator ../../../../../../home/
ubuntu/.ssh/

Send the PUT request below to a model on the target con…

出典: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV

自動生成の要約

取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。

github.com/juju/juju という製品で、CVE-2025-53513 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに PUT /model-34bb5ef0-5a3e-41d7-873c-2f884adf606d/charms/pathtw-5c9f25c のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
悪用されるとシステム全体を乗っ取られる可能性があります。
対策: github.com/juju/juju を 0.0.0-20250619215741-6356e984b82a 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「github.com/juju/juju CVE-2025-53513」を検索してください。

CVE-2025-53513 (github.com/juju/juju) — CWE-22
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 被害者操作不要
脆弱箇所: PUT /model-34bb5ef0-5a3e-41d7-873c-2f884adf606d/charms/pathtw-5c9f25c / Authorization header / authorized_keys
修正バージョン: 0.0.0-20250619215741-6356e984b82a (即時適用推奨)
暫定回避: There are no known workarounds.
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。

❓ 何が問題か

github.com/juju/juju に パストラバーサル (CWE-22) があります。攻撃者は PUT /model-34bb5ef0-5a3e-41d7-873c-2f884adf606d/charms/pathtw-5c9f25c を経由して脆弱な処理に到達できます。

📍 影響範囲

github.com/juju/juju の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: PUT /model-34bb5ef0-5a3e-41d7-873c-2f884adf606d/charms/pathtw-5c9f25c / Authorization header / authorized_keys。

🔥 重要度

重要度: ?。悪用されるとシステム全体を乗っ取られる可能性があります。

🔧 修正方法

0.0.0-20250619215741-6356e984b82a に更新してください。

🛡️ 暫定回避

暫定回避: There are no known workarounds.

🔍 検知方法

Webサーバ・プロキシ・WAFのアクセスログで PUT /model-34bb5ef0-5a3e-41d7-873c-2f884adf606d/charms/pathtw-5c9f25c への異常リクエスト (不正な認証ヘッダ、SQL構文)を検索。 依存ファイル (package-lock.json/requirements.txt/go.sum) で github.com/juju/juju のバージョンを横断確認。

対応アクション

SOC/SREチームが順番に実行すべき具体的なステップとコマンド例

  1. 1
    影響範囲の特定 identify
    grep -r 'github.com/juju/juju' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で github.com/juju/juju を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    ログでの侵入兆候検索 detect
    grep 'PUT /model-34bb5ef0-5a3e-41d7-873c-2f884adf606d/charms/pathtw-5c9f25c' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'

    アクセスログで PUT /model-34bb5ef0-5a3e-41d7-873c-2f884adf606d/charms/pathtw-5c9f25c への異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。

  3. 3
    暫定回避策の適用 mitigate
    There are no known workarounds.

    パッチが適用されるまでの応急処置として、There are no known workarounds. を実施。回避策の副作用 (機能低下) を確認した上で。

  4. 4
    パッチ適用 patch
    Upgrade github.com/juju/juju to 0.0.0-20250619215741-6356e984b82a

    ステージング環境で 0.0.0-20250619215741-6356e984b82a に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。

  5. 5
    事後検証 verify
    Replay attack against PUT /model-34bb5ef0-5a3e-41d7-873c-2f884adf606d/charms/pathtw-5c9f25c on staging to confirm patch closes the vector

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。

影響パッケージ

Go github.com/juju/juju
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20250619215741-6356e984b82a"}]}]

参照URL

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