Skip to main content

JMRI CVE-2025-14311

MEDIUM
Path Traversal (CWE-22)
2025-12-09 cve_disclosure@tech.gov.sg
6.8
CVSS 4.0 · Vendor: tech
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft ZIP with traversal paths
  2. Exploit
    Deliver archive to JMRI user
  3. Execution
    Victim extracts via UnzipFileClass
  4. Impact
    Write 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (tech) PRIMARY 6.8 MEDIUM
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
vuln.today AI 5.5 MEDIUM

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (tech).

CVSS VectorVendor: tech

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Rare
JMRI is niche open-source model-railroad hobbyist software, tiny production footprint
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

References

Advisories & patches

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy