Every CVE Search/ Get API key

CVE-2021-42341

checkpath in OpenRC before 0.44.7 uses the direct output of strlen() to allocate strings, which...

7.5 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

2.12%Up 1.3 points since Oct 14, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2021-42341
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2021-42341
Updated
2026-11-02
EUVDEUVD-2021-29314 No score

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.

Record
EUVD-2021-29314
Updated
2026-11-03
GitHub AdvisoriesGHSA-3fxr-g4w3-xwx9 No score

checkpath in OpenRC before 0.44.7 uses the direct output of strlen() to allocate strings, which...

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.

Record
GHSA-3fxr-g4w3-xwx9
Updated
2026-11-02
OSVALPINE-CVE-2021-42341 7.5

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.

Record
ALPINE-CVE-2021-42341
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVBELL-CVE-2021-42341 7.5

CVE-2021-42341 does not affect BellSoft software

Record
BELL-CVE-2021-42341
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSV 7.5

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.

Record
CVE-2021-42341
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
openrc
Alpine:v3.14
0.44.0 up to 0.43.3-r2
0.43.3-r2
openrc
Alpine:v3.15
0.44.0 up to 0.44.6-r1
0.44.6-r1
openrc
Alpine:v3.16
0.44.0 up to 0.44.6-r1
0.44.6-r1
openrc
Alpine:v3.17
0.44.0 up to 0.44.6-r1
0.44.6-r1
openrc
Alpine:v3.18
0.44.0 up to 0.44.6-r1
0.44.6-r1
openrc
Alpine:v3.19
0.44.0 up to 0.44.6-r1
0.44.6-r1
openrc
Alpine:v3.20
0.44.0 up to 0.44.6-r1
0.44.6-r1
openrc
Alpine:v3.21
0.44.0 up to 0.44.6-r1
0.44.6-r1
openrc
Alpine:v3.22
0.44.0 up to 0.44.6-r1
0.44.6-r1
openrc
Alpine:v3.23
0.44.0 up to 0.44.6-r1
0.44.6-r1
openrc
Alpine:v3.24
0.44.0 up to 0.44.6-r1
0.44.6-r1

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-42341 is a high vulnerability (CVSS 7.5) in Openrc Project Openrc, published October 14, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.12%, the 81st percentile. Fixed in openrc 0.43.3-r2.

References

Show 4 moreShow less
MoveEnter Open