compliance-trestleでテンプレート経由の遠隔コード実行のおそれ
概要
compliance-trestleの「trestle author jinja」コマンドには、描画済みの出力を再帰的に評価する脆弱性があり、データ項目に悪意あるペイロードを仕込まれると、実行中のプロセスの権限で任意のコマンドを実行されるおそれがあります。影響を受けるのは4.0.3より前の版と3.12.2より前の版です。修正版は4.0.3および3.12.3で、速やかに更新してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
compliance-trestle という製品で、CVE-2026-46439 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに render_template のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
悪用されるとシステム全体を乗っ取られる可能性があります。重要度は CVSS スコア 7.8/10 です。
対策: compliance-trestle を 4.0.3 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「compliance-trestle CVE-2026-46439」を検索してください。
CVE-2026-46439 (compliance-trestle) — CWE-1336 / CVSS v3 7.8
攻撃ベクター: ローカル / 認証不要
脆弱箇所: render_template / while / Environment / DictLoader
修正バージョン: 4.0.3 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
compliance-trestle に 脆弱性 (CWE-1336) があります。攻撃者は render_template を経由して脆弱な処理に到達し、認証なしで悪用できます。
compliance-trestle の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: render_template / while / Environment / DictLoader。
重要度: 重要 (CVSS 7.8/10)。悪用されるとシステム全体を乗っ取られる可能性があります。
4.0.3 に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1
影響範囲の特定identify
grep -r 'compliance-trestle' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
compliance-trestleを grep し、稼働しているサービス・バージョンを把握する。 -
2
パッチ適用patch
Upgrade compliance-trestle to 4.0.3ステージング環境で 4.0.3 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
事後検証verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| pipcompliance-trestle |
4.0.3 未満→ 4.0.3 |
4.0.3 |
| PyPIcompliance-trestle |
4.0.0 以上 4.0.3 未満→ 4.0.3 |
4.0.3 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
compliance-trestle is a tooling platform for managing compliance as code. Versions prior to 3.12.2 and 4.0.3 have a Server-Side Template Injection (SSTI) vulnerability exists in the trestle author jinja command. The command recursively evaluates rendered templates, allowing an attacker to achieve arbitrary command execution with privileges of the running process by injecting malicious payloads into data fields (such as SSP documents or Lookup Tables). The vulnerability does not require attacker control of the template itself. Only attacker-controlled input data rendered into a trusted template is required. This distinction is critical: the template author may only intend to render plain text (e.g., Title: {{ ssp.metadata.title }}), but because of the recursive parsing, the data field itself becomes executable. The vulnerability is caused by recursive re-compilation and re-rendering of already-rendered output. Versions 3.12.3 and 4.0.3 patch the issue.
出典: GitHub Security Advisories (Global) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com