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
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | lektor | < 3.3.11 | 3.3.11 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-28335
- https://github.com/lektor/lektor/pull/1179/commits/8f38b9713d152622b69ff5e3b1e6a0d7bb7fa800
- https://github.com/lektor/lektor/commit/7393d87bd354e43120937789956175064e4610a0
- https://brave.com/privacy-updates/27-localhost-permission
- https://cxsecurity.com/issue/WLB-2024030043
- https://getlektor.com/docs/quickstart
- https://github.com/lektor/lektor/releases/tag/v3.3.11
- https://github.com/pypa/advisory-database/tree/main/vulns/lektor/PYSEC-2024-49.yaml
- https://packetstormsecurity.com/files/177708/Lektor-Static-CMS-3.3.10-Arbitrary-File-Upload-Remote-Code-Execution.html
- https://brave.com/privacy-updates/27-localhost-permission/
- https://github.com/advisories/GHSA-wv28-7fpw-fj49
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N- Weakness (CWE)
CWE-22- Platform
- Python (PyPI)
- Package
lektor- Disclosed
- 27.03.2024
- Updated
- 11.10.2026 12:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-wv28-7fpw-fj49 - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2024-49 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: lektor
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.