CVE-2024-28335: lektor · Path Traversal
Affects lektorSource CVE Database V5
Not known to be exploited · CVSS 9.1 Critical : upgrade to 3.3.11 as a priority.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 57% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.3.11
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 27 Mar 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade lektor to 3.3.11.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIlektorpkg:pypi/lektorOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-28335, organizations and users should immediately upgrade Lektor to version 3.3.11 or later, where the path traversal flaw is fixed. Until patching is possible, restrict access to localhost port 5000 by configuring local firewalls or network policies to block unauthorized inbound connections. Disable or stop the Lektor server when not actively used to reduce the attack surface. Employ browser security features such as disabling or restricting JavaScript execution on untrusted sites, or using browser extensions that block localhost requests from external websites. Educate users about the risks of visiting untrusted websites while running local development servers. Additionally, consider running Lektor in isolated environments or containers with limited permissions to contain potential exploitation. Monitoring local server logs for suspicious requests to the templates directory can help detect attempted exploitation. Implementing Content Security Policy (CSP) headers and other browser hardening techniques can further reduce the risk of localhost request forgery attacks.
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.
References
- github.com/lektor/lektor/pull/1179/commits/8f38b9713d152622b69ff5e3b1e6a0d7bb7fa800 (opens in a new tab)
- github.com/lektor/lektor/releases/tag/v3.3.11 (opens in a new tab)
- cxsecurity.com/issue/WLB-2024030043 (opens in a new tab)
- packetstormsecurity.com/files/177708/Lektor-Static-CMS-3.3.10-Arbitrary-File-Upload-Remote-Code-Execution.html (opens in a new tab)
- getlektor.com/docs/quickstart (opens in a new tab)
- brave.com/privacy-updates/27-localhost-permission/ (opens in a new tab)