Apptainer has incorrect path matching for 'limit container paths' directive (CVE-2026-48785)
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.
AI Analysis
Technical Summary
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.
Apptainer has incorrect path matching for 'limit container paths' directive (CVE-2026-48785)
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
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.