1. Accueil
  2. Vulnérabilités
  3. CVE-2026-102991

CVE-2026-102991

Mako: Path traversal via drive-letter URI on Windows in TemplateLookup

Publiée le 30 sept. 2026 · modifiée le 30 sept. 2026 · Sources : NVD, CNA (éditeur ou attributeur), CERT-FR, EPSS (FIRST)

Moyen 42/100

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))
Sqlalchemy
ProduitVersionsCorrigé dansSource
Mako Versions non précisées — CNA (éditeur ou attributeur)
Pypi (2 ligne(s))
Pypi
ProduitVersionsCorrigé dansSource
mako avant 1.4.2 (exclu) 1.4.2 OSV
mako avant 1.4.2 (exclu) 1.4.2 GitHub Advisory

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

  1. — Publication de la CVE (cve)
  2. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1640)

Avis CERT-FR

Références

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

Comment sont obtenues et calculées ces données