{"id":"UBUNTU-CVE-2026-44307","details":"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.","modified":"2026-05-23T19:15:06.211456280Z","published":"2026-05-12T22:16:00Z","withdrawn":"2026-05-23T19:12:25Z","upstream":["CVE-2026-44307"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-44307"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-44307"},{"type":"REPORT","url":"https://github.com/sqlalchemy/mako/commit/72e10c573ca0fbcbddd4455abca8ce92a61780d7"},{"type":"REPORT","url":"https://github.com/sqlalchemy/mako/issues/435"},{"type":"REPORT","url":"https://github.com/sqlalchemy/mako/releases/tag/rel_1_3_12"},{"type":"REPORT","url":"https://github.com/sqlalchemy/mako/security/advisories/GHSA-2h4p-vjrc-8xpq"}],"affected":[{"package":{"name":"mako","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/mako?arch=source&distro=esm-infra%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.2+ds1-1","1.0.3+ds1-1","1.0.3+ds1-1ubuntu1","1.0.3+ds1-1ubuntu1+esm1","1.0.3+ds1-1ubuntu1+esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"python-mako","binary_version":"1.0.3+ds1-1ubuntu1+esm2"},{"binary_name":"python3-mako","binary_version":"1.0.3+ds1-1ubuntu1+esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-44307.json"}},{"package":{"name":"mako","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/mako?arch=source&distro=esm-infra%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.7+ds1-1","1.0.7+ds1-1ubuntu0.2","1.0.7+ds1-1ubuntu0.2+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-mako","binary_version":"1.0.7+ds1-1ubuntu0.2+esm1"},{"binary_name":"python3-mako","binary_version":"1.0.7+ds1-1ubuntu0.2+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-44307.json"}},{"package":{"name":"mako","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/mako?arch=source&distro=esm-infra%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.7+ds1-1","1.1.0+ds1-1","1.1.0+ds1-1ubuntu1","1.1.0+ds1-1ubuntu2","1.1.0+ds1-1ubuntu2.1","1.1.0+ds1-1ubuntu2.1+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-mako","binary_version":"1.1.0+ds1-1ubuntu2.1+esm1"},{"binary_name":"python3-mako","binary_version":"1.1.0+ds1-1ubuntu2.1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-44307.json"}},{"package":{"name":"mako","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/mako?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.3+ds1-2","1.1.3+ds1-2ubuntu0.1","1.1.3+ds1-2ubuntu0.2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-mako","binary_version":"1.1.3+ds1-2ubuntu0.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-44307.json"}},{"package":{"name":"mako","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/mako?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.4+ds-2","1.3.1-1","1.3.2-1","1.3.2-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-mako","binary_version":"1.3.2-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-44307.json"}},{"package":{"name":"mako","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/mako?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.8-2","1.3.9-1","1.3.9-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-mako","binary_version":"1.3.9-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-44307.json"}},{"package":{"name":"mako","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/mako?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.9-1","1.3.10-3","1.3.10-3build1","1.3.10-3ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-mako","binary_version":"1.3.10-3ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-44307.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"},{"type":"Ubuntu","score":"medium"}]}