4.8medium
Singularity: Incorrect path matching for 'limit container paths' directive
- Severity
- 4.8medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-wqcr-7rf3-f64mGO-2026-5715
Description
SingularityCE and SingularityPRO are open source container platforms. Prior to SingularityCE 4.4.2 and SingularityPRO 4.3.9 and 4.1.14, incorrect path-string matching in the singularity.conf limit container paths directive allows a container in a sibling directory such as /data/safe-but-unsafe to be run when /data/safe is allowed under setuid mode. This permits a user to run a container from outside the administrator's configured path allowlist. Installations that do not use limit container paths are not affected. This issue is fixed in SingularityCE 4.4.2 and SingularityPRO 4.3.9 and 4.1.14.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| sylabs singularity | < 4.4.2 | CVE List |
| sylabs SingularityPRO | < 4.1.14, >= 4.2.0, < 4.3.9 | CVE List |
| github.com/sylabs/singularity/v4 (Go) | before 4.4.2 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/sylabs/singularity (Go) | up to 3.1.1, all versions | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 4.8medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L |
| GitHub | 4.8medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
SingularityCE and SingularityPRO are open source container platforms. Prior to SingularityCE 4.4.2 and SingularityPRO 4.3.9 and 4.1.14, incorrect path-string matching in the singularity.conf limit container paths directive allows a container in a sibling directory such as /data/safe-but-unsafe to be run when /data/safe is allowed under setuid mode. This permits a user to run a container from outside the administrator's configured path allowlist. Installations that do not use limit container paths are not affected. This issue is fixed in SingularityCE 4.4.2 and SingularityPRO 4.3.9 and 4.1.14.
GitHub Advisory Database
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].
Go Vulnerability Database
Singularity: Incorrect path matching for 'limit container paths' directive in github.com/sylabs/singularity
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-47215 changed 2026-09-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wqcr-7rf3-f64m changed 2026-06-25 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5715 changed 2026-06-25 | CC-BY-4.0 |
| NVD | CVE-2026-47215 changed 2026-09-25 | Public domain |