CVEfocus › CVE database › CVE-2021-32635

CVE-2021-32635Action Commands (run/shell/exec) Against Library URIs Ignore Configured Remote Endpoint

CVSS 6.3 MediumEPSS 1.4% (higher than 73% of CVEs)Published 2021-05-28Updated 2024-08-03Assigner: GitHub_M

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.

CWE-20CWE-923

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

7Fixed
2Fix pending
1Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04singularity-containerUnder investigationUBUNTU-CVE-2021-32635
Ubuntu 25.10singularity-containerWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-32635
Ubuntu 24.04singularity-containerFix pendingUBUNTU-CVE-2021-32635
Ubuntu 18.04singularity-containerFix pendingUBUNTU-CVE-2021-32635
Alpine Linux 3.24singularityFixed3.7.4-r0ALPINE-CVE-2021-32635
Alpine Linux 3.23singularityFixed3.7.4-r0ALPINE-CVE-2021-32635
Alpine Linux 3.22singularityFixed3.7.4-r0ALPINE-CVE-2021-32635
Alpine Linux 3.21singularityFixed3.7.4-r0ALPINE-CVE-2021-32635
Alpine Linux 3.20singularityFixed3.7.4-r0ALPINE-CVE-2021-32635
Alpine Linux 3.19singularityFixed3.7.4-r0ALPINE-CVE-2021-32635
Go librarygithub.com/sylabs/singularityFixed3.7.4GHSA-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.

Vendor advisories:

References

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.