製品・ソフトウェアに関する情報
SQLAlchemyのmakoにおけるパストラバーサルの脆弱性
Title SQLAlchemyのmakoにおけるパストラバーサルの脆弱性
Summary

MakoはPythonで書かれたテンプレートライブラリです。バージョン1.3.11より前のTemplateLookup.get_template()には、URIが//で始まる場合(例://../../../secret.txt)にパストラバーサルの脆弱性が存在していました。根本的な原因は、2つのスラッシュ削除の実装に不一致があったことです。アプリケーションが信頼できない入力を直接TemplateLookup.get_template()に渡すと、プロセスが読み取れる任意のファイルがレンダリングされたテンプレートの内容として返される可能性があります。この脆弱性はバージョン1.3.11で修正されています。

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

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

Publication Date April 23, 2026, midnight
Registration Date April 30, 2026, 11:01 a.m.
Last Update April 30, 2026, 11:01 a.m.
CVSS3.0 : 重要
Score 7.5
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected System
SQLAlchemy
mako 1.3.11 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年04月30日]
  掲載
April 30, 2026, 11:01 a.m.

NVD Vulnerability Information
CVE-2026-41205
Summary

Mako is a template library written in Python. Prior to 1.3.11, TemplateLookup.get_template() is vulnerable to path traversal when a URI starts with // (e.g., //../../../secret.txt). The root cause is an inconsistency between two slash-stripping implementations. Any file readable by the process can be returned as rendered template content when an application passes untrusted input directly to TemplateLookup.get_template(). This vulnerability is fixed in 1.3.11.

Publication Date April 24, 2026, 4:17 a.m.
Registration Date April 25, 2026, 4:06 a.m.
Last Update April 29, 2026, 4:14 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:sqlalchemy:mako:*:*:*:*:*:*:*:* 1.3.11
Related information, measures and tools
Common Vulnerabilities List