Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local account on shared OOD host
-
DeliveryPre-create /var/tmp/<victim> world-writable before login
-
ExploitVictim logs into dashboard, session written to attacker dir
-
ExecutionPlant crafted FileStore cache / deserialization gadget
-
PersistMarshal.load executes in victim context
-
ImpactWrite authorized_keys, take over victim account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Secure temp file creation
|
| Exploitation Conditions | Requires an unprivileged local user account on the same Open OnDemand host (typically a shared HPC login node) and a world-writable /var/tmp (the documented default). The attacker must pre-create the victim's session directory (default /var/tmp/<username>, or an admin-configured alternate path) with permissive permissions BEFORE the victim's PUN session writes to it, because the vulnerable code (apps/dashboard/config/initializers/session_store.rb) only runs Dir.mkdir 'unless Dir.exist?' and never validates that the existing directory is owned by the PUN user with mode 0700. The flaw only applies when the dashboard uses the default ActiveSupport::Cache::FileStore session store (session_store not otherwise configured); if the cache store fails it falls back to a cookie store, which is not affected. Limiting factors: local access only (not remotely reachable), the attacker needs a co-located account, correct timing before the victim logs in, and the victim must actually log into the dashboard (user interaction) for disclosure, while RCE additionally requires the victim to load the planted FileStore cache entry. |
| Impact | The signals are internally consistent and point to a real-but-bounded local privilege/lateral-movement risk rather than an internet-facing emergency. The CVSS 4.0 base score of 5.4 (medium) is held down by AV:L (local), AC:H, AT:P (a specific attack requirement) and PR:L/UI:P - the attacker needs an unprivileged local shell account on the same host, must pre-stage the victim's directory before the victim logs in, and depends on the victim then logging into the dashboard. Working against that mildness, the vulnerable-system impact is maximal (VC:H/VI:H/VA:H): confirmed session/CSRF-token disclosure plus demonstrated cross-user RCE via ActiveSupport FileStore marshal deserialization, executing with the victim's privileges. No CISA KEV entry and no EPSS score are present in the input, so there is no evidence of active or widespread exploitation; however, a detailed, demonstrated proof-of-concept (including a Ruby deserialization gadget that wrote the victim's authorized_keys) is published in the GHSA advisory itself, so exploitability is proven, not theoretical. The vuln.today decision label is 'this_month' (not act_now/emergency), matching a high-impact but access-constrained local bug. Net: this is a genuine priority specifically for multi-user shared hosts (HPC login nodes) where many unprivileged users coexist and /var/tmp is world-writable by default - the exact deployment model of this product - and a low priority for single-user or non-shared installs. Note the environment dependency: exploitation presupposes the default ActiveSupport FileStore session store is in use and /var/tmp is world-writable; a hardened or reconfigured session store changes the calculus. |
| Exploit ScenarioDerived | On a shared Open OnDemand login node, a low-privileged local user (e.g. uid 5000) pre-creates /var/tmp/<victim> with permissive mode (e.g. 0707) before the victim first logs in. Because session_store.rb creates the directory only 'unless it exists' and never validates ownership or mode 0700, the victim's dashboard session is written into the attacker-controlled directory, letting the attacker read the session ID and CSRF token, stage a predetermined session ID, or plant a crafted ActiveSupport FileStore cache entry whose marshal deserialization runs in the victim's context. A full working PoC in the GHSA advisory demonstrates this end-to-end, culminating in writing the victim's ~/.ssh/authorized_keys for RCE/account takeover. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Insecure session-directory handling in Open OnDemand's dashboard (apps/dashboard/config/initializers/session_store.rb) lets a local user on a shared HPC login node hijack another user's PUN dashboard session: prior to 4.1.6 and 4.2.3 the code creates /var/tmp/<username> with Dir.mkdir 'unless Dir.exist?' and never verifies that an existing directory is owned by the PUN user with mode 0700, so an attacker who pre-creates the victim's directory with permissive permissions can read the victim's session identifier and CSRF token after login, or plant a chosen session ID. The reporter further demonstrates that the ActiveSupport::Cache::FileStore backend deserializes attacker-written marshal data in the victim's context, which the advisory describes as a potential path to file modification or code execution with the victim's privileges. The advisory publishes detailed proof-of-concept code (including a Marshal gadget script targeting ~/.ssh/authorized_keys); active exploitation is not confirmed (not in CISA KEV). Exploitation requires a co-located local account, a world-writable /var/tmp or other attacker-writable store path, correct timing before the victim's first login, and the victim actually using the dashboard.
RemediationAI
Apply the vendor fixes: upgrade to Open OnDemand 4.1.6 (4.1.x branch) or 4.2.3 (4.2.x branch), which contain the initializer changes validating that the session directory is owned by the PUN user with mode 0700 and falling back to the cookie store otherwise (see commits 1b0c550921edeb40beaf6c7dcbe2b0fc3a40ec3c and 79265f593aac10ef797cd3293ec3c8b7a2572339, PR 5558, and advisory GHSA-wqv4-4vj3-rgh5). Where upgrading immediately is not possible, the practical mitigations are to point Rails.application.config.session_store at an administrator-controlled location that unprivileged users cannot create or write to (for example a per-user path under a root-owned, non-world-writable parent), or to configure an explicit non-FileStore session store such as the signed cookie store; both remove the pre-creation vector but the cookie-store path changes session handling behaviour and should be validated against dashboard features. Administrators may also pre-create each user's session directory with the correct owner and mode 0700 before first login, removing the window the attacker needs, though this requires repeated provisioning for new accounts and does not protect custom store paths that remain world-writable, while the deserialization-to-execution path is only fully closed by the patched release.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Open OnDemand's dashboard persists Rails sessions server-side through ActiveSupport::Cache::FileStore when no other session store is configured, defaulting to a per-user directory /var/tmp/#{Etc.getpwuid.name} (or an administrator-configured path). Because /var/tmp is world-writable, another local account can create that directory first; the initializer only calls Dir.mkdir unless Dir.exist? and performs no ownership or permission check, which is the CWE-377 (insecure temporary file) root cause. FileStore lays out cache entries under hashed path components named after the cache key, and the Rails session key is _session_id:2::<sha256 of the cookie SID>, so an attacker who controls the directory can both read the victim's stored session hash (including _csrf_token) and pre-compute the filename for a chosen session ID. The deserialization angle comes from FileStore's Marshal-based serialization: entries are loaded with Marshal.load, so a crafted entry can instantiate a Ruby gadget chain (the reporter uses Gem::Requirement plus ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy wrapping Netrc) that executes when the victim's application reads the cache entry. The fix in the referenced commits wraps the directory creation, compares stat.uid/gid/mode (0700) and realpath against the PUN user, and raises if validation fails, which causes the initializer to fall back to the signed cookie store instead of FileStore. Scope is unchanged (S:U) in our assessment: the impact stays within the victim user's privileges on the same host.
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:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local co-located account (AV:L, PR:L), pre-staging before victim login plus required victim login make it AC:H/UI:R; deserialization yields full RCE in victim context, so C:H/I:H/A:H.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
Open OnDemand is an open-source high-performance computing portal. Prior to 4.1.6 and 4.2.3, apps/dashboard/config/initializers/session_store.rb stores dashboard sessions by default in a predictable /var/tmp/<username> directory, or in another location configured by an administrator, but omits PUN user directory ownership and mode 0700 validation. A local attacker can pre-create another user's directory, read the victim's session identifier and CSRF token after login, or stage a predetermined session identifier. ActiveSupport file-store deserialization of attacker-controlled cache data may also occur in the victim's context, enabling file modification or code execution with the victim's privileges. This issue is fixed in versions 4.1.6 and 4.2.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
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-129302
NVD
CVE.org
EPSS
GitHub
Exploit-DB