Skip to content
OpenAdvisories
Critical · 9.1 CVE-2024-28335 EUVD-2024-0092GHSA-wv28-7fpw-fj49PYSEC-2024-49

Lektor does not sanitize database path traversal

Published Mar 27, 2024 · Updated Aug 6, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 25.10 lektor No fix yet —
Ubuntu 24.04 LTS lektor No fix yet —
Ubuntu 22.04 LTS lektor No fix yet —
Ubuntu 20.04 LTS lektor No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI lektor < 3.3.11 3.3.11 GHSA-wv28-7fpw-fj49
PyPI lektor >= 3.4.0b1, < 3.4.0b11 3.4.0b11 GHSA-wv28-7fpw-fj49

References