{"id":"CVE-2021-42341","aliases":["CVE-2021-42341"],"related":[],"kind":"vulnerability","state":"published","title":"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 e…","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"checkpath en OpenRC versiones anteriores a 0.44.7, usa la salida directa de la función strlen() para asignar cadenas, que no tiene en cuenta el byte \"\\0\" al final de la cadena. Esto resulta en una corrupción de memoria","source":"nvd"}],"published":"2021-10-14T05:01:07.000Z","modified":"2026-06-17T04:09:40.603Z","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"}],"cwes":[],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","introduced":"0.44.0","fixed":"0.44.7"}],"vendor":"openrc_project","product":"openrc","cpe":"cpe:2.3:a:openrc_project:openrc:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/OpenRC/openrc/commit/bb8334104baf4d5a4a442a8647fb9204738f2204","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/OpenRC/openrc/issues/459","tags":["exploit","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/OpenRC/openrc/pull/462","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://bugs.gentoo.org/816900","tags":["exploit","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/OpenRC/openrc/commit/63db2d99e730547339d1bdd28e8437999c380cae","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/OpenRC/openrc/issues/418","tags":["exploit","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-42341","url":"https://www.cve.org/CVERecord?id=CVE-2021-42341","licence":"CVE Terms of Use","modified":"2024-08-04T03:30:38.250Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-42341","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42341","licence":"Public domain","modified":"2026-06-17T04:09:40.603Z"}],"updatedAt":"2026-11-25T22:58:04.491Z","epss":{"score":0.02117,"percentile":0.82538,"date":"2026-11-30T12:00:22.000Z"}}