{"id":"CVE-2024-28335","aliases":["CVE-2024-28335","GHSA-wv28-7fpw-fj49","PYSEC-2024-49"],"related":[],"kind":"vulnerability","state":"published","title":"Lektor does not sanitize database path traversal","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Lektor anterior a 3.3.11 no sanitiza el path traversal de la base de datos. Por lo tanto, los comandos de shell pueden ejecutarse a través de un archivo que se agrega al directorio de plantillas, si el navegador web de la víctima accede a un sitio web que no es de confianza y que usa JavaScript para enviar solicitudes al puerto localhost 5000, y el navegador web se ejecuta en la misma máquina que el Comando \"servidor lector\".","source":"nvd"}],"published":"2024-03-27T00:00:00.000Z","modified":"2026-06-17T07:21:20.710Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"CRITICAL"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"3.3.11","status":"affected"}],"vendor":"lektor","product":"lektor","cpe":"cpe:2.3:a:lektor:lektor:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.3.11"}],"ecosystem":"PyPI","package":"lektor","purl":"pkg:pypi/lektor","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.4.0b1","status":"affected","fixed":"3.4.0b11"}],"ecosystem":"PyPI","package":"lektor","purl":"pkg:pypi/lektor","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.3.11"}],"ecosystem":"PyPI","package":"lektor","purl":"pkg:pypi/lektor","source":"pysec"}],"references":[{"url":"https://github.com/lektor/lektor/pull/1179/commits/8f38b9713d152622b69ff5e3b1e6a0d7bb7fa800","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/lektor/lektor/releases/tag/v3.3.11","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://cxsecurity.com/issue/WLB-2024030043","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://packetstormsecurity.com/files/177708/Lektor-Static-CMS-3.3.10-Arbitrary-File-Upload-Remote-Code-Execution.html","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://getlektor.com/docs/quickstart","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://brave.com/privacy-updates/27-localhost-permission/","tags":["web","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28335","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/lektor/lektor/commit/7393d87bd354e43120937789956175064e4610a0","tags":["web"],"sources":["ghsa"]},{"url":"https://brave.com/privacy-updates/27-localhost-permission","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/lektor/PYSEC-2024-49.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-wv28-7fpw-fj49","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-08-06T15:03:17.865Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-28335","url":"https://www.cve.org/CVERecord?id=CVE-2024-28335","licence":"CVE Terms of Use","modified":"2024-08-06T15:08:26.792Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wv28-7fpw-fj49","url":"https://github.com/advisories/GHSA-wv28-7fpw-fj49","licence":"CC-BY-4.0","modified":"2024-08-06T19:00:46.448Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-28335","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28335","licence":"Public domain","modified":"2026-06-17T07:21:20.710Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-49","url":"https://osv.dev/vulnerability/PYSEC-2024-49","licence":"CC-BY-4.0","modified":"2026-06-10T17:02:00.064Z"}],"updatedAt":"2026-11-25T22:58:37.948Z","epss":{"score":0.01075,"percentile":0.64526,"date":"2026-11-30T12:00:22.000Z"}}