製品・ソフトウェアに関する情報
inventree projectのinventreeにおけるテンプレートエンジンで使用される特殊な要素の不適切な無効化に関する脆弱性
Title inventree projectのinventreeにおけるテンプレートエンジンで使用される特殊な要素の不適切な無効化に関する脆弱性
Summary

InvenTreeはオープンソースの在庫管理システムです。バージョン1.2.3から1.2.6において、PART_NAME_FORMATバリデーターがjinja2.sandbox.SandboxedEnvironmentを使用するようにアップグレードされましたが、実際のレンダラーは更新されておらず、サンドボックス化されていないjinja2.Environmentを使用していました。これにより、設定アクセス権を持つスタッフユーザーはバリデーションを通過しますが、レンダリング時に任意のコードを実行するテンプレートを作成できる問題が発生していました。この問題はバージョン1.2.7および1.3.0で修正されています。

Possible impacts 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃により、他のソフトウェアにも影響が及ぶ可能性があります。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 8, 2026, midnight
Registration Date April 21, 2026, 10:46 a.m.
Last Update April 21, 2026, 10:46 a.m.
CVSS3.0 : 緊急
Score 9.9
Vector CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Affected System
inventree project
inventree 1.2.3 から 1.2.6
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年04月21日]
  掲載
April 21, 2026, 10:46 a.m.

NVD Vulnerability Information
CVE-2026-35477
Summary

InvenTree is an Open Source Inventory Management System. From 1.2.3 to 1.2.6, the fix for CVE-2026-27629 upgraded the PART_NAME_FORMAT validator to use jinja2.sandbox.SandboxedEnvironment. However, the actual renderer in part/helpers.py was not updated and still uses the non-sandboxed jinja2.Environment. Additionally, the validator uses a dummy Part instance with pk=None, which allows conditional template expressions to behave differently during validation versus production rendering. A staff user with settings access can craft a template that passes validation but executes arbitrary code during rendering. This issue requires access by a user with granted staff permissions. This vulnerability is fixed in 1.2.7 and 1.3.0.

Publication Date April 9, 2026, 5:16 a.m.
Registration Date April 15, 2026, 11:32 a.m.
Last Update April 21, 2026, 12:14 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:inventree_project:inventree:*:*:*:*:*:*:*:* 1.2.3 1.2.6
Related information, measures and tools
Common Vulnerabilities List