CVE-2024-36858
JavaScript vulnerability analysis and mitigation

Overview

An arbitrary file upload vulnerability was discovered in Jan v0.4.12, specifically in the /v1/app/writeFileSync interface. Jan is an open source alternative to ChatGPT that runs offline on computers with support for multiple engines including llama.cpp and TensorRT-LLM. The vulnerability was disclosed on June 4, 2024 (NVD).

Technical details

The vulnerability exists in Jan's API interfaces writeFileSync and appendFileSync which fail to properly filter parameters, enabling arbitrary file upload capabilities. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (CRITICAL) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. It is classified as CWE-434 (Unrestricted Upload of File with Dangerous Type) (NVD, GitHub Advisory).

Impact

The vulnerability allows attackers to execute arbitrary code by uploading crafted files. Additionally, attackers can exploit this vulnerability to write scheduled tasks and boot items by accessing critical system directories such as /etc/init.d/, /etc/rc.d/, /etc/rc.local, ~/.bash_profile, ~/.bash_login, and ~/.profile files to gain shell access (GitHub Advisory).

Exploitability

The vulnerability is exploitable through the writeFileSync and appendFileSync API endpoints. Proof of concept code demonstrates that attackers can create arbitrary files, write any content, and append to existing files without proper restrictions (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-77415CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77414CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77413CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-63421HIGH7.5
  • JavaScript logoJavaScript
  • @keystone-6/core
NoYesAug 21, 2026
CVE-2026-53509MEDIUM5.7
  • JavaScript logoJavaScript
  • @aborruso/ckan-mcp-server
NoYesAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management