CVE-2024-28335
CRITICAL 9.1CVSS 3.1Lektor does not sanitize database path traversal
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.
- Published
- 27 Mar 2024
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-22
- Also known as
- GHSA-wv28-7fpw-fj49PYSEC-2024-49
- Sources
- NVDJSONOSV GHSA-wv28-7fpw-fj49JSONOSV PYSEC-2024-49JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | lektor | < 3.3.11 | 3.3.11 |
| OSV | PyPI | lektor | >= 3.4.0b1, < 3.4.0b11 | 3.4.0b11 |
References
- https://brave.com/privacy-updates/27-localhost-permission/ · WEB
- https://cxsecurity.com/issue/WLB-2024030043 · WEB
- https://getlektor.com/docs/quickstart · WEB
- https://github.com/lektor/lektor/pull/1179/commits/8f38b9713d152622b69ff5e3b1e6a0d7bb7fa800 · WEB
- https://github.com/lektor/lektor/releases/tag/v3.3.11 · WEB
- https://packetstormsecurity.com/files/177708/Lektor-Static-CMS-3.3.10-Arbitrary-File-Upload-Remote-Code-Execution.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-28335 · ADVISORY
- https://github.com/lektor/lektor/commit/7393d87bd354e43120937789956175064e4610a0 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/lektor/PYSEC-2024-49.yaml · WEB
- https://github.com/advisories/GHSA-wv28-7fpw-fj49 · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 27 Mar 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 Mar 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 Mar 2024)