CVE-2025-64750: Github.com/sylabs/singularity/v4 Singluarity Ineffectively Applies Selinux / Vulnerability
MODERATECVE-2025-64750 is a MODERATE (CVSS 4.5) singluarity ineffectively applies selinux / vulnerability (CWE-706: Use of Incorrectly-Resolved Name or Reference) affecting Github.com/sylabs/singularity/v4 libraries in the Go ecosystem. The issue involves singluarity ineffectively applies selinux / apparmor lsm process labels. Remediation is available by upgrading affected packages to version 4.3.5, 4.1.11.
CVE-2025-64750 at a Glance
Security Impact
CVSS: 4.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L).
How to Fix CVE-2025-64750
To remediate this vulnerability, upgrade all affected Github.com/sylabs/singularity/v4 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/sylabs/singularity/v4 to 4.3.5
Upgrade github.com/sylabs/singularity/v4 to 4.1.11
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/sylabs/singularity/v4
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-64750, inspect your project dependencies for Github.com/sylabs/singularity/v4:
inspect dependencies for github.com/sylabs/singularity/v4
Analyze the terminal output to locate any version of Github.com/sylabs/singularity/v4 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.3.5), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-706: Use of Incorrectly-Resolved Name or Reference, where the product uses a name or reference to access a resource, but the name/reference resolves to a resource that is outside of the intended control sphere. In Github.com/sylabs/singularity/v4, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-64750 Affected Github.com/sylabs/singularity/v4 Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/sylabs/singularity/v4
|
Go |
< 4.3.5
≥ 4.2.0-rc.1
|
4.3.5
|
|
github.com/sylabs/singularity/v4
|
Go |
< 4.1.11
|
4.1.11
|
References
Frequently Asked Questions
What is CVE-2025-64750?
Which Github.com/sylabs/singularity/v4 versions are affected?
What version fixes CVE-2025-64750?
Is github.com/sylabs/singularity/v4 affected?
What is the CVSS score of CVE-2025-64750?
What CWE is associated with CVE-2025-64750?
How can I check Go dependencies for CVE-2025-64750?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wwrx-w7c9-rf87",
"modified" : "2025-12-09T19:51:27Z",
"published" : "2025-12-02T21:07:02Z",
"aliases" : [ "CVE-2025-64750" ],
"summary" : "Singluarity ineffectively applies selinux / apparmor LSM process labels",
"details" : "### 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)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/sylabs/singularity/v4"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2.0-rc.1"
}, {
"fixed" : "4.3.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/sylabs/singularity/v4"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.1.11"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/opencontainers/runc/security/advisories/GHSA-cgrx-mc8f-2prm"
}, {
"type" : "WEB",
"url" : "https://github.com/sylabs/singularity/security/advisories/GHSA-wwrx-w7c9-rf87"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-64750"
}, {
"type" : "WEB",
"url" : "https://github.com/sylabs/singularity/pull/3850"
}, {
"type" : "WEB",
"url" : "https://github.com/sylabs/singularity/commit/27882963879a7af1699fd6511c3f5f1371d80f33"
}, {
"type" : "WEB",
"url" : "https://github.com/sylabs/singularity/commit/5af3e790c40593591dfc26d0692e4d4b21c29ba0"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-fh74-hm69-rqjw"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sylabs/singularity"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2025-4177"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-61", "CWE-706" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-02T21:07:02Z",
"nvd_published_at" : "2025-12-02T18:15:48Z"
}
}