Advisory

GHSA-wv28-7fpw-fj49

Also known as: CVE-2024-28335, PYSEC-2024-49

Summary

Lektor does not sanitize database path traversal

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2024-03-27 06:30 UTC
Modified
2024-08-06 19:00 UTC

Affected packages and fixes

lektor

PyPI · All systems

Affected

  • introduced 0, fixed 3.3.11 (ecosystem)

Fixed versions

3.3.11

Fix

  • Fixed version 3.3.11
    pip install --upgrade lektor==3.3.11

lektor

PyPI · All systems

Affected

  • introduced 3.4.0b1, fixed 3.4.0b11 (ecosystem)

Fixed versions

3.4.0b11

Fix

  • Fixed version 3.4.0b11
    pip install --upgrade lektor==3.4.0b11

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences