CVE-2021-42341 Affecting openrc package, versions <0.44.6-r1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
2.12% (81st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALPINE317-OPENRC-3140941
  • published14 Oct 2021
  • disclosed14 Oct 2021

Introduced: 14 Oct 2021

CVE-2021-42341  (opens in a new tab)

How to fix?

Upgrade Alpine:3.17 openrc to version 0.44.6-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream openrc package and not the openrc package as distributed by Alpine. See How to fix? for Alpine:3.17 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1