{"id":"GHSA-cr2j-534f-mf3g","revision":"5c60effb8d454e35b6ad141e1ec033fb","records":[{"revision":"5c60effb8d454e35b6ad141e1ec033fb","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-cr2j-534f-mf3g","aliases":["CVE-2026-48785","GO-2026-5805"],"title":"Apptainer has incorrect path matching for 'limit container paths' directive ","description":"### Impact\n\nThe `limit container paths directive` in `apptainer.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```\nlimit container paths = /data/safe\n```\nWill also allow containers in /data/safe-but-unsafe to be run.\n\n### Patches\n\nThe issue is patched in apptainer version 1.5.1.\n\n### Workarounds\n\nIf developers do not use setuid mode or do not use the `limit container paths` functionality, then this issue does not affect their installation. Note that, as documented [1], if user namespaces are allowed for unrestricted use then this functionality does not stop users from running any container of their choice.\n\nIf developers do use the `limit container paths` functionality they are advised to update.\n\n### Credit\n\nThis vulnerability was discovered and disclosed to the Apptainer project by Dave Trudgian of Sylabs.\n\n### Resources\n\n[1] https://apptainer.org/docs/admin/latest/configfiles.html#limiting-container-execution","state":0,"publishedAt":"2026-06-26T19:20:33+00:00","modifiedAt":"2026-07-07T16:11:14.7976795+00:00","affected":[{"ecosystem":"Go","name":"github.com/apptainer/apptainer","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.5.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/apptainer/apptainer/security/advisories/GHSA-cr2j-534f-mf3g","https://github.com/apptainer/apptainer"],"sourceUrl":"https://github.com/advisories/GHSA-cr2j-534f-mf3g","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-cr2j-534f-mf3g","identifiers":["GHSA-cr2j-534f-mf3g","CVE-2026-48785","GO-2026-5805"]},"retained":false,"historicalAffected":[]}],"coverage":[]}