Cyber Resilience

CVE-2024-36857

Homebrew Jan 0.4.12

Public PoC
Published
04 June 2024
Modified
21 November 2024
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS Score 0.021 80th percentile
Risk Priority 79 floored blend · peak EPSS

Summary

CVE-2024-36857 is a high-severity Path Traversal: 'dir\..\..\filename' (CWE-31) vulnerability in Homebrew Jan. Its CVSS base score is 7.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 20% 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 LLM Application Platforms; in the Privacy and Disclosure risk domain.

The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) and AC-3 (Access Enforcement) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

Jan v0.4.12 contains an arbitrary file read vulnerability in the /v1/app/readFileSync interface. The flaw is tracked as CVE-2024-36857 with a CVSS 3.1 base score of 7.5, reflecting network-accessible attack conditions that require no authentication or user interaction and result in high confidentiality impact without affecting integrity or availability. The affected component is the Jan application, which exposes this interface to external callers.

Unauthenticated remote attackers can invoke the readFileSync endpoint to retrieve the contents of arbitrary files on the underlying system. Successful exploitation grants direct access to sensitive data such as configuration files, credentials, or source code without any additional privileges.

Public references consist of GitHub repositories documenting the Jan arbitrary-file-read issue, but no vendor advisory, patch release, or mitigation guidance is provided in the available sources. The EPSS score has reached a peak of 0.5611 with a current value of 0.5147; no trajectory data from a low baseline is supplied.

EU & UK References

Vulnerability Data

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

CWE(s)

AI Security AnalysisAI

AI Category
LLM Application Platforms
Risk Domain
Privacy and Disclosure
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Jan.ai is an open-source desktop AI assistant application that runs LLMs locally and offline as a ChatGPT alternative, fitting the Enterprise AI Assistants category as an AI chat platform with API interfaces.

Related Threats

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-36858Same product: Homebrew Jan
CVE-2024-37273Same product: Homebrew Jan
CVE-2024-24998Shared CWE-31
CVE-2024-2044Shared CWE-31
CVE-2024-25840Shared CWE-31
CVE-2024-35431Shared CWE-31
CVE-2024-28088Shared CWE-31
CVE-2024-41376Shared CWE-31
CVE-2024-35429Shared CWE-31
CVE-2023-35860Shared CWE-31

Affected Assets

homebrew
jan
0.4.12

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

Directly requires validation of path inputs, stopping the acceptance of backslash dot-dot sequences that escape the restricted directory.

Enforces authorization checks on file/resource access, blocking exploitation of a traversed path even if the malformed name is accepted.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly require input validation and path sanitization that block this weakness.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing can discover traversal flaws but does not prevent them at the source.

prevents

Secure development lifecycle mandates input validation and path sanitization that directly blocks directory traversal sequences.

prevents

Application security requirements explicitly call for controls against path traversal and other injection flaws.

prevents

Secure architecture principles reduce the attack surface but do not prescribe the specific coding fix.

prevents

Secure coding standards require canonicalization and whitelist validation that eliminate CWE-31.

References