Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Apptainer has incorrect path matching for 'limit container paths' directive (CVE-2026-48785)

0
Medium
Published: 06/26/2026 (06/26/2026, 19:20:33 UTC)
Source: GCVE Database
Vendor/Project: SUSE Product Security Team
Product: github.com/apptainer/apptainer

Description

Apptainer versions prior to 1.5.1 have a vulnerability in the 'limit container paths' directive in apptainer.conf, which is intended to restrict container execution paths under setuid mode. Due to incorrect path string matching, sibling directories with similar names to allowed paths may also be permitted, potentially allowing unauthorized container execution. This issue is patched in version 1.5.1. The vulnerability only affects users who enable setuid mode and use the 'limit container paths' feature. If user namespaces are allowed unrestricted use, this functionality does not prevent running any container. No known exploits are reported in the wild.

CVSS v3.1

Score 4.8medium

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

Affected software

Affected versions
<1.5.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/26/2026, 23:04:42 UTC

Technical Analysis

The vulnerability in Apptainer (CVE-2026-48785) arises from incorrect path matching in the 'limit container paths' directive within apptainer.conf. This directive is designed to restrict the directories from which containers can be run under setuid mode. However, due to improper string matching, directories with names similar to the allowed path (e.g., '/data/safe-but-unsafe' when '/data/safe' is allowed) are erroneously permitted, potentially bypassing intended restrictions. The issue is fixed in Apptainer version 1.5.1. Users not employing setuid mode or the 'limit container paths' directive are not affected. Additionally, if user namespaces are unrestricted, this restriction does not prevent container execution. The vulnerability has a medium severity rating and no known exploits have been reported.

Potential Impact

The vulnerability allows containers to be run from sibling directories with names similar to those explicitly allowed by the 'limit container paths' directive, potentially bypassing path restrictions under setuid mode. This could lead to unauthorized container execution from unintended locations. The impact is limited to environments using setuid mode with the 'limit container paths' feature enabled. There is no indication of privilege escalation or remote exploitation. No known exploits are currently in the wild.

Mitigation Recommendations

A patch is available in Apptainer version 1.5.1 that corrects the path matching logic for the 'limit container paths' directive. Users employing this feature under setuid mode should upgrade to version 1.5.1 or later. If setuid mode or the 'limit container paths' directive is not used, this vulnerability does not affect the installation. Additionally, if user namespaces are allowed unrestricted use, this functionality does not restrict container execution, so no action is required in that scenario.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Csaf Category
csaf_security_advisory
Csaf Version
2.0
Publisher
SUSE Product Security Team
Advisory Id
openSUSE-SU-2026:10993-1
Cve Count
1
Additional Cves
[]
Cvss Version
3.1

Threat ID: 6a2bea2be617e2d83458a807

Added to database: 06/12/2026, 11:14:51 UTC

Last enriched: 06/26/2026, 23:04:42 UTC

Last updated: 07/31/2026, 12:27:13 UTC

Views: 87

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses