CVE-2024-28335
Lektor 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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
9.1
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.
- Record
CVE-2024-28335- 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 - Weakness
- CWE-22
- Updated
- 2026-11-02
EUVDEUVD-2024-0092
9.1
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.
- Record
EUVD-2024-0092- 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 - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-wv28-7fpw-fj49
9.3
Lektor 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.
- Record
GHSA-wv28-7fpw-fj49- CVSS 4.0
- 9.3 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 - 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 - Weakness
- CWE-22
- Updated
- 2026-11-02
NVD
9.1
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.
- Record
CVE-2024-28335- 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 - Weakness
- CWE-22
- Updated
- 2026-11-02
OSV
9.1
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.
- Record
CVE-2024-28335- 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 - Updated
- 2026-11-02
OSVGHSA-wv28-7fpw-fj49
9.3
Lektor 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.
- Record
GHSA-wv28-7fpw-fj49- CVSS 4.0
- 9.3 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 - 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 - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-28335
9.1
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.
- Record
UBUNTU-CVE-2024-28335- 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 - Updated
- 2026-11-02
OSVPYSEC-2024-49 No score
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.
- Record
PYSEC-2024-49- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
lektorPyPI |
before 3.3.11 | 3.3.11 |
lektorPyPI |
3.4.0b1 up to 3.4.0b11 | 3.4.0b11 |
lektorPyPI |
before 3.3.11, plus listed versions 0.961.01.11.21.2.1 Show 27 moreShow less2.02.12.22.33.03.0.13.13.1.0.dev13.1.13.1.23.1.33.2.03.2.13.2.23.2.33.2.dev03.3.03.3.13.3.103.3.23.3.33.3.43.3.53.3.63.3.73.3.83.3.9 |
3.3.11 |
lektorPyPI |
3.4.0b1 up to 3.4.0b11, plus listed versions 3.4.0b103.4.0b23.4.0b33.4.0b43.4.0b5 Show 4 moreShow less3.4.0b63.4.0b73.4.0b83.4.0b9 |
3.4.0b11 |
lektorUbuntu:20.04:LTS |
All versions, plus listed versions 3.1.1-13.1.3-1 |
None known |
lektorUbuntu:22.04:LTS |
All versions, plus listed versions 3.1.3-1 |
None known |
lektorUbuntu:24.04:LTS |
All versions, plus listed versions 3.3.7-13.3.7-2 |
None known |
lektorUbuntu:25.10 |
All versions, plus listed versions 3.3.7-2.13.3.12-1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-28335 is a critical vulnerability (CVSS 9.1) in Lektor, published March 27, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.84%, the 58th percentile. Fixed in lektor 3.3.11.
References
github.com/lektor/lektor/pull/1179/commits/8f38b9713d152622b69ff5e3b1e6a0d7bb7fa800
github.com/lektor/lektor/releases/tag/v3.3.11
cxsecurity.com/issue/WLB-2024030043
packetstormsecurity.com/files/177708/Lektor-Static-CMS-3.3.10-Arbitrary-File-Upload-Remote-Code-Execution.html
getlektor.com/docs/quickstart
brave.com/privacy-updates/27-localhost-permission
Show 7 moreShow less
nvd.nist.gov/vuln/detail/CVE-2024-28335
github.com/lektor/lektor/commit/7393d87bd354e43120937789956175064e4610a0
github.com/pypa/advisory-database/tree/main/vulns/lektor/PYSEC-2024-49.yaml
github.com/advisories/GHSA-wv28-7fpw-fj49
github.com/CVEProject/cvelistV5/tree/main/cves/2024/28xxx/CVE-2024-28335.json
ubuntu.com/security/CVE-2024-28335
cve.org/CVERecord?id=CVE-2024-28335