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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.42% (percentile 73, 2026-11-26)
- **CWE:** CWE-923, CWE-20
- **Aliases:** GHSA-5mv9-q7fq-9394
- **Published:** 2021-05-28T20:20:12.000Z
- **Modified:** 2026-07-08T06:28:19.961Z

## Who should check

- Projects that depend on Go package github.com/sylabs/singularity (\>= 3.7.2, \< 3.7.4)
- Anyone running sylabs singularity \>= 3.7.2, \<= 3.7.3

## 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.

## Affected and fixed versions

- Go `github.com/sylabs/singularity`: affected \>= 3.7.2, \< 3.7.4; fixed 3.7.4 (osv)
- sylabs singularity: \>= 3.7.2, \<= 3.7.3 (cvelist)

## Mitigation

- Upgrade github.com/sylabs/singularity to 3.7.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-32635. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-32635.md
Affected: github.com/sylabs/singularity >= 3.7.2, < 3.7.4
Fixed in: 3.7.4

Steps:
1. Search this machine and project for github.com/sylabs/singularity (Go), sylabs singularity: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-32635 being exploited?

There is no confirmed exploitation: CVE-2021-32635 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.42% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-32635?

Medium: CVSS 6.3 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2021-32635?

github.com/sylabs/singularity \>= 3.7.2, \< 3.7.4.

### Is there a fix for CVE-2021-32635?

Yes. Fixed in 3.7.4. Upgrade github.com/sylabs/singularity to 3.7.4 or later.

### How do I check if I'm affected by CVE-2021-32635?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/sylabs/singularity/security/advisories/GHSA-5mv9-q7fq-9394>
- vendor: <https://security.gentoo.org/glsa/202107-50>
- vendor: <https://github.com/hpcng/singularity/security/advisories/GHSA-jq42-hfch-42f3>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-32635>
- patch: <https://github.com/sylabs/singularity/commit/d52ae9d13979733c5e987a566fae59ed6f1bf796>
- other: <https://github.com/sylabs/singularity/releases/tag/v3.7.4>
- other: <https://github.com/sylabs/singularity>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-32635>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-5mv9-q7fq-9394> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-32635> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-32635>
