CVE-2024-36857 Jan path traversal vulnerability

High 7.5 Published Updated

An attacker can read arbitrary files from the server via the readFileSync interface in the Jan library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-36857?

CVE-2024-36857 is a high-severity path traversal vulnerability in n/a, published on 4 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Jan v0.4.12 was discovered to contain an arbitrary file read vulnerability via the /v1/app/readFileSync interface.

Weakness: CWE-31

Which versions are affected by CVE-2024-36857?

2 open source packages ship an affected version, including @janhq/core. It affects 1 product.

PackageAffectedFixed in
@janhq/core npmAll versions to 0.1.11None
@janhq/core npmAll versions to 0.1.11None

Products include Homebrew Jan.

How do I fix CVE-2024-36857?

No fix has been published for CVE-2024-36857 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-36857 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-36857 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-5jqc-qj57-4hrc.

Is CVE-2024-36857 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free