CVE-2024-28335
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
lektor lektorbefore 3.3.11CVE List
lektor (PyPI)before 3.3.11, from 3.4.0b1 before 3.4.0b11GitHub Advisory Database, PyPA Advisory Database

All scores

CISA-ADP9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
GitHub9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
GitHubcritical CVSS:4.0CVSS: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

CWE-22

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

SourceRecordLicence
CVE ListCVE-2024-28335 changed 2024-08-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-wv28-7fpw-fj49 changed 2024-08-06CC-BY-4.0
NVDCVE-2024-28335 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-49 changed 2026-06-10CC-BY-4.0