{"id":"CVE-2021-41772","aliases":["CVE-2021-41772","GO-2021-0264","BIT-GOLANG-2021-41772"],"related":[],"kind":"vulnerability","state":"published","title":"Panic when opening certain archives in archive/zip","summary":"Go before 1.16.10 and 1.17.x before 1.17.3 allows an archive/zip Reader.Open panic via a crafted ZIP archive containing an invalid name or an empty filename field.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Go before 1.16.10 and 1.17.x before 1.17.3 allows an archive/zip Reader.Open panic via a crafted ZIP archive containing an invalid name or an empty filename field.","source":"cvelist"},{"lang":"en","text":"Previously, opening a zip with (*Reader).Open could result in a panic if the zip contained a file whose name was exclusively made up of slash characters or \"..\" path elements.\n\nOpen could also panic if passed the empty string directly as an argument.\n\nNow, any files in the zip whose name could not be made valid for fs.FS.Open will be skipped, and no longer added to the fs.FS file list, although they are still accessible through (*Reader).File.\n\nNote that it was already the case that a file could be accessible from (*Reader).Open with a name different from the one in (*Reader).File, as the former is the cleaned name, while the latter is the original one.\n\nFinally, the actual panic site was made robust as a defense-in-depth measure.","format":"markdown","source":"go"},{"lang":"es","text":"Go versiones anteriores a 1.16.10 y 1.17.x versiones anteriores a 1.17.3, permite un pánico de archivo/zip Reader.Open por medio de un archivo ZIP diseñado que contiene un nombre no válido o un campo filename vacío","source":"nvd"}],"published":"2021-11-08T00:00:00.000Z","modified":"2026-10-16T09:45:16.378Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.16.10"},{"type":"semver","introduced":"1.17.0-0","status":"affected","fixed":"1.17.3"}],"ecosystem":"Go","package":"stdlib","purl":"pkg:golang/stdlib","source":"go"},{"ranges":[{"status":"affected","fixed":"1.16.10"},{"status":"affected","introduced":"1.17.0","fixed":"1.17.3"}],"vendor":"golang","product":"go","cpe":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"34"},{"status":"affected","version":"35"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"oracle","product":"timesten_in-memory_database","cpe":"cpe:2.3:a:oracle:timesten_in-memory_database:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.16.10"},{"type":"semver","introduced":"1.17.0","status":"affected","fixed":"1.17.3"}],"ecosystem":"Bitnami","package":"golang","purl":"pkg:bitnami/golang","source":"bitnami"}],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4OFS3M3OFB24SWPTIAPARKGPUMQVUY6Z/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ON7BQRRJZBOR5TJHURBAB3WLF4YXFC6Z/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["advisory","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://groups.google.com/g/golang-announce/c/0fM21h43arc","tags":["advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20211210-0003/","tags":["advisory","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.gentoo.org/glsa/202208-02","tags":["advisory","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-744259.pdf","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://go.dev/cl/349770","tags":["fix"],"sources":["go"]},{"url":"https://go.googlesource.com/go/+/b24687394b55a93449e2be4e6892ead58ea9a10f","tags":["fix"],"sources":["go"]},{"url":"https://go.dev/issue/48085","tags":["report"],"sources":["go"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41772","tags":["web"],"sources":["bitnami"]}],"credits":["Colin Arnott (SiteHost)","Noah Santschi-Cooney (Sourcegraph Code Intelligence Team)"],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-41772","url":"https://www.cve.org/CVERecord?id=CVE-2021-41772","licence":"CVE Terms of Use","modified":"2024-08-04T03:15:29.314Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2021-0264","url":"https://pkg.go.dev/vuln/GO-2021-0264","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-41772","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41772","licence":"Public domain","modified":"2026-06-17T04:08:53.800Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GOLANG-2021-41772","url":"https://osv.dev/vulnerability/BIT-GOLANG-2021-41772","licence":"Apache-2.0","modified":"2026-10-16T09:45:16.378Z"}],"updatedAt":"2026-11-25T22:58:05.411Z","epss":{"score":0.03253,"percentile":0.88677,"date":"2026-12-01T12:00:22.000Z"}}