Skip to content
Fencer Vulns
high 7.5

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

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

Sources

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.