SecurityContext

CVE-2024-28335: Lektor - Command Injection

  • Cve: CVE-2024-28335
  • Name: Lektor - Command Injection
  • 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.
  • Impact: Attackers can execute arbitrary shell commands on the server, potentially leading to full system compromise.
  • Remediation: Update to version 3.3.11 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Victim's browser accesses untrusted website and sends requests to localhost port 5000 on the same machine as the lektor server.
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Epss score: 0.00842
  • Epss percentile: 0.58838
  • Assignee: [email protected]
  • Published at: 2024-03-27T06:15:19Z
  • Age in days: 972
  • Modified at: 2026-06-17T07:21:20Z
  • Patch available: yes
  • References total: 6
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-28335
  • Nvd status: deferred
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://brave.com/privacy-updates/27-localhost-permission/
https://cxsecurity.com/issue/WLB-2024030043
https://getlektor.com/docs/quickstart
https://github.com/lektor/lektor/pull/1179/commits/8f38b9713d152622b69ff5e3b1e6a0d7bb7fa800
https://github.com/lektor/lektor/releases/tag/v3.3.11
https://packetstormsecurity.com/files/177708/Lektor-Static-CMS-3.3.10-Arbitrary-File-Upload-Remote-Code-Execution.html

Products

ProductAffectedPlatform boundSourcesUrl
lektor:lektor< 3.3.11noadp_cpes/v1/products/lektor/lektor

Projects

RepositoryLink kindsIndexedUrl
lektor/lektorcommit, fix, pull, releasesyes/v1/repositories/lektor/lektor

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Exploitation seen: yes
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts