Skip to main content

Apptainer CVE-2026-48785

| EUVDEUVD-2026-78889 MEDIUM
Path Traversal (CWE-22)
2026-06-26 https://github.com/apptainer/apptainer GHSA-cr2j-534f-mf3g
4.8
CVSS 3.1 · Vendor: https://github.com/apptainer/apptainer
View

Attack ChainAIDerived

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

  1. Access
    Obtain local account on setuid Apptainer host
  2. Delivery
    Enumerate allowed paths in apptainer.conf
  3. Exploit
    Create sibling directory extending allowed path prefix
  4. Execution
    Place container image in sibling directory
  5. Persist
    Invoke Apptainer against sibling path
  6. Impact
    Bypass path restriction, execute container

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 all three of the following specific conditions simultaneously: (1) Apptainer must be installed and running in setuid mode - installations using unprivileged user-namespace mode are completely unaffected; (2) the limit container paths directive must be explicitly configured in apptainer.conf - systems without this directive configured are not affected regardless of setuid status; (3) the attacker must have a local account with at least low-level system privileges (PR:L per CVSS). Exploitation is limited entirely to local filesystem access - there is no network attack vector. Additionally, the advisory notes that if the host permits unrestricted user namespaces, limit container paths provides no security boundary at all, making exploitation of this bypass moot in such environments. The limiting factors - local access only, non-default setuid deployment, and explicit path-restriction configuration - substantially narrow the realistic at-risk population.

Impact

The NVD CVSS 3.1 score of 4.8 (Medium) with vector AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L accurately reflects the constrained attack surface: local access, low privileges, and limited CIA impact. No EPSS score was provided in the available intelligence, and this CVE is not listed in the CISA KEV catalog, indicating no confirmed active exploitation. The vulnerability is not a remote code execution or privilege escalation path - it is a security control bypass that only matters if an organization explicitly relies on limit container paths as a trust boundary. Real-world risk is further reduced by the dual prerequisites: setuid mode must be enabled and the path-restriction directive must be configured. Many Apptainer deployments use unprivileged user-namespace mode, and the advisory itself notes that unrestricted user namespaces already nullify the effectiveness of this control regardless of the bug. This is a genuine priority only for HPC operators who deploy setuid Apptainer and depend on path restrictions to partition container access between user groups.

Exploit ScenarioDerived

A local user on an HPC cluster running Apptainer in setuid mode discovers that the sysadmin has configured limit container paths = /data/approved. The user creates a directory named /data/approved-malicious (which they have write access to or can arrange to be created), places a crafted container image inside it, and invokes Apptainer against that path. The path-prefix check passes incorrectly, the container executes under setuid privileges, and the user bypasses the intended administrative restriction on container execution paths. No public exploit or POC exists at time of analysis.

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 – Jun 26, 2026

Apptainer's limit container paths security directive in setuid mode fails to enforce path boundaries correctly because it uses string prefix matching rather than full path-component comparison, allowing local users to run containers from sibling directories whose names begin with an allowed path string. A system configured to allow only /data/safe will inadvertently also permit /data/safe-but-unsafe or any other path sharing that prefix. This affects only installations running Apptainer in setuid mode with the limit container paths directive explicitly configured; no public exploit has been identified at time of analysis, and the vendor-confirmed fix is available in version 1.5.1.

RemediationAI

The primary remediation is to upgrade Apptainer to version 1.5.1, which corrects the path comparison logic to enforce directory-component boundaries. The vendor advisory detailing the fix is at https://github.com/apptainer/apptainer/security/advisories/GHSA-cr2j-534f-mf3g. For environments that cannot immediately upgrade, two workarounds are available with trade-offs: first, disable setuid mode entirely - this eliminates the vulnerable code path but may prevent privileged container operations that require it, impacting workloads that depend on setuid capabilities. Second, remove the limit container paths directive if the path restriction is not a hard security requirement; note that without this control, local users may run containers from any path they have filesystem access to, but the bypass bug is no longer relevant. Administrators should also note that if unrestricted user namespaces are permitted on the host, the limit container paths directive provides no effective security boundary regardless of this vulnerability, per the vendor's own documentation.

Affected VersionsENISA

apptainer < 1.5.1

Affected Packages

go github.com/apptainer/apptainer fix: 1.5.1
euvd apptainer fix: 1.5.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Apptainer (the community successor to Singularity) is a Go-based container runtime widely used in HPC and scientific computing environments. Its setuid execution mode allows unprivileged users to run containers with elevated capabilities. The limit container paths directive in apptainer.conf is a security control allowing sysadmins to restrict which filesystem paths containers may be executed from. The root cause (CWE-22, Path Traversal / improper path handling) is that the path matching logic compares the configured path as a raw string prefix against the requested path, rather than normalizing and comparing full directory-component boundaries. This means any path whose string representation begins with the allowed path string - including sibling directories with extended names - satisfies the check. The affected package is go/github.com/apptainer/apptainer, versions prior to 1.5.1.

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 (https://github.com/apptainer/apptainer) PRIMARY 4.8 MEDIUM
AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
vuln.today AI 5.3 MEDIUM

Local low-privilege access suffices to exploit the prefix-match bypass; the attacker initiates the container run themselves, requiring no separate user interaction.

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

Primary rating from Vendor (https://github.com/apptainer/apptainer).

CVSS VectorVendor: https://github.com/apptainer/apptainer

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

DescriptionCVE.org

Impact

The limit container paths directive in apptainer.conf is intended to allow a system administrator limit the paths from which containers can be run, under setuid mode. Due to incorrect matching of a path string, sibling directories with similar names may incorrectly be allowed.

For example, the configuration:

limit container paths = /data/safe

Will also allow containers in /data/safe-but-unsafe to be run.

Patches

The issue is patched in apptainer version 1.5.1.

Workarounds

If developers do not use setuid mode or do not use the limit container paths functionality, then this issue does not affect their installation. Note that, as documented [1], if user namespaces are allowed for unrestricted use then this functionality does not stop users from running any container of their choice.

If developers do use the limit container paths functionality they are advised to update.

Credit

This vulnerability was discovered and disclosed to the Apptainer project by Dave Trudgian of Sylabs.

Resources

[1] https://apptainer.org/docs/admin/latest/configfiles.html#limiting-container-execution

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Low
niche HPC and scientific computing container platform
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

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

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
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.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Module for HPC 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP6-LTSS Fixed
openSUSE Leap 16.0 Fixed
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected

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