CVE-2024-28335 json
Lektor does not sanitize database path traversal
published 2024-03-27 2 y ago modified 2026-06-17 4 mo ago also GHSA-wv28-7fpw-fj49 , PYSEC-2024-49 , EUVD-2024-0092
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi lektor 3.3.11, 3.4.0b11
- lektor lektor 3.3.11
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.84% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | lektor | <3.3.11 >=3.4.0b1, <3.4.0b11 |
3.3.11 3.4.0b11 |
Affected products
- lektor lektor
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/lektor/lektor/pull/1179/commits/8f38b9713d152622b69ff5e3b1e6a0d7bb7fa800
web
-
github.com
/lektor/lektor/commit/7393d87bd354e43120937789956175064e4610a0
web
-
github.com
/lektor/lektor/releases/tag/v3.3.11
web
-
cxsecurity.com
/issue/WLB-2024030043
web
-
packetstormsecurity.com
/files/177708/Lektor-Static-CMS-3.3.10-Arbitrary-File-Upload-Remote-Code-Execution.html
web
-
getlektor.com
/docs/quickstart
web
-
brave.com
/privacy-updates/27-localhost-permission/
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-28335
advisory
-
brave.com
/privacy-updates/27-localhost-permission
web
-
github.com
/pypa/advisory-database/tree/main/vulns/lektor/PYSEC-2024-49.yaml
web
-
github.com
/advisories/GHSA-wv28-7fpw-fj49
advisory
Sources
- CVE List CVE-2024-28335
- GitHub Advisory GHSA-wv28-7fpw-fj49
- NVD CVE-2024-28335
- OSV PYSEC-2024-49
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.