{"id":"CVE-2021-31871","aliases":["ALPINE-CVE-2021-31871","DEBIAN-CVE-2021-31871","DLA-2695-1","EUVD-2021-18746","GHSA-xhrj-7pjg-g5cf","UBUNTU-CVE-2021-31871","USN-5379-1"],"status":"published","title":"An issue was discovered in klibc before 2.0.9. An integer overflow in the cpio command may result...","description":"An issue was discovered in klibc before 2.0.9. An integer overflow in the cpio command may result in a NULL pointer dereference on 64-bit systems.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01875,"percentile":0.79677,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-190"],"published":"2021-04-30T05:18:52Z","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=2e48a12ab1e30d43498c2d53e878a11a1b5102d5","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","Mailing List","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31871"},{"url":"https://github.com/advisories/GHSA-xhrj-7pjg-g5cf"},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-31871","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-31871","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-31871","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5379-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-31871","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-31870","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-31872","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-31873","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-31871","description":"An issue was discovered in klibc before 2.0.9. An integer overflow in the cpio command may result in a NULL pointer dereference on 64-bit systems.","status":"published","published":"2021-04-30T05:18:52Z","modified":"2024-08-03T23:10:30.764Z","updated_at":"2026-11-02T14:33:05.665371Z"}],"euvd":[{"id":"EUVD-2021-18746","description":"An issue was discovered in klibc before 2.0.9. An integer overflow in the cpio command may result in a NULL pointer dereference on 64-bit systems.","status":"published","published":"2021-04-30T05:18:52Z","modified":"2024-08-03T23:10:30Z","updated_at":"2026-11-03T03:24:37.97373Z"}],"ghsa":[{"id":"GHSA-xhrj-7pjg-g5cf","title":"An issue was discovered in klibc before 2.0.9. An integer overflow in the cpio command may result...","description":"An issue was discovered in klibc before 2.0.9. An integer overflow in the cpio command may result in a NULL pointer dereference on 64-bit systems.","status":"published","published":"2022-05-24T17:49:19Z","modified":"2023-01-29T05:07:29Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:46:10.15423Z"}],"nvd":[{"id":"CVE-2021-31871","description":"An issue was discovered in klibc before 2.0.9. An integer overflow in the cpio command may result in a NULL pointer dereference on 64-bit systems.","status":"published","published":"2021-04-30T06:15:07.287Z","modified":"2026-06-17T03:52:23.007Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:06:52.81233Z"}],"osv":[{"id":"ALPINE-CVE-2021-31871","description":"An issue was discovered in klibc before 2.0.9. An integer overflow in the cpio command may result in a NULL pointer dereference on 64-bit systems.","status":"published","published":"2021-04-30T06:15:07.287Z","modified":"2026-11-03T06:32:33.358319138Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-03T07:17:41.158523Z"},{"id":"CVE-2021-31871","description":"An issue was discovered in klibc before 2.0.9. An integer overflow in the cpio command may result in a NULL pointer dereference on 64-bit systems.","status":"published","published":"2021-04-30T06:15:07.287Z","modified":"2026-03-15T22:40:37.071993Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:19.483607Z"},{"id":"DEBIAN-CVE-2021-31871","description":"An issue was discovered in klibc before 2.0.9. An integer overflow in the cpio command may result in a NULL pointer dereference on 64-bit systems.","status":"published","published":"2021-04-30T06:15:07.287Z","modified":"2026-10-23T18:03:14.6704489Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:34.94143Z"},{"id":"UBUNTU-CVE-2021-31871","description":"An issue was discovered in klibc before 2.0.9. An integer overflow in the cpio command may result in a NULL pointer dereference on 64-bit systems.","status":"published","published":"2021-04-30T06:15:00Z","modified":"2026-04-22T12:53:59.647798Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"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"}]}}
