JMRI CVE-2025-14311
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft ZIP with traversal paths
-
ExploitDeliver archive to JMRI user
-
ExecutionVictim extracts via UnzipFileClass
-
ImpactWrite file outside target directory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a victim to open/extract a maliciously crafted ZIP archive through JMRI's UnzipFileClass.unzipFunction (the Zip Slip sink patched in PR #14340); the archive must contain entries with directory-traversal ('../') pathnames so extraction escapes the intended target directory. Limiting factors: the attack is local (AV:L) and demands user interaction (UI:P) - the user must obtain and process an attacker-supplied archive, so there is no remote drive-by path - and impact is limited to file integrity (writing/overwriting files outside the target dir), not data disclosure or service availability. Only JMRI versions before 5.13.3 are affected. |
| Impact | This is a moderate, low-priority issue in practice. The vendor CVSS 4.0 vector (AV:L/AC:L/PR:N/UI:P/VC:N/VI:H/VA:N) scores 6.8 (Medium) and is internally consistent with a Zip Slip path-traversal flaw: the attack is local and requires passive user interaction (UI:P) - the victim must extract an attacker-supplied archive - and the impact is confined to integrity (VI:H), with no confidentiality or availability loss. The source diff for PR #14340 confirms the root cause: UnzipFileClass extracted entries without validating that the resolved path stayed inside the target directory. Supporting signals all point to low real-world urgency: EPSS is 0.22% (11th percentile), the CVE is NOT on CISA KEV, and no public exploit was supplied (the linked GitHub PR is the FIX, not an exploit). The signals are consistent rather than conflicting - low EPSS, no KEV, local vector, and required user interaction all agree this is a genuine but non-critical defect, not a high-CVSS-but-overstated finding nor an actively exploited one. |
| Exploit ScenarioDerived | An attacker crafts a ZIP archive containing entries with '../' path components and distributes it as a JMRI resource (e.g., a shared panel, roster, or configuration bundle). When a victim opens or imports the archive, JMRI's UnzipFileClass extracts an entry outside the intended directory, overwriting or planting a file elsewhere on the filesystem. No public exploit was identified at time of analysis, though the vulnerable code path is confirmed by the PR diff. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 15, 2026
A Zip Slip path traversal in JMRI before 5.13.3 lets an attacker-supplied ZIP archive write files outside the intended extraction directory when a user opens it through JMRI's UnzipFileClass.unzipFunction. Because exploitation depends on the victim obtaining and processing a malicious archive, the attack is local (AV:L) and requires user interaction (UI:P) with PR:N, and the reachable impact is limited to file integrity - overwriting or creating files outside the target directory - with no loss of confidentiality or availability. There is no evidence of active exploitation and no public exploit code identified at time of analysis; EPSS is 0.22% (11th percentile), and the risk in practice is moderate and low-priority, mitigated by the upstream fix in JMRI 5.13.3.
RemediationAI
Upgrade to JMRI 5.13.3 or later, which includes the Zip Slip containment check added in upstream PR #14340 (https://github.com/JMRI/JMRI/pull/14340); the advisory's version boundary is 'before 5.13.3', and that is the fix version to target - note the upstream fix is documented as a pull request, so confirm the patched release artifact before relying on it. Until upgrading, the practical compensating control is to never extract untrusted ZIP files through JMRI: restrict which archives are fed to features that call jmri.util.UnzipFileClass.unzipFunction, and require operators to verify archive provenance and entry names (rejecting entries containing '../' or absolute paths) before import - the trade-off is manual review overhead and the risk of operator error. Additionally, run JMRI under a least-privileged OS account whose write access is confined to a sandboxed working directory, so that a traversal write can only reach files that account already owns; this limits impact from integrity tampering to other user- or system-owned files but does not prevent overwriting data within the sandbox. Because exploitation requires user interaction (UI:P) and the attack is local, no network-level mitigation is needed; this should be treated as a low-priority, scheduled maintenance item given the 0.22% EPSS score and absent KEV listing.
Affected ProductsAI
All JMRI (Java Model Railroad Interface) releases before 5.13.3 are affected, as stated in the advisory, with the vulnerable code located in java/src/jmri/util/UnzipFileClass.java (unzipFunction) and in any JMRI component that extracts ZIP archives via that helper. JMRI 5.13.3 and later contain the containment check and are not affected. No vendor-specific CPE strings beyond the generic JMRI product identity were supplied in the source data; the authoritative reference is the upstream fix pull request at https://github.com/JMRI/JMRI/pull/14340, and the NVD record lists the same PR. Deployments should inventory any JMRI 5.13.2 or earlier installation, including headless/CI instances that process user- or third-party-supplied archive files.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is CWE-22, improper limitation of a pathname to a restricted directory, realized here as the classic 'Zip Slip' pattern in Java. JMRI's java/src/jmri/util/UnzipFileClass.java iterates ZIP entries and, prior to the fix, wrote each entry to a destination derived from the entry name without verifying that the resolved path stayed inside the caller-supplied target directory. An archive containing entries such as '../../somefile' therefore resolves to a path outside the extraction root, allowing arbitrary file creation or overwrite within the privileges of the JMRI process. The upstream remediation in PR #14340 adds a normalization-based containment check - file.toPath().normalize().startsWith(directory.toPath().normalize()) - throwing an IOException labeled 'Zip Slip vulnerability detected' when an entry would extract outside the target directory. Note that the authoritative assessment maps this to CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N (score 6.8), i.e., a local, user-interaction-driven integrity-only issue, rather than a remote or drive-by condition; the supplied CVSS 4.0 vector is broadly consistent in that it also carries PR:N and UI:P with only integrity (VI:H) impact. The CPE/version context is the JMRI application itself, with all releases prior to 5.13.3 in scope.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Local Zip Slip triggered only when a user extracts an attacker-supplied archive (AV:L, UI:R, PR:N); impact is arbitrary file write so I:H, with no confidentiality or availability effect.
Primary rating from Vendor (tech).
CVSS VectorVendor: tech
DescriptionCVE.org
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in JMRI.This issue affects JMRI: before 5.13.3.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
NVD
CVE.org
EPSS
GitHub
Exploit-DB