> CVE-2026-102991 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2026-09-30 20:17
MODIFIED
2026-09-30 20:17
CVSS_SCORE V3
6.5
EPSS (Prob. Exploit)
0.36%
Top 72.2%
DATA SOURCES:
NVD đź”— 2026-09-30 CWE MITRE đź”— 2026-10-01 FIRST EPSS đź”— 2026-10-20 GITHUB đź”— 2026-10-15 OSV đź”— 2026-10-07 MSRC đź”— 2026-10-11

> DESCRIPTION

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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
EXPLOITABILITY
2.2
IMPACT
4.2

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
High (H)
Conditions spécifiques doivent être réunies pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
None
Aucune interruption de service

> WEAKNESSES

CWE-22

> CWE DETAILED DESCRIPTIONS

CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') - The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

> GITHUB SECURITY ADVISORY

GHSA-5639-2j2p-m4mx MODERATE

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

AFFECTED PACKAGES:
PIP / Mako
<= 1.4.1
Fixed in: 1.4.2

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

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

AFFECTED PACKAGES:
Unknown / Unknown
80 versions affected
ALIASES:
GHSA-5639-2j2p-m4mx

> HISTORIQUE DES MODIFICATIONS

Première apparition
30/09/2026 20:17
Source: NVD
📊 ENRICHISSEMENT 01/10/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') - The product uses external input to construct a pathname that is intended to identify a file or directory that i...
Total des modifications: 1 Dernière mise à jour: 2 weeks ago

> REFERENCES

https://github.com/sqlalchemy/mako/commit/000ed85e4e48771eff460bf4fc721fb43de80e...
https://github.com/sqlalchemy/mako/issues/441
https://github.com/sqlalchemy/mako/releases/tag/rel_1_4_2
https://github.com/sqlalchemy/mako/security/advisories/GHSA-5639-2j2p-m4mx
https://github.com/sqlalchemy/mako/security/advisories/GHSA-5639-2j2p-m4mx
« BACK_TO_HOME