CVE-2026-41205
HIGH7.5EPSS 0.09%Mako: Path traversal via double-slash URI prefix in TemplateLookup
發布日:2026/4/16修改日:2026/5/20
描述
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.
受影響套件(3)
- Debian/makofrom 0
- PyPI/makofrom 0, < 1.3.11
- PyPI/makofrom 0, < 1.3.11
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
參考連結(6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-41205
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2026-41205
- PATCHhttps://github.com/sqlalchemy/mako
- WEBhttps://github.com/sqlalchemy/mako/commit/e05ac61989a7fb9dd7dcde6cfd72dc48328719a3
- WEBhttps://github.com/sqlalchemy/mako/releases/tag/rel_1_3_11
- WEBhttps://github.com/sqlalchemy/mako/security/advisories/GHSA-v92g-xgxw-vvmm