{"id":"CVE-2021-32635","aliases":["CVE-2021-32635","GHSA-5mv9-q7fq-9394"],"related":[],"kind":"vulnerability","state":"published","title":"Action Commands (run/shell/exec) Against Library URIs Ignore Configured Remote Endpoint","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nDue 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.\n\nAn 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.\n\nOnly action commands (`run`/`shell`/`exec`) against `library://` URIs are affected. Other commands such as `pull` / `push` respect the configured remote endpoint.\n\n### Patches\n\nAll users should upgrade to Singularity 3.7.4 or later.\n\nA patch was applied at: https://github.com/sylabs/singularity/commit/d52ae9d13979733c5e987a566fae59ed6f1bf796\n\n### Workarounds\n\nUsers who only interact with the default remote endpoint are not affected.\n\nInstallations with an execution control list configured to restrict execution to containers signed with specific secure keys are not affected.\n\n### For more information\n\nGeneral questions about the impact of the advisory can be asked in the:\n\n- [SingularityCE Slack Channel](https://singularityce.slack.com)\n- [SingularityCE Mailing List](https://groups.google.com/g/singularity-ce)\n\nAny sensitive security concerns should be directed to: security@sylabs.io\n\nSee our Security Policy here: https://sylabs.io/security-policy","format":"markdown","source":"ghsa"},{"lang":"es","text":"Singularity es una plataforma de contenedores de código abierto. En las versiones 3.7.2 y 3.7.3, debido al uso incorrecto de una URL por defecto, los comandos de acción de `singularity` (`run`/`shell`/`exec`) que especifican un contenedor utilizando una URI `library://` siempre intentarán recuperar el contenedor desde el punto final remoto por defecto (`cloud.sylabs.io`) en lugar del punto final remoto configurado. Un atacante puede ser capaz de empujar un contenedor malicioso al punto final remoto por defecto con un URI que es idéntico al URI utilizado por una víctima con un punto final remoto no predeterminado, ejecutando así el contenedor malicioso. Sólo se ven afectados los comandos de acción (`run`/`shell`/`exec`) contra URIs `library://`. Otros comandos como `pull` / `push` respetan el endpoint remoto configurado. La vulnerabilidad está parcheada en la versión 3.7.4 de Singularity. Existen dos posibles soluciones: Los usuarios sólo pueden interactuar con el endpoint remoto por defecto, o una instalación puede tener una lista de control de ejecución configurada para restringir la ejecución a contenedores firmados con claves seguras específicas","source":"nvd"}],"published":"2021-05-28T20:20:12.000Z","modified":"2026-07-08T06:28:19.961Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-20","CWE-923"],"affected":[{"ranges":[{"version":">= 3.7.2, <= 3.7.3","status":"affected"}],"vendor":"sylabs","product":"singularity","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.7.2","status":"affected","fixed":"3.7.4"}],"ecosystem":"Go","package":"github.com/sylabs/singularity","purl":"pkg:golang/github.com/sylabs/singularity","source":"ghsa"},{"ranges":[{"status":"affected","version":"3.7.2"},{"status":"affected","version":"3.7.3"}],"vendor":"sylabs","product":"singularity","cpe":"cpe:2.3:a:sylabs:singularity:3.7.2:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/sylabs/singularity/security/advisories/GHSA-5mv9-q7fq-9394","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sylabs/singularity/releases/tag/v3.7.4","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.gentoo.org/glsa/202107-50","tags":["third-party-advisory","vendor-advisory","web","x-refsource-gentoo","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hpcng/singularity/security/advisories/GHSA-jq42-hfch-42f3","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32635","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/sylabs/singularity/commit/d52ae9d13979733c5e987a566fae59ed6f1bf796","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sylabs/singularity","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-32635","url":"https://www.cve.org/CVERecord?id=CVE-2021-32635","licence":"CVE Terms of Use","modified":"2024-08-03T23:25:31.038Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5mv9-q7fq-9394","url":"https://github.com/advisories/GHSA-5mv9-q7fq-9394","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:19.961Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-32635","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32635","licence":"Public domain","modified":"2026-06-17T03:53:19.233Z"}],"updatedAt":"2026-11-25T22:58:01.590Z","epss":{"score":0.01415,"percentile":0.7299,"date":"2026-11-30T12:00:22.000Z"}}