{"id":"CVE-2025-64750","aliases":["CVE-2025-64750","GHSA-wwrx-w7c9-rf87","GO-2025-4177"],"related":["CVE-2025-65105"],"kind":"vulnerability","state":"published","title":"Singluarity ineffectively applies of selinux / apparmor LSM process labels","summary":"SingularityCE and SingularityPRO are open source container platforms. Prior to SingularityCE 4.3.5 and SingularityPRO 4.1.11 and 4.3.5, if a user relies on LSM restrictions to prevent malicious operations then, under certain circumstances, an attacker can redirect the LSM label write operation so that it is ineffective. The attacker must cause the user to run a malicious container image that redirects the mount of /proc to the destination of a shared mount, either known to be configured on the target system, or that will be specified by the user when running the container. The attacker must also control the content of the shared mount, for example through another malicious container which also binds it, or as a user with relevant permissions on the host system it is bound from. This vulnerability is fixed in SingularityCE 4.3.5 and SingularityPRO 4.1.11 and 4.3.5.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"SingularityCE and SingularityPRO are open source container platforms. Prior to SingularityCE 4.3.5 and SingularityPRO 4.1.11 and 4.3.5, if a user relies on LSM restrictions to prevent malicious operations then, under certain circumstances, an attacker can redirect the LSM label write operation so that it is ineffective. The attacker must cause the user to run a malicious container image that redirects the mount of /proc to the destination of a shared mount, either known to be configured on the target system, or that will be specified by the user when running the container. The attacker must also control the content of the shared mount, for example through another malicious container which also binds it, or as a user with relevant permissions on the host system it is bound from. This vulnerability is fixed in SingularityCE 4.3.5 and SingularityPRO 4.1.11 and 4.3.5.","source":"cvelist"},{"lang":"en","text":"### Impact\n\n_**Native Mode (default)**_\n\nSingularity's default native runtime allows users to apply restrictions to container processes using the apparmor or selinux Linux Security Modules (LSMs), via the `--security selinux:<label>` or `--security apparmor:<profile>` flags.\n\nLSM labels are written to process or thread `attrs/exec` under `/proc`. If a user relies on LSM restrictions to prevent malicious operations then, under certain circumstances, an attacker can redirect the LSM label write operation so that it is ineffective. This requires:\n\n* The attacker to cause the user to run a malicious container image that redirects the mount of `/proc` to the destination of a shared mount, either known to be configured on the target system, or that will be specified by the user when running the container.\n* Control of the content of the shared mount, for example through another malicious container which also binds it, or as a user with relevant permissions on the host system it is bound from.\n\nNote that Singularity does not attempt to prevent damaging operations, or container escape, from containers that are started as the host root user. When a non-root user starts a container any LSM writes to /proc are performed as that user. For these reasons, the denial-of-service and container escape attacks detailed in [runc CVE-2025-52881](https://github.com/opencontainers/runc/security/advisories/GHSA-cgrx-mc8f-2prm) are not relevant. Processes running in non-root containers are subject to the standard permissions for the non-root account used, and cannot escalate privilege, even when intended container-specific LSM labels are not correctly applied.\n\nIn addition, a bug in the detection of selinux support in Singularity's default setuid flow means that `--security selinux:<label>` flags may not be applied, even in the absence of an attack  - but in this case a warning message is emitted, indicating that selinux is unavailable. This warning may be may be overlooked, mis-interpreted, or not seen when singularity is run from a script or other tool. Failure to apply requested restrictions should result in a fatal error, rather than a warning message.\n\n_**OCI-Mode**_\n\nSingularity's OCI-mode is unaffected as it does not currently support applying LSM restrictions via the `--security` flag.\n\n### Patches\n\nIneffective write of selinux process labels is addressed via an update to the containers/selinux dependency in https://github.com/sylabs/singularity/pull/3850. This update brings in the upstream fix for CVE-2025-52881 in this dependency.\n\nIneffective write of apparmor process labels is addressed in commit 5af3e79.\n\nFailure to detect apparmor / selinux support, when `--security` flags are provided, is made an error rather than a warning in commit 2788296.\n\n### Workarounds\n\nThere are no known workarounds, other than to define system-wide apparmor / selinux policy for Singularity itself. This would apply to all containers, not just those run with the `--security` flags. Additionally, restrictions that are reasonable to apply to container processes may impact the functionality of Singularity.\n\n### References\n\nRelated vulnerabilities in runc:\n\n* [runc CVE-2025-52881](https://github.com/opencontainers/runc/security/advisories/GHSA-cgrx-mc8f-2prm)\n* [runc CVE-2019-19921](https://github.com/advisories/GHSA-fh74-hm69-rqjw)","format":"markdown","source":"ghsa"},{"lang":"en","text":"Singularity ineffectively applies of selinux / apparmor LSM process labels in github.com/sylabs/singularity.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/sylabs/singularity/v4 before v4.1.11.","format":"markdown","source":"go"},{"lang":"es","text":"SingularityCE y SingularityPRO son plataformas de contenedores de código abierto. Versiones anteriores a SingularityCE 4.3.5 y SingularityPRO 4.1.11 y 4.3.5, si un usuario depende de las restricciones de LSM para prevenir operaciones maliciosas, entonces, bajo ciertas circunstancias, un atacante puede redirigir la operación de escritura de etiquetas de LSM para que sea ineficaz. El atacante debe hacer que el usuario ejecute una imagen de contenedor maliciosa que redirija el montaje de /proc al destino de un montaje compartido, ya sea conocido por estar configurado en el sistema de destino, o que será especificado por el usuario al ejecutar el contenedor. El atacante también debe controlar el contenido del montaje compartido, por ejemplo, a través de otro contenedor malicioso que también lo vincule, o como un usuario con permisos relevantes en el sistema anfitrión desde el que está vinculado. Esta vulnerabilidad está corregida en SingularityCE 4.3.5 y SingularityPRO 4.1.11 y 4.3.5.","source":"nvd"}],"published":"2025-12-02T17:25:55.825Z","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"}],"cwes":["CWE-61","CWE-706"],"affected":[{"ranges":[{"version":"> 4.2.0-rc.1, < 4.3.5","status":"affected"},{"version":"< 4.1.11","status":"affected"}],"vendor":"sylabs","product":"singularity","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.2.0-rc.1","status":"affected","fixed":"4.3.5"}],"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","fixed":"4.1.11"}],"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"}],"ecosystem":"Go","package":"github.com/sylabs/singularity","purl":"pkg:golang/github.com/sylabs/singularity","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"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-wwrx-w7c9-rf87","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/opencontainers/runc/security/advisories/GHSA-cgrx-mc8f-2prm","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/sylabs/singularity/pull/3850","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/sylabs/singularity/commit/27882963879a7af1699fd6511c3f5f1371d80f33","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/sylabs/singularity/commit/5af3e790c40593591dfc26d0692e4d4b21c29ba0","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/advisories/GHSA-fh74-hm69-rqjw","tags":["advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64750","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/sylabs/singularity","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2025-4177","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-12-02T17:47:25.267Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-64750","url":"https://www.cve.org/CVERecord?id=CVE-2025-64750","licence":"CVE Terms of Use","modified":"2025-12-02T17:54:44.920Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wwrx-w7c9-rf87","url":"https://github.com/advisories/GHSA-wwrx-w7c9-rf87","licence":"CC-BY-4.0","modified":"2026-02-04T04:21:29.220Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-4177","url":"https://pkg.go.dev/vuln/GO-2025-4177","licence":"CC-BY-4.0","modified":"2026-03-03T04:57:44.379Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-64750","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64750","licence":"Public domain","modified":"2026-10-18T18:10:00.100Z"}],"updatedAt":"2026-11-25T22:59:08.200Z","epss":{"score":0.00172,"percentile":0.06873,"date":"2026-12-01T12:00:22.000Z"}}