Skip to content
Heist/ feed
Back to feed
HighFix available

openrc — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-CVE-2021-42341

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.

Products
openrc
Affected versions
Not specified
Fixed versions
0.43.3-r2, 0.44.6-r1
CVEs
CVE-2021-42341
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 22:07 UTC · Revision 1

Source evidence

ALPINE-CVE-2021-42341

core-osv · Original source

Published 14 Oct 2021, 05:15 UTC

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.

osv:ALPINE-CVE-2021-42341

openrc

Fixed versions: 0.43.3-r2

openrc

Fixed versions: 0.44.6-r1

openrc

Fixed versions: 0.44.6-r1

openrc

Fixed versions: 0.44.6-r1

openrc

Fixed versions: 0.44.6-r1

openrc

Fixed versions: 0.44.6-r1

openrc

Fixed versions: 0.44.6-r1

openrc

Fixed versions: 0.44.6-r1

openrc

Fixed versions: 0.44.6-r1

openrc

Fixed versions: 0.44.6-r1

openrc

Fixed versions: 0.44.6-r1

Complete source record
{
  "id": "0a185653024a9dbaea860a15a343db78709a7307140e5b5e442237204712e53a",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2021-42341",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2021-42341",
    "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.",
    "evidence": "osv:ALPINE-CVE-2021-42341",
    "products": [
      {
        "name": {
          "value": "openrc",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.43.3-r2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "openrc",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.44.6-r1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "openrc",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.44.6-r1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "openrc",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.44.6-r1",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "openrc",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.44.6-r1",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "openrc",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.44.6-r1",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "openrc",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.44.6-r1",
            "evidence": "/affected/6/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "openrc",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.44.6-r1",
            "evidence": "/affected/7/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "openrc",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.44.6-r1",
            "evidence": "/affected/8/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "openrc",
          "evidence": "/affected/9/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.44.6-r1",
            "evidence": "/affected/9/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "openrc",
          "evidence": "/affected/10/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.44.6-r1",
            "evidence": "/affected/10/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "ALPINE-CVE-2021-42341",
      "aliases": [
        "ALPINE-CVE-2021-42341"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0.44.0"
                },
                {
                  "fixed": "0.43.3-r2"
                }
              ]
            }
          ],
          "package": {
            "name": "openrc",
            "purl": "pkg:apk/alpine/openrc?arch=source",
            "ecosystem": "Alpine:v3.14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0.44.0"
                },
                {
                  "fixed": "0.44.6-r1"
                }
              ]
            }
          ],
          "package": {
            "name": "openrc",
            "purl": "pkg:apk/alpine/openrc?arch=source",
            "ecosystem": "Alpine:v3.15"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0.44.0"
                },
                {
                  "fixed": "0.44.6-r1"
                }
              ]
            }
          ],
          "package": {
            "name": "openrc",
            "purl": "pkg:apk/alpine/openrc?arch=source",
            "ecosystem": "Alpine:v3.16"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0.44.0"
                },
                {
                  "fixed": "0.44.6-r1"
                }
              ]
            }
          ],
          "package": {
            "name": "openrc",
            "purl": "pkg:apk/alpine/openrc?arch=source",
            "ecosystem": "Alpine:v3.17"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0.44.0"
                },
                {
                  "fixed": "0.44.6-r1"
                }
              ]
            }
          ],
          "package": {
            "name": "openrc",
            "purl": "pkg:apk/alpine/openrc?arch=source",
            "ecosystem": "Alpine:v3.18"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0.44.0"
                },
                {
                  "fixed": "0.44.6-r1"
                }
              ]
            }
          ],
          "package": {
            "name": "openrc",
            "purl": "pkg:apk/alpine/openrc?arch=source",
            "ecosystem": "Alpine:v3.19"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0.44.0"
                },
                {
                  "fixed": "0.44.6-r1"
                }
              ]
            }
          ],
          "package": {
            "name": "openrc",
            "purl": "pkg:apk/alpine/openrc?arch=source",
            "ecosystem": "Alpine:v3.20"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0.44.0"
                },
                {
                  "fixed": "0.44.6-r1"
                }
              ]
            }
          ],
          "package": {
            "name": "openrc",
            "purl": "pkg:apk/alpine/openrc?arch=source",
            "ecosystem": "Alpine:v3.21"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0.44.0"
                },
                {
                  "fixed": "0.44.6-r1"
                }
              ]
            }
          ],
          "package": {
            "name": "openrc",
            "purl": "pkg:apk/alpine/openrc?arch=source",
            "ecosystem": "Alpine:v3.22"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0.44.0"
                },
                {
                  "fixed": "0.44.6-r1"
                }
              ]
            }
          ],
          "package": {
            "name": "openrc",
            "purl": "pkg:apk/alpine/openrc?arch=source",
            "ecosystem": "Alpine:v3.23"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0.44.0"
                },
                {
                  "fixed": "0.44.6-r1"
                }
              ]
            }
          ],
          "package": {
            "name": "openrc",
            "purl": "pkg:apk/alpine/openrc?arch=source",
            "ecosystem": "Alpine:v3.24"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-42341.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-23T17:17:56.217846103Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-42341"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2021-42341"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-42341",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 415574,
  "published_at": "2021-10-14T05:15:07.787+00:00"
}