CVE-2024-36858
Published: 04 June 2024
Summary
CVE-2024-36858 is a critical-severity Unrestricted Upload of File with Dangerous Type (CWE-434) vulnerability in Homebrew Jan. Its CVSS base score is 9.8 (Critical).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Client Execution (T1203); ranked in the top 1.2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
This vulnerability is AI-related — categorised as Mobile/Edge AI; in the Other ATLAS/OWASP Terms risk domain; MITRE ATLAS techniques in scope: AML.T0033.
Deeper analysis
CVE-2024-36858 is an arbitrary file upload vulnerability in the /v1/app/writeFileSync interface of Jan version 0.4.12. Classified under CWE-434, the flaw allows attackers to upload crafted files that result in arbitrary code execution and carries a CVSS 3.1 base score of 9.8 reflecting network-accessible attack vectors with no required authentication or user interaction.
Unauthenticated remote attackers can exploit the issue to upload and execute malicious files, achieving full control over confidentiality, integrity, and availability on the target system.
The listed references consist of GitHub repositories that document the Jan arbitrary file upload vulnerability but contain no advisory statements, patch details, or mitigation recommendations. The EPSS score is reported at a current and peak value of 0.7359 with no material change indicated.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-2143
Vulnerability details
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.
- CWE(s)
AI Security AnalysisAI
- AI Category
- Mobile/Edge AI
- Risk Domain
- Other ATLAS/OWASP Terms
- OWASP Top 10 for LLMs 2025
- None mapped
- Classification Reason
- Jan is an open-source desktop application for running AI models locally (edge AI inference), serving as an offline ChatGPT alternative. The vulnerability affects its local API interface, confirming it as an edge AI platform.
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Arbitrary file upload vulnerability in Jan application enables attackers to upload crafted files leading to arbitrary code execution, matching Exploitation for Client Execution.
MITRE ATLAS TechniquesAI
MITRE ATLAS techniques
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Requiring identifiable owners for portable devices reduces the attack surface for unrestricted uploads of dangerous file types via anonymous media.
Dangerous file uploads can be detonated in the chamber to determine malice before any production write or execution occurs.
Prevents unrestricted writing of arbitrary or malicious firmware by keeping hardware write-protect enabled except under tightly controlled manual procedures.
Scans files from external sources on download/open/execute, blocking unrestricted uploads of dangerous file types.