CVE-2021-42341 json
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…
published 2021-10-14 5 y ago modified 2026-06-17 4 mo ago also EUVD-2021-29314
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 81%
- public exploits
- 0
- none known
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.
Patch / fix
- openrc_project openrc 0.44.7
- openrc Alpine 3.14 0.43.3-r2
- openrc Alpine 3.24, Alpine 3.23, Alpine 3.22 +7 more 0.44.6-r1
alpine advisories ALPINE-CVE-2021-42341
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/OpenRC/openrc@bb83341 commit
- github.com/OpenRC/openrc@63db2d9 commit
- github.com/OpenRC/openrc#462 pull request
- github.com/OpenRC/openrc/issues/459 advisory
- bugs.gentoo.org/816900 advisory
- github.com/OpenRC/openrc/issues/418 advisory
Exploit prediction
2.12% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/OpenRC/openrc/issues/459 referenced PoC, tagged "exploit" by a source, unverified
- bugs.gentoo.org https://bugs.gentoo.org/816900 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/OpenRC/openrc/issues/418 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
References
-
github.com
/OpenRC/openrc/commit/bb8334104baf4d5a4a442a8647fb9204738f2204
patch, third-party-advisory
-
github.com
/OpenRC/openrc/pull/462
patch, third-party-advisory
-
github.com
/OpenRC/openrc/commit/63db2d99e730547339d1bdd28e8437999c380cae
patch, third-party-advisory
-
github.com
/OpenRC/openrc/issues/459
exploit, patch, third-party-advisory
-
bugs.gentoo.org
/816900
exploit, patch, third-party-advisory
-
github.com
/OpenRC/openrc/issues/418
exploit, patch, third-party-advisory
Sources
- CVE List CVE-2021-42341
- NVD CVE-2021-42341
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.