9.1critical
Lektor does not sanitize database path traversal
- Severity
- 9.1critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.07% (higher than 65% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-wv28-7fpw-fj49PYSEC-2024-49
Description
Lektor before 3.3.11 does not sanitize DB path traversal. Thus, shell commands might be executed via a file that is added to the templates directory, if the victim's web browser accesses an untrusted website that uses JavaScript to send requests to localhost port 5000, and the web browser is running on the same machine as the "lektor server" command.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| lektor lektor | before 3.3.11 | CVE List |
| lektor (PyPI) | before 3.3.11, from 3.4.0b1 before 3.4.0b11 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| CISA-ADP | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
What each source says
CVE List
Lektor before 3.3.11 does not sanitize DB path traversal. Thus, shell commands might be executed via a file that is added to the templates directory, if the victim's web browser accesses an untrusted website that uses JavaScript to send requests to localhost port 5000, and the web browser is running on the same machine as the "lektor server" command.
NVD (es)
Lektor anterior a 3.3.11 no sanitiza el path traversal de la base de datos. Por lo tanto, los comandos de shell pueden ejecutarse a través de un archivo que se agrega al directorio de plantillas, si el navegador web de la víctima accede a un sitio web que no es de confianza y que usa JavaScript para enviar solicitudes al puerto localhost 5000, y el navegador web se ejecuta en la misma máquina que el Comando "servidor lector".
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-28335 changed 2024-08-06 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wv28-7fpw-fj49 changed 2024-08-06 | CC-BY-4.0 |
| NVD | CVE-2024-28335 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2024-49 changed 2026-06-10 | CC-BY-4.0 |