CVE-2024-36858

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…

Critical · published June 4, 2024

CVSS v3.1
9.8
EPSS
3%
Percentile
87.4
In the wild
Unconfirmed
What it is

🔥 A crafty file can turn into a nightmare! An arbitrary file upload vulnerability in Jan v0.4.12 lets attackers execute any code they want through the /v1/app/writeFileSync interface. 🚨 Think of it like a restaurant where the chef accepts any dish without checking the recipe — an unwelcome surprise could be on the menu! This flaw allows attackers to slip in malicious files that could run code unchecked. An attacker could exploit this vulnerability to execute arbitrary code on the server, potentially taking control of your system, stealing sensitive data, or causing widespread chaos. It's like handing over the keys to your castle without even realizing it!

Put simply

Think of it like a restaurant where the chef accepts any dish without checking the recipe — an unwelcome surprise could be on the menu! This flaw allows attackers to slip in malicious files that could run code unchecked. This vulnerability allows an attacker to upload a crafted file through the /v1/app/writeFileSync endpoint, which the server then executes, leading to arbitrary code execution.

What to do

An attacker could exploit this vulnerability to execute arbitrary code on the server, potentially taking control of your system, stealing sensitive data, or causing widespread chaos. It's like handing over the keys to your castle without even realizing it! To protect your systems, update Jan to version 0.4.13 immediately to patch this vulnerability. Additionally, implement strict file validation checks to ensure only safe file types are uploaded. Don't forget to conduct a security audit to confirm your setup is secure! You've got this! With these steps, you'll be well on your way to fortifying your defenses! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.03035 · 87.4th percentile
Published
2024-06-04T18:26Z
EPSS history
Timeline
  • 04 JUN 18:26Z
    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…
    cvelistv5