Vulnerability · Published Oct 14, 2021 · Assigned by mitre

CVE-2021-42341

High 7.5

In plain English

A high-severity security flaw in the openrc package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 82% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.5High
Exploit odds (30 days)2.1%top 18.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20openrc0.44.6-r1ALPINE-CVE-2021-42341
Alpine:v3.21openrc0.44.6-r1ALPINE-CVE-2021-42341
Alpine:v3.22openrc0.44.6-r1ALPINE-CVE-2021-42341
Alpine:v3.23openrc0.44.6-r1ALPINE-CVE-2021-42341
Alpine:v3.24openrc0.44.6-r1ALPINE-CVE-2021-42341

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References