{"id":"CVE-2024-28335","published":"2024-03-27T00:00:00Z","modified":"2024-08-06T15:08:26Z","title":"Lektor before 3.3.11 does not sanitize DB path traversal","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00842,"percentile":0.58799,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/lektor/lektor/pull/1179/commits/8f38b9713d152622b69ff5e3b1e6a0d7bb7fa800","tags":[]},{"url":"https://github.com/lektor/lektor/releases/tag/v3.3.11","tags":[]},{"url":"https://cxsecurity.com/issue/WLB-2024030043","tags":[]},{"url":"https://packetstormsecurity.com/files/177708/Lektor-Static-CMS-3.3.10-Arbitrary-File-Upload-Remote-Code-Execution.html","tags":[]},{"url":"https://getlektor.com/docs/quickstart","tags":[]},{"url":"https://brave.com/privacy-updates/27-localhost-permission/","tags":[]}],"priority":{"score":23.1,"factors":[{"name":"EPSS percentile","points":11.76},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.37}]},"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-08-06T15:03:17.865791Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Lektor","vulnerableRanges":["<3.3.11",">=3.4.0b1, <3.4.0b11"],"patched":["3.3.11","3.4.0b11"],"from":["GHSA-wv28-7fpw-fj49","PYSEC-2024-49"],"provenance":"source"}],"summary":{"text":"Lektor before 3.3.11 fails to sanitize path traversal in its database handling, a flaw affecting the Lektor static site generator. An attacker can exploit it to place a file in the templates directory that leads to shell command execution, but only if the victim runs the \"lektor server\" command on the same machine and their web browser visits a malicious website whose JavaScript sends requests to localhost port 5000.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:39:50Z"},"euvd":{"id":"EUVD-2024-0092","exploited":false,"provenance":"source"},"exploitRefs":["https://packetstormsecurity.com/files/177708/Lektor-Static-CMS-3.3.10-Arbitrary-File-Upload-Remote-Code-Execution.html"]}