CVE-2021-42341
Last modified
CVE-2021-42341 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 2.05% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Openrc Project | Openrc | >= 0.44.0, < 0.44.7 |
References
- https://bugs.gentoo.org/816900Exploit, Patch, Third Party Advisory
- https://github.com/OpenRC/openrc/commit/63db2d99e730547339d1bdd28e8437999c380caePatch, Third Party Advisory
- https://github.com/OpenRC/openrc/commit/bb8334104baf4d5a4a442a8647fb9204738f2204Patch, Third Party Advisory
- https://github.com/OpenRC/openrc/issues/418Exploit, Patch, Third Party Advisory
- https://github.com/OpenRC/openrc/issues/459Exploit, Patch, Third Party Advisory
- https://github.com/OpenRC/openrc/pull/462Patch, Third Party Advisory
- https://bugs.gentoo.org/816900Exploit, Patch, Third Party Advisory
- https://github.com/OpenRC/openrc/commit/63db2d99e730547339d1bdd28e8437999c380caePatch, Third Party Advisory
- https://github.com/OpenRC/openrc/commit/bb8334104baf4d5a4a442a8647fb9204738f2204Patch, Third Party Advisory
- https://github.com/OpenRC/openrc/issues/418Exploit, Patch, Third Party Advisory
- https://github.com/OpenRC/openrc/issues/459Exploit, Patch, Third Party Advisory
- https://github.com/OpenRC/openrc/pull/462Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-42341?
How severe is CVE-2021-42341?
How do I fix CVE-2021-42341?
Are you affected by CVE-2021-42341?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
