{"id":"CVE-2021-31872","aliases":["ALPINE-CVE-2021-31872","DEBIAN-CVE-2021-31872","DLA-2695-1","EUVD-2021-18747","GHSA-4q4g-ccqq-vfqg","UBUNTU-CVE-2021-31872","USN-5379-1"],"status":"published","title":"An issue was discovered in klibc before 2.0.9. Multiple possible integer overflows in the cpio...","description":"An issue was discovered in klibc before 2.0.9. Multiple possible integer overflows in the cpio command on 32-bit systems may result in a buffer overflow or other security impact.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.02076,"percentile":0.81759,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-190"],"published":"2021-04-30T05:19:04Z","modified":"2026-11-03T06:32:33Z","fixes":[{"ecosystem":"Alpine:v3.19","package":"klibc","fixed_in":["2.0.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"klibc","fixed_in":["2.0.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"klibc","fixed_in":["2.0.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"klibc","fixed_in":["2.0.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"klibc","fixed_in":["2.0.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"klibc","fixed_in":["2.0.9-r0"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"klibc","fixed_in":["2.0.8-6"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"klibc","fixed_in":["2.0.8-6"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"klibc","fixed_in":["2.0.8-6"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"klibc","fixed_in":["2.0.3-0ubuntu1.14.04.3+esm2"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"klibc","fixed_in":["2.0.4-8ubuntu1.16.04.4+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"klibc","fixed_in":["2.0.4-9ubuntu2.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:20.04:LTS","package":"klibc","fixed_in":["2.0.7-1ubuntu5.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.19","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.9-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.8-6"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.8-6"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.8-6"}]}]},{"source":"osv","ecosystem":"Debian:9","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.4-9+deb9u1"}]}],"versions":["2.0.4-9"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.3-0ubuntu1.14.04.3+esm2"}]}],"versions":["2.0.1-3.1ubuntu2","2.0.2-1ubuntu1","2.0.2-1ubuntu2","2.0.3-0ubuntu1","2.0.3-0ubuntu1.14.04.1","2.0.3-0ubuntu1.14.04.2","2.0.3-0ubuntu1.14.04.3"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.4-8ubuntu1.16.04.4+esm1"}]}],"versions":["2.0.3-0ubuntu1","2.0.4-4","2.0.4-6","2.0.4-7","2.0.4-8","2.0.4-8ubuntu1","2.0.4-8ubuntu1.16.04.1","2.0.4-8ubuntu1.16.04.2","2.0.4-8ubuntu1.16.04.3","2.0.4-8ubuntu1.16.04.4"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.4-9ubuntu2.1"}]}],"versions":["2.0.4-9ubuntu1","2.0.4-9ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.7-1ubuntu5.1"}]}],"versions":["2.0.6-1ubuntu1","2.0.6-1ubuntu2","2.0.7-1ubuntu1","2.0.7-1ubuntu3","2.0.7-1ubuntu4","2.0.7-1ubuntu5"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.3-0ubuntu1.14.04.3+esm2"}]}],"versions":["2.0.1-3.1ubuntu2","2.0.2-1ubuntu1","2.0.2-1ubuntu2","2.0.3-0ubuntu1","2.0.3-0ubuntu1.14.04.1","2.0.3-0ubuntu1.14.04.2","2.0.3-0ubuntu1.14.04.3"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.4-8ubuntu1.16.04.4+esm1"}]}],"versions":["2.0.3-0ubuntu1","2.0.4-4","2.0.4-6","2.0.4-7","2.0.4-8","2.0.4-8ubuntu1","2.0.4-8ubuntu1.16.04.1","2.0.4-8ubuntu1.16.04.2","2.0.4-8ubuntu1.16.04.3","2.0.4-8ubuntu1.16.04.4"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.4-9ubuntu2.1"}]}],"versions":["2.0.4-9ubuntu1","2.0.4-9ubuntu2"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"klibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.7-1ubuntu5.1"}]}],"versions":["2.0.6-1ubuntu1","2.0.6-1ubuntu2","2.0.7-1ubuntu1","2.0.7-1ubuntu3","2.0.7-1ubuntu4","2.0.7-1ubuntu5"],"bundled":4}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"klibc_project","product":"klibc"}],"references":[{"url":"https://kernel.org/pub/linux/libs/klibc/2.0/","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","report"]},{"url":"https://lists.zytor.com/archives/klibc/2021-April/004593.html","tags":["x_refsource_MISC","x_transferred","Mailing List","Release Notes","Third Party Advisory","advisory","report"]},{"url":"https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=9b1c91577aef7f2e72c3aa11a27749160bd278ff","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"http://www.openwall.com/lists/oss-security/2021/04/30/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Release Notes","Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/06/msg00025.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31872"},{"url":"https://github.com/advisories/GHSA-4q4g-ccqq-vfqg"},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-31872","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-31872","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-31872","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5379-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-31872","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-31870","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-31871","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-31873","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-31872","description":"An issue was discovered in klibc before 2.0.9. Multiple possible integer overflows in the cpio command on 32-bit systems may result in a buffer overflow or other security impact.","status":"published","published":"2021-04-30T05:19:04Z","modified":"2024-08-03T23:10:31.023Z","updated_at":"2026-11-02T14:33:05.665371Z"}],"euvd":[{"id":"EUVD-2021-18747","description":"An issue was discovered in klibc before 2.0.9. Multiple possible integer overflows in the cpio command on 32-bit systems may result in a buffer overflow or other security impact.","status":"published","published":"2021-04-30T05:19:04Z","modified":"2024-08-03T23:10:31Z","updated_at":"2026-11-03T03:24:37.97373Z"}],"ghsa":[{"id":"GHSA-4q4g-ccqq-vfqg","title":"An issue was discovered in klibc before 2.0.9. Multiple possible integer overflows in the cpio...","description":"An issue was discovered in klibc before 2.0.9. Multiple possible integer overflows in the cpio command on 32-bit systems may result in a buffer overflow or other security impact.","status":"published","published":"2022-05-24T17:49:19Z","modified":"2023-01-29T05:06:32Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:46:02.943866Z"}],"nvd":[{"id":"CVE-2021-31872","description":"An issue was discovered in klibc before 2.0.9. Multiple possible integer overflows in the cpio command on 32-bit systems may result in a buffer overflow or other security impact.","status":"published","published":"2021-04-30T06:15:07.313Z","modified":"2026-06-17T03:52:23.137Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:06:52.81233Z"}],"osv":[{"id":"ALPINE-CVE-2021-31872","description":"An issue was discovered in klibc before 2.0.9. Multiple possible integer overflows in the cpio command on 32-bit systems may result in a buffer overflow or other security impact.","status":"published","published":"2021-04-30T06:15:07.313Z","modified":"2026-11-03T06:32:33.352547899Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-03T07:17:41.158523Z"},{"id":"CVE-2021-31872","description":"An issue was discovered in klibc before 2.0.9. Multiple possible integer overflows in the cpio command on 32-bit systems may result in a buffer overflow or other security impact.","status":"published","published":"2021-04-30T06:15:07.313Z","modified":"2026-03-15T22:40:37.065562Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:19.483607Z"},{"id":"DEBIAN-CVE-2021-31872","description":"An issue was discovered in klibc before 2.0.9. Multiple possible integer overflows in the cpio command on 32-bit systems may result in a buffer overflow or other security impact.","status":"published","published":"2021-04-30T06:15:07.313Z","modified":"2026-10-23T18:03:14.697009524Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:34.94143Z"},{"id":"UBUNTU-CVE-2021-31872","description":"An issue was discovered in klibc before 2.0.9. Multiple possible integer overflows in the cpio command on 32-bit systems may result in a buffer overflow or other security impact.","status":"published","published":"2021-04-30T06:15:00Z","modified":"2026-04-22T12:53:56.610362Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:27.332852Z"},{"id":"DLA-2695-1","title":"klibc - security update","status":"published","published":"2021-06-28T00:00:00Z","modified":"2026-03-09T01:18:05.056484Z","updated_at":"2026-11-02T15:46:10.712745Z"},{"id":"USN-5379-1","title":"klibc vulnerabilities","description":"It was discovered that klibc did not properly perform\nsome mathematical operations, leading to an integer overflow.\nAn attacker could possibly use this issue to cause a crash,\nresulting in a denial of service, or possibly execute\narbitrary code. (CVE-2021-31870)\n\nIt was discovered that klibc did not properly handled some\nmemory allocations on 64 bit systems. An attacker could\npossibly use this issue to cause a crash, resulting in a\ndenial of service, or possibly execute arbitrary code.\n(CVE-2021-31871)\n\nIt was discovered that klibc did not properly handled some file\nsizes values on 32 bit systems. An attacker could possibly use\nthis issue to cause a crash, resulting in a denial of service,\nor possibly execute arbitrary code. (CVE-2021-31872)\n\nIt was discovered that klibc did not properly handled some\nmemory allocations. An attacker could possibly use this issue\nto cause a crash, resulting in a denial of service, or possibly\nexecute arbitrary code. (CVE-2021-31873)\n","status":"published","published":"2022-04-18T11:37:31Z","modified":"2026-06-29T13:49:36.327232761Z","updated_at":"2026-11-02T16:58:15.683829Z"}]}}
