Critical, CVSS 9.3PyPIAmendedPublished
Lektor does not sanitize database path traversal
CVE-2024-28335 · GHSA-wv28-7fpw-fj49
- Affected
- PyPI lektor < 3.3.11; >= 3.4.0b1, < 3.4.0b11
- Fixed in
- 3.4.0b113.3.11· Vendor fix available
- Issue
- 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.
Recommended action: Upgrade to 3.4.0b11 (pre-release) or 3.3.11 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.