Skip to main content
VulnerabilityPublished Updated

CVE-2024-28335: lektor · Path Traversal

Affects lektorSource CVE Database V5

0

Not known to be exploited · CVSS 9.1 Critical : upgrade to 3.3.11 as a priority.

Data as of 26 Oct 2026, 11:42 UTC

CVSS 3.1 base score
9.1Critical
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Mar 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
PyPIlektorpkg:pypi/lektorOther threatsAffected
  • <3.3.11
Fixed in
  • 3.3.11

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

Community reviews

Loading reviews…