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?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-42335Easytest bulletin board management function of online learni…5.4
- CVE-2021-42336The learning history page of the Easytest is vulnerable by p…4.3
- CVE-2021-42337The permission control of AIFU cashier management salary que…4.3
- CVE-2021-423384MOSAn GCB Doctor’s login page has improper validation of Co…9.8
- CVE-2021-4234OpenVPN Access Server 2.10 and prior versions are susceptibl…7.5
- CVE-2021-42340The fix for bug 63362 present in Apache Tomcat 10.1.0-M1 to …7.5
- CVE-2021-42342An issue was discovered in GoAhead 4.x and 5.x before 5.1.5.…9.8
- CVE-2021-42343An issue was discovered in the Dask distributed package befo…9.8
- CVE-2021-4235Due to unbounded alias chasing, a maliciously crafted YAML f…5.5
- CVE-2021-42357When using Apache Knox SSO prior to 1.6.1, a request could b…6.1
- CVE-2021-42358The Contact Form With Captcha WordPress plugin is vulnerable…8.8
- CVE-2021-42359WP DSGVO Tools (GDPR) <= 3.1.23 had an AJAX action, ‘admin-d…9.1
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
