{"id":"CVE-2024-36858","aliases":["CVE-2024-36858","GHSA-qfjh-mvq6-c5p8"],"related":[],"kind":"vulnerability","state":"published","title":"Jan path traversal vulnerability","summary":"An arbitrary file upload vulnerability in the /v1/app/writeFileSync interface of Jan v0.4.12 allows attackers to execute arbitrary code via uploading a crafted file.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An arbitrary file upload vulnerability in the /v1/app/writeFileSync interface of Jan v0.4.12 allows attackers to execute arbitrary code via uploading a crafted file.","source":"cvelist"},{"lang":"en","text":"An arbitrary file upload vulnerability in the /v1/app/writeFileSync interface of Jan v0.4.12 allows attackers to execute arbitrary code via uploading a crafted file. @janhq/core has been deprecated in favor of janhq/jan, this vulnerability has been patched there in v0.5.2.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad de carga de archivos arbitrarios en la interfaz /v1/app/writeFileSync de Jan v0.4.12 permite a los atacantes ejecutar código arbitrario cargando un archivo manipulado.","source":"nvd"}],"published":"2024-06-04T18:26:06.014Z","modified":"2026-06-17T07:37:15.400Z","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:H","score":9.8,"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:H","score":9.8,"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:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-434"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"version":"0.4.12","status":"affected"}],"vendor":"homebrew","product":"jan","cpe":"cpe:2.3:a:homebrew:jan:0.4.12:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.1.11"}],"ecosystem":"npm","package":"@janhq/core","purl":"pkg:npm/%40janhq/core","source":"ghsa"},{"ranges":[{"status":"affected","version":"0.4.12"}],"vendor":"homebrew","product":"jan","cpe":"cpe:2.3:a:homebrew:jan:0.4.12:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/HackAllSec/CVEs/tree/main/Jan%20Arbitrary%20File%20Upload%20vulnerability","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36858","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/janhq/jan/pull/3152","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/janhq/jan","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-08-14T19:00:03.821Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-36858","url":"https://www.cve.org/CVERecord?id=CVE-2024-36858","licence":"CVE Terms of Use","modified":"2025-02-13T15:59:45.923Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qfjh-mvq6-c5p8","url":"https://github.com/advisories/GHSA-qfjh-mvq6-c5p8","licence":"CC-BY-4.0","modified":"2024-07-17T16:23:05.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-36858","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36858","licence":"Public domain","modified":"2026-06-17T07:37:15.400Z"}],"updatedAt":"2026-11-25T22:58:41.429Z","epss":{"score":0.03035,"percentile":0.87858,"date":"2026-12-01T12:00:22.000Z"}}