NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2026-47215: Singluarity: Incorrect path matching for 'limit container paths' directive

mediumCVSS 3.1 4.8GHSA-wqcr-7rf3-f64m

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: Will also allow containers in /data/safe-but-unsafe to be run.

Published Jun 4, 2026

Affected packages

github.com/sylabs/singularity/v4

Ecosystem
Go
Affected
< 4.4.2
Fixed in
4.4.2
Check
go list -m github.com/sylabs/singularity/v4

github.com/sylabs/singularity

Ecosystem
Go
Affected
<= 3.1.1
Fixed in
No patched version yet
Check
go list -m github.com/sylabs/singularity

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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].

Credited to dtrudg.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Go vulnerabilities

All Go entries