CVE-2021-42341Openrc Project Openrc
High 7.5 No auth needed
Follow: this CVE · Openrc Project · Openrc Project Openrc We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 2.1% probability of exploitation in 30 days · percentile 83
- Auth required
- No
- Published
- Oct 14, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Openrc.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| openrc_project | openrc | ≥ 0.44.0 < 0.44.7 |
Official sources
References
Links published by the sources. Open them with care.
- bugs.gentoo.org Exploit Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Exploit Patch Third Party Advisory
- github.com Exploit Patch Third Party Advisory
- github.com Patch Third Party Advisory