{"id":"ALPINE-CVE-2021-42341","details":"checkpath in OpenRC before 0.44.7 uses the direct output of strlen() to allocate strings, which does not account for the '\\0' byte at the end of the string. This results in memory corruption. CVE-2021-42341 was introduced in git commit 63db2d99e730547339d1bdd28e8437999c380cae, which was introduced as part of OpenRC 0.44.0 development.","modified":"2026-08-27T22:18:01.658437943Z","published":"2021-10-14T05:15:07.787Z","upstream":["CVE-2021-42341"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-42341"}],"affected":[{"package":{"name":"openrc","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/openrc?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.44.0"},{"fixed":"0.43.3-r2"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"}},{"package":{"name":"openrc","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/openrc?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.44.0"},{"fixed":"0.44.6-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"}},{"package":{"name":"openrc","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/openrc?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.44.0"},{"fixed":"0.44.6-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"}},{"package":{"name":"openrc","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/openrc?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.44.0"},{"fixed":"0.44.6-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"}},{"package":{"name":"openrc","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/openrc?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.44.0"},{"fixed":"0.44.6-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"}},{"package":{"name":"openrc","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/openrc?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.44.0"},{"fixed":"0.44.6-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"}},{"package":{"name":"openrc","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/openrc?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.44.0"},{"fixed":"0.44.6-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"}},{"package":{"name":"openrc","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/openrc?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.44.0"},{"fixed":"0.44.6-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"}},{"package":{"name":"openrc","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/openrc?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.44.0"},{"fixed":"0.44.6-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"}},{"package":{"name":"openrc","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/openrc?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.44.0"},{"fixed":"0.44.6-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"}},{"package":{"name":"openrc","ecosystem":"Alpine:v3.24","purl":"pkg:apk/alpine/openrc?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.44.0"},{"fixed":"0.44.6-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}