CVE-2021-32635
Description
Singularity is an open source container platform. In verions 3.7.2 and 3.7.3, Dde to incorrect use of a default URL, `singularity` action commands (`run`/`shell`/`exec`) specifying a container using a `library://` URI will always attempt to retrieve the container from the default remote endpoint (`cloud.sylabs.io`) rather than the configured remote endpoint. An attacker may be able to push a malicious container to the default remote endpoint with a URI that is identical to the URI used by a victim with a non-default remote endpoint, thus executing the malicious container. Only action commands (`run`/`shell`/`exec`) against `library://` URIs are affected. Other commands such as `pull` / `push` respect the configured remote endpoint. The vulnerability is patched in Singularity version 3.7.4. Two possible workarounds exist: Users can only interact with the default remote endpoint, or an installation can have an execution control list configured to restrict execution to containers signed with specific secure keys.
Weakness
- CWE-923: Improper Restriction of Communication Channel to Intended Endpoints
- CWE-20: Improper Input Validation
Timeline
- 2021-05-28Published by the CNA20:20 UTC
- 2021-06-01GitHub advisory published (GHSA-5mv9-q7fq-9394)4 days after publication
Exploit and advisory records
GitHub advisory GHSA-5mv9-q7fq-9394, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/sylabs/singularity | from 3.7.2 before 3.7.4 | 3.7.4 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| sylabs singularity | 3.7.2no fix listed3.7.3no fix listed | not listednot listed |
References
- https://security.gentoo.org/glsa/202107-50
- https://github.com/sylabs/singularity/releases/tag/v3.7.4
- https://github.com/sylabs/singularity/security/advisories/GHSA-5mv9-q7fq-9394
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-32635'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-32635'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-32635'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-32635'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).