Affected versions
Version ranges need review.
PyPIlektor
- Affected versions
- >= 0, < 3.3.11
- Fixed version
- 3.3.11
PyPIlektor
- Affected versions
- >= 3.4.0b1, < 3.4.0b11
- Fixed version
- 3.4.0b11
PyPIlektor
- Affected versions
- <3.3.11 || =0.96 || =1.0 || =1.1 || =1.2 || =1.2.1 || =2.0 || =2.1 || =2.2 || =2.3 || =3.0 || =3.0.1 || =3.1 || =3.1.0.dev1 || =3.1.1 || =3.1.2 || =3.1.3 || =3.2.0 || =3.2.1 || =3.2.2 || =3.2.3 || =3.2.dev0 || =3.3.0 || =3.3.1 || =3.3.10 || =3.3.2 || =3.3.3 || =3.3.4 || =3.3.5 || =3.3.6 || =3.3.7 || =3.3.8 || =3.3.9
- Fixed version
- 3.3.11
Exploitation
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.
Links
- https://brave.com/privacy-updates/27-localhost-permission
- https://brave.com/privacy-updates/27-localhost-permission/
- https://cxsecurity.com/issue/WLB-2024030043
- https://getlektor.com/docs/quickstart
- https://github.com/advisories/GHSA-wv28-7fpw-fj49
- https://github.com/lektor/lektor/commit/7393d87bd354e43120937789956175064e4610a0
- https://github.com/lektor/lektor/pull/1179/commits/8f38b9713d152622b69ff5e3b1e6a0d7bb7fa800
- https://github.com/lektor/lektor/releases/tag/v3.3.11
- https://github.com/pypa/advisory-database/tree/main/vulns/lektor/PYSEC-2024-49.yaml
- https://nvd.nist.gov/vuln/detail/CVE-2024-28335
- https://packetstormsecurity.com/files/177708/Lektor-Static-CMS-3.3.10-Arbitrary-File-Upload-Remote-Code-Execution.html

