Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Lektor
  4. ›
  5. CVE-2024-28335

CVE-2024-28335: Lektor does not sanitize database path traversal

March 27, 2024

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

  • brave.com/privacy-updates/27-localhost-permission
  • cxsecurity.com/issue/WLB-2024030043
  • getlektor.com/docs/quickstart
  • github.com/advisories/GHSA-wv28-7fpw-fj49
  • github.com/lektor/lektor/commit/7393d87bd354e43120937789956175064e4610a0
  • github.com/lektor/lektor/pull/1179/commits/8f38b9713d152622b69ff5e3b1e6a0d7bb7fa800
  • github.com/lektor/lektor/releases/tag/v3.3.11
  • github.com/pypa/advisory-database/tree/main/vulns/lektor/PYSEC-2024-49.yaml
  • nvd.nist.gov/vuln/detail/CVE-2024-28335
  • packetstormsecurity.com/files/177708/Lektor-Static-CMS-3.3.10-Arbitrary-File-Upload-Remote-Code-Execution.html

Code Behaviors & Features

Detect and mitigate CVE-2024-28335 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.4.0b1 before 3.4.0b11, all versions before 3.3.11

Fixed versions

  • 3.3.11
  • 3.4.0b11

Solution

Upgrade to versions 3.3.11, 3.4.0b11 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/Lektor/CVE-2024-28335.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:23 +0000.