CVE-2021-32635Action Commands (run/shell/exec) Against Library URIs Ignore Configured Remote Endpoint
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.
What to do
Fixed builds are available from Alpine, Go: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | singularity-container | Under investigation | UBUNTU-CVE-2021-32635 | |
| Ubuntu 25.10 | singularity-container | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-32635 | |
| Ubuntu 24.04 | singularity-container | Fix pending | UBUNTU-CVE-2021-32635 | |
| Ubuntu 18.04 | singularity-container | Fix pending | UBUNTU-CVE-2021-32635 | |
| Alpine Linux 3.24 | singularity | Fixed | 3.7.4-r0 | ALPINE-CVE-2021-32635 |
| Alpine Linux 3.23 | singularity | Fixed | 3.7.4-r0 | ALPINE-CVE-2021-32635 |
| Alpine Linux 3.22 | singularity | Fixed | 3.7.4-r0 | ALPINE-CVE-2021-32635 |
| Alpine Linux 3.21 | singularity | Fixed | 3.7.4-r0 | ALPINE-CVE-2021-32635 |
| Alpine Linux 3.20 | singularity | Fixed | 3.7.4-r0 | ALPINE-CVE-2021-32635 |
| Alpine Linux 3.19 | singularity | Fixed | 3.7.4-r0 | ALPINE-CVE-2021-32635 |
| Go library | github.com/sylabs/singularity | Fixed | 3.7.4 | GHSA-5mv9-q7fq-9394 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- sylabs singularity: affected: >= 3.7.2, <= 3.7.3
Vendor advisories:
- https://security.gentoo.org/glsa/202107-50 (vendor-advisory)
References
- https://github.com/sylabs/singularity/security/advisories/GHSA-5mv9-q7fq-9394
- https://github.com/sylabs/singularity/releases/tag/v3.7.4
- https://security.gentoo.org/glsa/202107-50
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.