{"id":"CVE-2025-65105","aliases":["CVE-2025-65105","GHSA-j3rw-fx6g-q46j","GO-2025-4176"],"related":[],"kind":"vulnerability","state":"published","title":"Apptainer ineffective application of selinux and apparmor --security options","summary":"Apptainer is an open source container platform. In Apptainer versions less than 1.4.5, a container can disable two of the forms of the little used --security option, in particular the forms --security=apparmor:<profile> and --security=selinux:<label> which otherwise put restrictions on operations that containers can do. The --security option has always been mentioned in Apptainer documentation as being a feature for the root user, although these forms do also work for unprivileged users on systems where the corresponding feature is enabled. Apparmor is enabled by default on Debian-based distributions and SElinux is enabled by default on RHEL-based distributions, but on SUSE it depends on the distribution version. This vulnerability is fixed in 1.4.5.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Apptainer is an open source container platform. In Apptainer versions less than 1.4.5, a container can disable two of the forms of the little used --security option, in particular the forms --security=apparmor:<profile> and --security=selinux:<label> which otherwise put restrictions on operations that containers can do. The --security option has always been mentioned in Apptainer documentation as being a feature for the root user, although these forms do also work for unprivileged users on systems where the corresponding feature is enabled. Apparmor is enabled by default on Debian-based distributions and SElinux is enabled by default on RHEL-based distributions, but on SUSE it depends on the distribution version. This vulnerability is fixed in 1.4.5.","source":"cvelist"},{"lang":"en","text":"### Impact\nIn Apptainer versions less than 1.4.5, a container can disable two of the forms of the little used `--security` option, in particular the forms `--security=apparmor:<profile>` and `--security=selinux:<label>` which otherwise put restrictions on operations that containers can do.  The `--security` option has always been mentioned in Apptainer documentation as being a feature for the root user, although these forms do also work for unprivileged users on systems where the corresponding feature is enabled.  Apparmor is enabled by default on Debian-based distributions and SElinux is enabled by default on RHEL-based distributions, but on SUSE it depends on the distribution version.\n\nIn addition, a bug in the detection of selinux support in Apptainer's suid mode means that `--security selinux:<label>` flags may not be applied, even in the absence of an attack.  In that case a warning message is emitted indicating that selinux is unavailable, but the warning may be may be overlooked, mis-interpreted, or not seen when apptainer is run from a script or other tool.  Failure to apply requested restrictions should result in a fatal error rather than just a warning message.\n\n### Patches\nIneffective write of selinux process labels is addressed via an update to the containers/selinux dependency in https://github.com/apptainer/apptainer/pull/3226. That update brings in the upstream fix for https://github.com/advisories/GHSA-cgrx-mc8f-2prm which was for a different but related vulnerability.\n\nIneffective write of apparmor process profiles is addressed in commit 4313b42.\n\nFailure to detect apparmor / selinux support, when --security flags are provided, is made an error rather than a warning in commit 82f1790.\n\n### Workarounds\nThere are no known workarounds, other than to define system-wide apparmor / selinux policy for Apptainer itself. This would apply to all containers, not just those run with the `--security` flags, and could impact the operation of Apptainer itself.\n\n### References\nThanks to Sylabs for finding this issue, fixing it in https://github.com/sylabs/singularity/security/advisories/GHSA-wwrx-w7c9-rf87 which was easy to import into Apptainer, and disclosing it early to the Apptainer project for a coordinated release.\n\nThe related upstream runc disclosure which inspired the investigation is https://github.com/opencontainers/runc/security/advisories/GHSA-cgrx-mc8f-2prm.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Apptainer ineffectively applies selinux and apparmor --security options in github.com/apptainer/apptainer","format":"markdown","source":"go"},{"lang":"es","text":"Apptainer es una plataforma de contenedores de código abierto. En versiones de Apptainer anteriores a la 1.4.5, un contenedor puede deshabilitar dos de las formas de la poco utilizada opción '--security', en particular las formas '--security=apparmor:<profile>' y '--security=selinux:<label>', las cuales de otro modo imponen restricciones a las operaciones que los contenedores pueden realizar. La opción '--security' siempre ha sido mencionada en la documentación de Apptainer como una característica para el usuario root, aunque estas formas también funcionan para usuarios sin privilegios en sistemas donde la característica correspondiente está habilitada. Apparmor está habilitado por defecto en distribuciones basadas en Debian y SElinux está habilitado por defecto en distribuciones basadas en RHEL, pero en SUSE depende de la versión de la distribución. Esta vulnerabilidad está corregida en la versión 1.4.5.","source":"nvd"}],"published":"2025-12-02T17:49:17.312Z","modified":"2026-10-18T18:10:00.100Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","score":4.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","score":4.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","score":4.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-61","CWE-706"],"affected":[{"ranges":[{"version":"< 1.4.5","status":"affected"}],"vendor":"apptainer","product":"apptainer","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.5"}],"ecosystem":"Go","package":"github.com/apptainer/apptainer","purl":"pkg:golang/github.com/apptainer/apptainer","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.5"}],"ecosystem":"Go","package":"github.com/apptainer/apptainer","purl":"pkg:golang/github.com/apptainer/apptainer","source":"go"},{"ranges":[{"status":"affected","fixed":"1.4.5"}],"vendor":"lfprojects","product":"apptainer","cpe":"cpe:2.3:a:lfprojects:apptainer:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/apptainer/apptainer/security/advisories/GHSA-j3rw-fx6g-q46j","tags":["advisory","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/opencontainers/runc/security/advisories/GHSA-cgrx-mc8f-2prm","tags":["not-applicable","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/sylabs/singularity/security/advisories/GHSA-wwrx-w7c9-rf87","tags":["not-applicable","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/apptainer/apptainer/pull/3226","tags":["fix","issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/apptainer/apptainer/commit/4313b42717e18a4add7dd7503528bc15af905981","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/apptainer/apptainer/commit/82f17900a0c31bc769bf9b4612d271c7068d8bf2","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65105","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/apptainer/apptainer","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-12-02T18:43:58.398Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-65105","url":"https://www.cve.org/CVERecord?id=CVE-2025-65105","licence":"CVE Terms of Use","modified":"2025-12-02T18:46:30.677Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j3rw-fx6g-q46j","url":"https://github.com/advisories/GHSA-j3rw-fx6g-q46j","licence":"CC-BY-4.0","modified":"2026-02-04T03:44:37.183Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-4176","url":"https://pkg.go.dev/vuln/GO-2025-4176","licence":"CC-BY-4.0","modified":"2026-03-03T04:57:43.462Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-65105","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65105","licence":"Public domain","modified":"2026-10-18T18:10:00.100Z"}],"updatedAt":"2026-11-25T22:59:08.201Z","epss":{"score":0.00249,"percentile":0.17339,"date":"2026-12-01T12:00:22.000Z"}}