# CVE-2024-28335: Lektor does not sanitize database path traversal

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.07%, higher than 65% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-27T00:00:00.000Z
- Modified: 2026-06-17T07:21:20.710Z
- Also known as: GHSA-wv28-7fpw-fj49, PYSEC-2024-49
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- lektor lektor: before 3.3.11
- lektor (PyPI): before 3.3.11; from 3.4.0b1 before 3.4.0b11

## Every score

- CISA-ADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 Critical `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`

## References

- <https://packetstormsecurity.com/files/177708/Lektor-Static-CMS-3.3.10-Arbitrary-File-Upload-Remote-Code-Execution.html> (exploit, web)
- <https://github.com/lektor/lektor/pull/1179/commits/8f38b9713d152622b69ff5e3b1e6a0d7bb7fa800> (web)
- <https://github.com/lektor/lektor/releases/tag/v3.3.11> (web)
- <https://cxsecurity.com/issue/WLB-2024030043> (web)
- <https://getlektor.com/docs/quickstart> (web)
- <https://brave.com/privacy-updates/27-localhost-permission/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-28335> (advisory)
- <https://github.com/lektor/lektor/commit/7393d87bd354e43120937789956175064e4610a0> (web)
- <https://brave.com/privacy-updates/27-localhost-permission> (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)

## Sources

- CVE List: [CVE-2024-28335](https://www.cve.org/CVERecord?id=CVE-2024-28335), CVE Terms of Use, modified 2024-08-06
- GitHub Advisory Database: [GHSA-wv28-7fpw-fj49](https://github.com/advisories/GHSA-wv28-7fpw-fj49), CC-BY-4.0, modified 2024-08-06
- NVD: [CVE-2024-28335](https://nvd.nist.gov/vuln/detail/CVE-2024-28335), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-49](https://osv.dev/vulnerability/PYSEC-2024-49), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-28335 · Whole record: https://cve.day/CVE-2024-28335.json · Rebuilt by cve.day 2026-11-25T22:58:37.948Z
