{"id":"CVE-2026-47215","aliases":["CVE-2026-47215","GHSA-wqcr-7rf3-f64m","GO-2026-5715"],"related":[],"kind":"vulnerability","state":"published","title":"Singularity: Incorrect path matching for 'limit container paths' directive","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe `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.\n\nFor example, the configuration:\n\n```\nlimit container paths = /data/safe\n```\n\nWill also allow containers in `/data/safe-but-unsafe` to be run.\n\n\n### Patches\n\nThis issue is patched in SingularityCE 4.4.2 and SingularityPRO 4.3.9 / 4.1.14\n\n### Workarounds\n\nIf you do not use the `limit container paths` functionality, then this issue does not affect your installation.\n\nIf you do use the `limit container paths` functionality then you must update. Please also review the documented limitations when user namespaces are enabled [1].","format":"markdown","source":"ghsa"},{"lang":"en","text":"Singularity: Incorrect path matching for 'limit container paths' directive in github.com/sylabs/singularity","format":"markdown","source":"go"}],"published":"2026-06-04T17:38:21.000Z","modified":"2026-09-25T14:23:59.847Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","score":4.8,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 4.4.2","status":"affected"}],"vendor":"sylabs","product":"singularity","source":"cvelist"},{"ranges":[{"version":"< 4.1.14","status":"affected"},{"version":">= 4.2.0, < 4.3.9","status":"affected"}],"vendor":"sylabs","product":"SingularityPRO","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.4.2"}],"ecosystem":"Go","package":"github.com/sylabs/singularity/v4","purl":"pkg:golang/github.com/sylabs/singularity/v4","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"3.1.1"}],"ecosystem":"Go","package":"github.com/sylabs/singularity","purl":"pkg:golang/github.com/sylabs/singularity","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/sylabs/singularity","purl":"pkg:golang/github.com/sylabs/singularity","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.4.2"}],"ecosystem":"Go","package":"github.com/sylabs/singularity/v4","purl":"pkg:golang/github.com/sylabs/singularity/v4","source":"go"}],"references":[{"url":"https://github.com/sylabs/singularity/security/advisories/GHSA-wqcr-7rf3-f64m","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/sylabs/singularity/pull/4152","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/sylabs/singularity/commit/c08791793e843d4c9c1f2fc1d9d12abef747378f","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/sylabs/singularity/commit/c1dc9470a769e6e534b588a4ed521768ca4fc0d1","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/sylabs/singularity/releases/tag/v4.4.2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://docs.sylabs.io/guides/latest/admin-guide/configfiles.html#limiting-container-execution","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/sylabs/singularity","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-15T17:38:21.591Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-47215","url":"https://www.cve.org/CVERecord?id=CVE-2026-47215","licence":"CVE Terms of Use","modified":"2026-09-15T18:02:51.510Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wqcr-7rf3-f64m","url":"https://github.com/advisories/GHSA-wqcr-7rf3-f64m","licence":"CC-BY-4.0","modified":"2026-06-25T23:11:43.816Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5715","url":"https://pkg.go.dev/vuln/GO-2026-5715","licence":"CC-BY-4.0","modified":"2026-06-25T23:01:35.235Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-47215","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47215","licence":"Public domain","modified":"2026-09-25T14:23:59.847Z"}],"updatedAt":"2026-11-25T22:59:38.551Z","epss":{"score":0.00153,"percentile":0.0466,"date":"2026-12-01T12:00:22.000Z"}}