Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-28335: n/a

0
Critical
VulnerabilityCVE-2024-28335cvecve-2024-28335
Published: Wed Mar 27 2024 (03/27/2024, 00:00:00 UTC)
Source: CVE Database V5

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/26/2026, 11:18:57 UTC

Technical Analysis

CVE-2024-28335 is a critical vulnerability affecting Lektor, a static content management system, in versions prior to 3.3.11. The root cause is insufficient sanitization of database path inputs, specifically allowing path traversal that can lead to arbitrary file writes within the templates directory. An attacker can exploit this by tricking a user into visiting a malicious website that executes JavaScript to send HTTP requests to the victim's localhost on port 5000, where the Lektor server runs. Because the browser and Lektor server share the same machine, the attacker can add crafted files that contain shell commands to the templates directory. When Lektor processes these templates, the embedded shell commands execute, leading to remote code execution (RCE) on the victim's machine. The vulnerability requires no authentication or user interaction beyond visiting the malicious site, making it highly exploitable. The CVSS 3.1 score of 9.1 reflects the network attack vector, low attack complexity, no privileges or user interaction required, and high confidentiality and integrity impacts. The vulnerability is categorized under CWE-22 (Path Traversal). No public exploits have been reported yet, but the potential for damage is significant, especially for developers running Lektor servers locally. The vulnerability underscores the risk of exposing local development servers to browser-based attacks that leverage localhost request forgery and path traversal to achieve code execution.

Potential Impact

The impact of CVE-2024-28335 is severe for organizations and individuals using Lektor for local web development or content management. Successful exploitation results in remote code execution on the victim's machine without requiring authentication or explicit user interaction beyond visiting a malicious webpage. This can lead to full compromise of the affected system, including theft or modification of sensitive data, installation of persistent malware, or lateral movement within a network if the compromised machine is connected to organizational resources. Since the attack leverages the victim's browser to target the localhost Lektor server, it bypasses traditional network perimeter defenses. The vulnerability threatens confidentiality and integrity but does not directly affect availability. Organizations with developers or content creators running Lektor servers locally are at risk, especially if they frequently browse untrusted websites. The lack of known exploits in the wild provides a window for proactive mitigation, but the critical severity demands immediate attention to prevent potential attacks.

Mitigation Recommendations

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
mitre
Date Reserved
2024-03-08T00:00:00.000Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6d8db7ef31ef0b58855a

Added to database: 2/25/2026, 9:45:49 PM

Last enriched: 2/26/2026, 11:18:57 AM

Last updated: 4/12/2026, 9:20:40 AM

Views: 11

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses