Mako: Path traversal via backslash URI on Windows in TemplateLookup
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22 and the CVSS impact.
Summary
Mako is a template library written in Python. Prior to 1.3.12, on Windows, a URI using backslash traversal (e.g. \..\..\ secret.txt) bypasses the directory traversal check in Template.__init__ and the posixpath-based normalization in TemplateLookup.get_template(), allowing reads of files outside the configured template directory. This vulnerability is fixed in 1.3.12.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sqlalchemy | mako | before 1.3.12 | 1.3.12 | Patch available | CNA |
| — | Mako (PyPI) | before 1.3.12 | 1.3.12 | Patch available | GHSA-2h4p-vjrc-8xpq |
- mako Vendorsqlalchemy Affected before 1.3.12 Fixed in 1.3.12 Patch available CNA
- Mako (PyPI) Vendor— Affected before 1.3.12 Fixed in 1.3.12 Patch available GHSA-2h4p-vjrc-8xpq
Remediation
- Fix · CNA mako (sqlalchemy) Fixed in 1.3.12
- Fix · GHSA-2h4p-vjrc-8xpq Mako (PyPI) Fixed in 1.3.12 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ceph Storage 7 | Affected | No fix yet: Fix deferred |
| Red Hat Ceph Storage 8 | Affected | No fix yet: Fix deferred |
Not affected: 8 products
- Exploit Intelligence
- Migration Toolkit for Applications 8
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift AI (RHOAI)
- Red Hat Quay 3
- Red Hat Satellite 6
Timeline
- 2026-10-02 Threatist record created from CVE-2026-44307
- 2026-10-03 Alias added: GHSA-2h4p-vjrc-8xpq
- 2026-10-24 Affected versions changed · Red Hat
References
Other 5
More sqlalchemy vulnerabilities
- TI-2026-65548 Mako: Path traversal via drive-letter URI on Windows in TemplateLookup CVSS 3.1MEDIUM 6.5
- TI-2019-05082 SQLAlchemy through 1.2.17 and 1.3.x through 1.3.0b2 allows SQL Injection via the order_by parameter. CVSS 3.1CRITICAL 9.8
- TI-2019-05329 SQLAlchemy 1.2.17 has SQL Injection when the group_by parameter can be controlled. CVSS 3.1HIGH 7.8
- TI-2012-00742 Multiple SQL injection vulnerabilities in SQLAlchemy before 0.7.0b4, as used in Keystone… CVSS 2.0HIGH 7.5
- TI-2022-18951 Sqlalchemy mako before 1.2.2 is vulnerable to Regular expression Denial of Service when… CVSS 3.1HIGH 7.5
- TI-2026-29824 Mako: Path traversal via double-slash URI prefix in TemplateLookup CVSS 4.0HIGH 7.7
Sources
- CVE-2026-44307 · CVE Program
- CVE-2026-44307 · NVD
- FIRST EPSS
- GHSA-2h4p-vjrc-8xpq · GitHub Advisory Database · CC BY 4.0
- CVE-2026-44307 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences