{"id":"CVE-2020-13846","aliases":["GHSA-6w7g-p4jh-rf92"],"title":"\"Verify All\" Returns Success Despite Validation Failures in Singularity","summary":"\"Verify All\" Returns Success Despite Validation Failures in Singularity","severity":"high","cvss":7.5,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","vendor":"sylabs","product":"github.com/sylabs/singularity","ecosystem":"go","affected":["github.com/sylabs/singularity >= 3.5.0, < 3.6.0"],"patched":["github.com/sylabs/singularity 3.6.0"],"published":"2021-12-20","updated":"2026-07-08","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-6w7g-p4jh-rf92","references":[{"url":"https://github.com/hpcng/singularity/security/advisories/GHSA-6w7g-p4jh-rf92"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-13846"},{"url":"https://github.com/sylabs/singularity"},{"url":"https://medium.com/sylabs"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00046.html"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00059.html"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00053.html"}],"tags":["osv","go"],"epss":0.01336,"epssPercentile":0.69977,"ingestedAt":"2026-07-09T18:56:36.014Z","slug":"CVE-2020-13846","body":"## Overview\n\n### Impact\n\nThe `--all / -a` option to `singularity verify` returns success even when some objects in a SIF container are not signed, or cannot be verified.\n\nThe SIF objects that are not verified are reported in `WARNING` log messages, but a `Container Verified` message and exit code of `0`  are returned.\n\nWorkflows that verify a container using `--all / -a` and use the exit code as an indicator of success are vulnerable to running SIF containers that have unsigned, or modified, objects that may be exploited to introduce malicious behavior.\n\n```\n$ singularity verify -a image.sif \nWARNING: Missing signature for SIF descriptor 2 (JSON.Generic)\nWARNING: Missing signature for SIF descriptor 3 (FS)\nContainer is signed by 1 key(s):\n\nVerifying partition: Def.FILE:\n12045C8C0B1004D058DE4BEDA20C27EE7FF7BA84\n[LOCAL]   Unit Test <unit@test.com>\n[OK]      Data integrity verified\n\nINFO:    Container verified: image.sif\n\n$ echo $?\n0\n```\n\n\n### Patches\n\nSingularity 3.6.0 has a new implementation of sign/verify that fixes this issue.\n\nAll users are advised to upgrade to 3.6.0. Note that Singularity 3.6.0 uses a new signature format that is necessarily incompatible with Singularity < 3.6.0 - e.g. Singularity 3.5.3 cannot verify containers signed by 3.6.0.\n\nVersion 3.6.0 includes a `--legacy-insecure` flag for the `singularity verify` command, that will perform verification of the older, and insecure, legacy signatures for compatibility with existing containers. This does not guarantee that containers have not been modified since signing, due to other issues in the legacy signature format.\n\n### Workarounds\n\nIf you are unable to update to 3.6.0 ensure that you do not rely on the return code of `singularity verify --all / -a` as an indicator of trust in a container.\n\nNote that other issues in the sign/verify implementation in Singularity < 3.6.0 allow additional means to introduce malicious behavior to a signed container.\n\n\n### For more information\n\nGeneral questions about the impact of the advisory / changes made in the 3.6.0 release can be asked in the:\n\n* [Singularity Slack Channel](https://bit.ly/2m0g3lX)\n* [Singularity Mailing List](https://groups.google.com/a/lbl.gov/forum/??sdf%7Csort:date#!forum/singularity)\n\nAny sensitive security concerns should be directed to: security@sylabs.io\n\nSee our Security Policy here: https://sylabs.io/security-policy\n\n## Affected packages\n\n- `github.com/sylabs/singularity >= 3.5.0, < 3.6.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `github.com/sylabs/singularity 3.6.0`","depth":"twilight","depthScore":42,"depthScoreParts":{"impact":41.3,"likelihood":0.3,"exploitation":0,"ransomware":0},"changes":[]}