- Accueil
- Vulnérabilités
- CVE-2026-102991
CVE-2026-102991
Mako: Path traversal via drive-letter URI on Windows in TemplateLookup
Résumé
Mako is a template library written in Python. Prior to 1.4.2, on Windows, TemplateLookup.get_template() in mako/lookup.py resolves template URIs with posixpath, while Template.__init__() in mako/template.py validates them with os.path, which uses ntpath. A URI beginning with a drive designator causes ntpath to absorb the traversal segments before the leading dot-dot check, while posixpath resolution can escape the configured template directory. An application that passes attacker-controlled template names or include paths can disclose process-readable files on the same volume, and a targeted file containing Mako template syntax may also be parsed and executed as a template. Raw URL paths are generally normalized before reaching this form, but query strings, form or JSON bodies, route parameters, and dynamic include expressions can preserve it. This issue is fixed in version 1.4.2.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Sqlalchemy (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| Mako | Versions non précisées | — | CNA (éditeur ou attributeur) |
Correctif
Mise à jour — PyPI/mako 1.4.2source officielle
Source : OSV
Mise à jour — PyPI/mako 1.4.2source officielle
Source : GitHub Advisory
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Exploit signalé par les sources
Ces liens sont étiquetés « exploit » par le NVD ou par CVE.org. Nous ne les avons pas vérifiés ni copiés ; ouvrez-les avec prudence.
Chronologie
- — Publication de la CVE (cve)
- — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1640)
Avis CERT-FR
- CERTFR-2026-AVI-1640 — Multiples vulnérabilités dans les produits IBM (27 novembre 2026) 27 nov. 2026
- PYSEC-2026-4243 — Mako: Path traversal via drive-letter URI on Windows in TemplateLookup 15 oct. 2026
- GHSA-5639-2j2p-m4mx — Mako: Path traversal via drive-letter URI on Windows in TemplateLookup 5 oct. 2026
Références
- https://github.com/sqlalchemy/mako/commit/000ed85e4e48771eff460bf4fc721fb43de80e08x_refsource_MISC
- https://github.com/sqlalchemy/mako/issues/441x_refsource_MISC
- https://github.com/sqlalchemy/mako/releases/tag/rel_1_4_2x_refsource_MISC
- https://github.com/sqlalchemy/mako/security/advisories/GHSA-5639-2j2p-m4mxexploit
- https://nvd.nist.gov/vuln/detail/CVE-2026-102991ADVISORY
- https://github.com/sqlalchemy/makoPACKAGE
- https://pypi.org/project/makoPACKAGE
- https://github.com/advisories/GHSA-5639-2j2p-m4mxADVISORY
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- NVD
- Vecteur CVSS
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N(CVSS 3.1, CNA:GitHub_M)- Faiblesse
- CWE-22 · Traversée de chemin / fichiers