{"answers":{"affected":"2 open source packages ship an affected version, including github.com/sylabs/singularity. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-32635 in the wild and no public exploit code.","fix":"Upgrade github.com/sylabs/singularity to 3.7.4 or later.","what":"CVE-2021-32635 is a medium-severity vulnerability in sylabs singularity, published on 28 May 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-32635 and fix it if it is affected.\n\nWhat it is: CVE-2021-32635 is a medium-severity vulnerability in sylabs singularity, published on 28 May 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-32635 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/sylabs/singularity (Go): affected from 3.7.2; fixed in 3.7.4\n- github.com/sylabs/singularity (Go): affected from 3.7.2; fixed in 3.7.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-32635/ (Markdown: https://insights.sbomify.com/CVE-2021-32635/index.md)","id":"CVE-2021-32635","markdown":"https://insights.sbomify.com/CVE-2021-32635/index.md","name":"CVE-2021-32635","record":{"aliases":["GHSA-5mv9-q7fq-9394","UBUNTU-CVE-2021-32635"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Singularity container platform","requires_auth":"none","summary":"Attackers can execute malicious containers by exploiting incorrect remote endpoint resolution in Singularity action commands, requiring non-default remote configurations.","user_interaction":"required","vuln_class":"supply_chain"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"singularity","vendor":"sylabs"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-923","name":"Improper Restriction of Communication Channel to Intended Endpoints"},{"id":"CWE-20","name":"Improper Input Validation"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Action Commands (run/shell/exec) Against Library URIs Ignore Configured Remote Endpoint","id":"CVE-2021-32635","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"supply_chain","year":"2021"},"n_packages":2,"n_references":3,"next":{"headline":"Authentication bypassed with malformed request URI","id":"CVE-2021-32637"},"packages":[{"ecosystem":"Go","fixed":["3.7.4"],"introduced":["3.7.2"],"last_affected":[],"package":"github.com/sylabs/singularity","purl":null,"source":"GHSA-5mv9-q7fq-9394"},{"ecosystem":"Go","fixed":["3.7.4"],"introduced":["3.7.2"],"last_affected":[],"package":"github.com/sylabs/singularity","purl":"pkg:golang/github.com/sylabs/singularity","source":"GHSA-5mv9-q7fq-9394"}],"prev":{"headline":"Deserialization of Untrusted Data in Emissary","id":"CVE-2021-32634"},"products":["singularity"],"published":"2021-05-28","related":[{"cvss_score":9.8,"headline":"Weak cryptography in n/a","id":"CVE-2021-33027","kev_date_added":null,"published":"2021-07-19"},{"cvss_score":9.8,"headline":"Other in n/a","id":"CVE-2021-33622","kev_date_added":null,"published":"2021-06-15"},{"cvss_score":7.8,"headline":"Sylabs Singularity Improper Input Validation","id":"CVE-2018-19295","kev_date_added":null,"published":"2018-12-17"},{"cvss_score":7.5,"headline":"Execution Control List (ECL) Is Insecure in Singularity","id":"CVE-2020-13845","kev_date_added":null,"published":"2020-07-14"},{"cvss_score":7.5,"headline":"\"Verify All\" Returns Success Despite Validation Failures in Singularity","id":"CVE-2020-13846","kev_date_added":null,"published":"2020-07-14"},{"cvss_score":7.5,"headline":"Other in n/a","id":"CVE-2020-13847","kev_date_added":null,"published":"2020-07-14"},{"cvss_score":7.5,"headline":"Singularity insecure permissions","id":"CVE-2019-19724","kev_date_added":null,"published":"2019-12-18"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["sylabs"]},"summary":"Attackers can execute malicious containers by exploiting incorrect remote endpoint resolution in Singularity action commands, requiring non-default remote configurations.","url":"https://insights.sbomify.com/CVE-2021-32635/"}