GitHub Advisoryadvisory · Go
GHSA-wqcr-7rf3-f64m Singluarity: Incorrect path matching for 'limit container paths' directive
MEDIUM
Official page ↗
- Aliases
- CVE-2026-47215
- Ecosystem
- Go
- Packages
- github.com/sylabs/singularity/v4, github.com/sylabs/singularity
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
- Weaknesses
- CWE-22
- Reviewed
- 2026-06-04
Affected packages
• Go github.com/sylabs/singularity/v4: < 4.4.2 → fixed in 4.4.2
• Go github.com/sylabs/singularity: <= 3.1.1 (no fix yet)
Description
Impact
The `limit container paths` directive in `singularity.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
This issue is patched in SingularityCE 4.4.2 and SingularityPRO 4.3.9 / 4.1.14
Workarounds
If you do not use the `limit container paths` functionality, then this issue does not affect your installation.
If you do use the `limit container paths` functionality then you must update. Please also review the documented limitations when user namespaces are enabled [1].
Related
Alias · CVE (1)
- CVE-2026-47215 SingularityCE and SingularityPRO are open source container platforms. vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://github.com/sylabs/singularity/security/advisories/GHSA-wqcr-7rf3-f64m web
- https://github.com/sylabs/singularity/commit/c08791793e843d4c9c1f2fc1d9d12abef747378f web
- https://docs.sylabs.io/guides/latest/admin-guide/configfiles.html#limiting-container-execution web
- https://github.com/sylabs/singularity package
- https://github.com/sylabs/singularity/releases/tag/v4.4.2 web