{"id":"CVE-2023-25153","aliases":["CVE-2023-25153","GHSA-259w-8hf6-59c2","GO-2023-1573"],"related":["CGA-gc6v-wxff-87c8"],"kind":"vulnerability","state":"published","title":"containerd OCI image importer memory exhaustion","summary":"containerd is an open source container runtime. Before versions 1.6.18 and 1.5.18, when importing an OCI image, there was no limit on the number of bytes read for certain files. A maliciously crafted image with a large file where a limit was not applied could cause a denial of service. This bug has been fixed in containerd 1.6.18 and 1.5.18.  Users should update to these versions to resolve the issue. As a workaround, ensure that only trusted images are used and that only trusted users have permissions to import images.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"containerd is an open source container runtime. Before versions 1.6.18 and 1.5.18, when importing an OCI image, there was no limit on the number of bytes read for certain files. A maliciously crafted image with a large file where a limit was not applied could cause a denial of service. This bug has been fixed in containerd 1.6.18 and 1.5.18.  Users should update to these versions to resolve the issue. As a workaround, ensure that only trusted images are used and that only trusted users have permissions to import images.","source":"cvelist"},{"lang":"en","text":"### Impact\nWhen importing an OCI image, there was no limit on the number of bytes read for certain files. A maliciously crafted image with a large file where a limit was not applied could cause a denial of service.\n\n### Patches\n\nThis bug has been fixed in containerd 1.6.18 and 1.5.18.  Users should update to these versions to resolve the issue.\n\n### Workarounds\n\nEnsure that only trusted images are used and that only trusted users have permissions to import images. \n\n### Credits\n\nThe containerd project would like to thank [David Korczynski](https://github.com/DavidKorczynski) and [Adam Korczynski](https://github.com/AdamKorcz) of ADA Logics for responsibly disclosing this issue in accordance with the [containerd security policy](https://github.com/containerd/project/blob/main/SECURITY.md) during a security fuzzing audit sponsored by CNCF.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Open an issue in [containerd](https://github.com/containerd/containerd/issues/new/choose)\n* Email us at [security@containerd.io](mailto:security@containerd.io)\n\nTo report a security issue in containerd:\n* [Report a new vulnerability](https://github.com/containerd/containerd/security/advisories/new)\n* Email us at [security@containerd.io](mailto:security@containerd.io)","format":"markdown","source":"ghsa"},{"lang":"en","text":"When importing an OCI image, there was no limit on the number of bytes read from the io.Reader passed into ImportIndex. A large number of bytes could be read from this and could cause a denial of service.","format":"markdown","source":"go"}],"published":"2023-02-16T14:09:08.519Z","modified":"2026-09-10T03:49:51.797Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.2,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.2,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-400","CWE-770"],"affected":[{"ranges":[{"version":"< 1.5.18","status":"affected"},{"version":">= 1.6.0, < 1.6.18","status":"affected"}],"vendor":"containerd","product":"containerd","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.5.18"}],"ecosystem":"Go","package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.6.0","status":"affected","fixed":"1.6.18"}],"ecosystem":"Go","package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.5.18"},{"type":"semver","introduced":"1.6.0","status":"affected","fixed":"1.6.18"}],"ecosystem":"Go","package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"go"},{"ranges":[{"status":"affected","fixed":"1.5.18"},{"status":"affected","introduced":"1.6.0","fixed":"1.6.18"}],"vendor":"linuxfoundation","product":"containerd","cpe":"cpe:2.3:a:linuxfoundation:containerd:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/containerd/containerd/security/advisories/GHSA-259w-8hf6-59c2","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/containerd/containerd/commit/0c314901076a74a7b797a545d2f462285fdbb8c4","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/containerd/containerd/releases/tag/v1.5.18","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/containerd/containerd/releases/tag/v1.6.18","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25153","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/containerd/containerd","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2023-1573","tags":["web"],"sources":["ghsa"]}],"credits":["@AdamKorcz","@DavidKorczynski"],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-03-10T20:57:30.825Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-25153","url":"https://www.cve.org/CVERecord?id=CVE-2023-25153","licence":"CVE Terms of Use","modified":"2025-03-10T21:10:44.159Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-259w-8hf6-59c2","url":"https://github.com/advisories/GHSA-259w-8hf6-59c2","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:51.797Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-1573","url":"https://pkg.go.dev/vuln/GO-2023-1573","licence":"CC-BY-4.0","modified":"2026-02-04T03:32:17.418Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-25153","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25153","licence":"Public domain","modified":"2026-06-17T05:40:47.483Z"}],"updatedAt":"2026-11-25T22:58:22.044Z","epss":{"score":0.00373,"percentile":0.33277,"date":"2026-12-01T12:00:22.000Z"}}