com.thoughtworks.xstream:xstream に OSコマンドインジェクション (CVE-2020-26259)
概要
com.thoughtworks.xstream:xstream に OSコマンドインジェクション (CVE-2020-26259) が存在。データの不正な改ざんを許す可能性があります。対策: 1.4.15 以上に更新。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
Impact
The vulnerability may allow a remote attacker to delete arbitrary know files on the host as log as the executing process has sufficient rights only by manipulating the processed input stream.
Patches
If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.15.
Workarounds
The reported vulnerability does only exist with a JAX-WS runtime on the classpath.
No user is affected, who followed the recommendation to setup XStream's Security Framework with a whitelist! Anyone relying on XStream's default blacklist can immediately switch to a whilelist for the allowed types to avoid the vulnerability.
Users of XStream 1.4.14 or below who still insist to use XStream default blacklist - despite that clear recommendation - can use a workaround depending on their version in use.
Users of XStream 1.4.14 can simply add two lines to XStream's setup code:
xstream.denyTypes(new String[]{ "jdk.nashorn.internal.objects.NativeString" });
xstream.denyTypesByRegExp(new String[]{ ".*\\.ReadAllStream\\$FileStream" });
Users of XStream 1.4.14 to 1.4.13 can simply add three lines to XStream's setup code:
xstream.denyTypes(new String[]{ "javax.imageio.ImageIO$ContainsFilter", "jdk.nashorn.internal.objects.NativeString" });
xstream.denyTypes(new Class[]{ java.lang.ProcessBuilder.class });
xstream.denyTypesByRegExp(new String[]{ ".*\\.ReadAllStream\\$File…
出典: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
com.thoughtworks.xstream:xstream という製品で、CVE-2020-26259 という番号がついた弱点 (脆弱性) が見つかりました。
データの不正な改ざんを許す可能性があります。重要度は CVSS スコア 6.8/10 です。
対策: com.thoughtworks.xstream:xstream を 1.4.15 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「com.thoughtworks.xstream:xstream CVE-2020-26259」を検索してください。
CVE-2020-26259 (com.thoughtworks.xstream:xstream) — CWE-78 / CVSS v3 6.8
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 認証不要 / 被害者操作不要
修正バージョン: 1.4.15 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
com.thoughtworks.xstream:xstream に OSコマンドインジェクション (CWE-78) があります。
com.thoughtworks.xstream:xstream の影響バージョンはベンダーのアドバイザリで確認してください。
重要度: 中 (CVSS 6.8/10)。データの不正な改ざんを許す可能性があります。
1.4.15 に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
Audit SBOM/dependencies for affected components.資産台帳・SBOM・依存マニフェストで com.thoughtworks.xstream:xstream を使っているサービスとバージョンを洗い出す。
-
2パッチ適用 patch
Upgrade com.thoughtworks.xstream:xstream to 1.4.15ステージング環境で 1.4.15 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3事後検証 verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
参照URL
- advisory github.com
- advisory lists.debian.org
- advisory security.netapp.com
- advisory debian.org
- advisory nvd.nist.gov
- exploit x-stream.github.io
- mailing lists.apache.org
- mailing lists.fedoraproject.org
- mailing lists.fedoraproject.org
- mailing lists.fedoraproject.org
- package github.com
- web lists.apache.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web security.netapp.com