CVEfocus › CVE database › CVE-2021-36159

CVE-2021-36159

CVSS 9.1 CriticalEPSS 2.6% (higher than 86% of CVEs)Published 2021-08-03Updated 2024-08-04Assigner: mitre

libfetch before 2021-07-26, as used in apk-tools, xbps, and other products, mishandles numeric strings for the FTP and HTTP protocols. The FTP passive mode implementation allows an out-of-bounds read because strtol is used to parse the relevant numbers into address bytes. It does not check if the line ends prematurely. If it does, the for-loop condition checks for the '\0' terminator one byte too late.

What to do

Fixed builds are available from Alpine: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

15Fixed

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Alpine Linux 3.24apk-toolsFixed2.12.6-r0ALPINE-CVE-2021-36159
Alpine Linux 3.23apk-toolsFixed2.12.6-r0ALPINE-CVE-2021-36159
Alpine Linux 3.22apk-toolsFixed2.12.6-r0ALPINE-CVE-2021-36159
Alpine Linux 3.21apk-toolsFixed2.12.6-r0ALPINE-CVE-2021-36159
Alpine Linux 3.20apk-toolsFixed2.12.6-r0ALPINE-CVE-2021-36159
Alpine Linux 3.19apk-toolsFixed2.12.6-r0ALPINE-CVE-2021-36159
Alpine Linux 3.18apk-toolsFixed2.12.6-r0ALPINE-CVE-2021-36159
Alpine Linux 3.17apk-toolsFixed2.12.6-r0ALPINE-CVE-2021-36159
Alpine Linux 3.16apk-toolsFixed2.12.6-r0ALPINE-CVE-2021-36159
Alpine Linux 3.15apk-toolsFixed2.12.6-r0ALPINE-CVE-2021-36159
Alpine Linux 3.14apk-toolsFixed2.12.6-r0ALPINE-CVE-2021-36159
Alpine Linux 3.13apk-toolsFixed2.12.6-r0ALPINE-CVE-2021-36159
Alpine Linux 3.12apk-toolsFixed2.10.7-r0ALPINE-CVE-2021-36159
Alpine Linux 3.11apk-toolsFixed2.10.7-r0ALPINE-CVE-2021-36159
Alpine Linux 3.10apk-toolsFixed2.10.7-r0ALPINE-CVE-2021-36159

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.