---
title: "CVE-2024-28335: Lektor does not sanitize database path traversal"
url: https://erroneo.us/security/cve/CVE-2024-28335/
description: "CVE-2024-28335 (Lektor (PyPI)): Lektor before 3.3.11 does not sanitize DB path traversal. Thus, shell commands might be executed via a file that is added to…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-03-27
date_modified: 2024-08-06
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-28335"
kev: false
cvss: 9.3
epss: 0.00849
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.8% , percentile 58: FIRST’s model estimates a 0.8% chance of exploitation activity in the next 30 days, higher than 58% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes Lektor (PyPI) >= 0, < 3.3.11, fixed in 3.3.11 ; Lektor (PyPI) >= 3.4.0b1, < 3.4.0b11, fixed in 3.4.0b11 . Check your lockfile, including transitive dependencies.

## What it is

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 packages

- PyPI `Lektor` >= 0, < 3.3.11 → fixed: 3.3.11
- PyPI `Lektor` >= 3.4.0b1, < 3.4.0b11 → fixed: 3.4.0b11

## Affected products (CVE record)

- n/a n/a: see advisory

## Severity

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

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.85% probability of exploitation activity in the next 30 days; percentile 58.

## Sources

- [GitHub Advisory GHSA-wv28-7fpw-fj49](https://github.com/advisories/GHSA-wv28-7fpw-fj49)
- [CVE.org record CVE-2024-28335](https://www.cve.org/CVERecord?id=CVE-2024-28335)
- [NVD entry CVE-2024-28335](https://nvd.nist.gov/vuln/detail/CVE-2024-28335)
- [github.com](https://github.com/lektor/lektor/pull/1179/commits/8f38b9713d152622b69ff5e3b1e6a0d7bb7fa800)
- [github.com](https://github.com/lektor/lektor/releases/tag/v3.3.11)
- [cxsecurity.com](https://cxsecurity.com/issue/WLB-2024030043)
- [packetstormsecurity.com](https://packetstormsecurity.com/files/177708/Lektor-Static-CMS-3.3.10-Arbitrary-File-Upload-Remote-Code-Execution.html)
- [getlektor.com](https://getlektor.com/docs/quickstart)
- [brave.com](https://brave.com/privacy-updates/27-localhost-permission/)
- [github.com](https://github.com/lektor/lektor/commit/7393d87bd354e43120937789956175064e4610a0)
- [github.com](https://github.com/pypa/advisory-database/tree/main/vulns/lektor/PYSEC-2024-49.yaml)

---
Source page: https://erroneo.us/security/cve/CVE-2024-28335/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
