Skip to main content

Open OnDemand EUVDEUVD-2026-129302

| CVE-2026-55172 MEDIUM
Insecure Temporary File (CWE-377)
2026-11-18 security-advisories@github.com
5.4
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Obtain local account on shared OOD host
  2. Delivery
    Pre-create /var/tmp/<victim> world-writable before login
  3. Exploit
    Victim logs into dashboard, session written to attacker dir
  4. Execution
    Plant crafted FileStore cache / deserialization gadget
  5. Persist
    Marshal.load executes in victim context
  6. Impact
    Write 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

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

ondemand 4.2.0, < 4.2.3
ondemand < 4.1.6

Affected Packages

euvd ondemand fix: 4.1.6, 4.2.3

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

Vendor (github) PRIMARY 5.4 MEDIUM
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
vuln.today AI 6.7 MEDIUM

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.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

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

Lifecycle Timeline

1
Patch available
Nov 18, 2026 - 22:03 EUVD

DescriptionCVE.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

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Low
HPC web portal for academic/research clusters; niche multi-user deployment footprint
Social Media
1
Sightings
Data Quality
5 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.1%
Patch available Yes
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

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

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.

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