
CVE catalog
CVE-2021-36159
ALPINE-CVE-2021-36159
- Severity
- Unknown
- Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 2.64% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Alpine | apk-tools | 3.10 | 2.10.7-r0 | fixed |
| Alpine | apk-tools | 3.11 | 2.10.7-r0 | fixed |
| Alpine | apk-tools | 3.12 | 2.10.7-r0 | fixed |
| Alpine | apk-tools | 3.13 | 2.12.6-r0 | fixed |
| Alpine | apk-tools | 3.14 | 2.12.6-r0 | fixed |
| Alpine | apk-tools | 3.15 | 2.12.6-r0 | fixed |
| Alpine | apk-tools | 3.16 | 2.12.6-r0 | fixed |
| Alpine | apk-tools | 3.17 | 2.12.6-r0 | fixed |
| Alpine | apk-tools | 3.18 | 2.12.6-r0 | fixed |
| Alpine | apk-tools | 3.19 | 2.12.6-r0 | fixed |
| Alpine | apk-tools | 3.20 | 2.12.6-r0 | fixed |
| Alpine | apk-tools | 3.21 | 2.12.6-r0 | fixed |
| Alpine | apk-tools | 3.22 | 2.12.6-r0 | fixed |
| Alpine | apk-tools | 3.23 | 2.12.6-r0 | fixed |
| Alpine | apk-tools | 3.24 | 2.12.6-r0 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Alpine | apk-tools | apk | 3.10 | 2.10.7-r0 | Not reported | ALPINE-CVE-2021-36159 | Not reported |
| Alpine | apk-tools | apk | 3.11 | 2.10.7-r0 | Not reported | ALPINE-CVE-2021-36159 | Not reported |
| Alpine | apk-tools | apk | 3.12 | 2.10.7-r0 | Not reported | ALPINE-CVE-2021-36159 | Not reported |
| Alpine | apk-tools | apk | 3.13 | 2.12.6-r0 | Not reported | ALPINE-CVE-2021-36159 | Not reported |
| Alpine | apk-tools | apk | 3.14 | 2.12.6-r0 | Not reported | ALPINE-CVE-2021-36159 | Not reported |
| Alpine | apk-tools | apk | 3.15 | 2.12.6-r0 | Not reported | ALPINE-CVE-2021-36159 | Not reported |
| Alpine | apk-tools | apk | 3.16 | 2.12.6-r0 | Not reported | ALPINE-CVE-2021-36159 | Not reported |
| Alpine | apk-tools | apk | 3.17 | 2.12.6-r0 | Not reported | ALPINE-CVE-2021-36159 | Not reported |
| Alpine | apk-tools | apk | 3.18 | 2.12.6-r0 | Not reported | ALPINE-CVE-2021-36159 | Not reported |
| Alpine | apk-tools | apk | 3.19 | 2.12.6-r0 | Not reported | ALPINE-CVE-2021-36159 | Not reported |
| Alpine | apk-tools | apk | 3.20 | 2.12.6-r0 | Not reported | ALPINE-CVE-2021-36159 | Not reported |
| Alpine | apk-tools | apk | 3.21 | 2.12.6-r0 | Not reported | ALPINE-CVE-2021-36159 | Not reported |
| Alpine | apk-tools | apk | 3.22 | 2.12.6-r0 | Not reported | ALPINE-CVE-2021-36159 | Not reported |
| Alpine | apk-tools | apk | 3.23 | 2.12.6-r0 | Not reported | ALPINE-CVE-2021-36159 | Not reported |
| Alpine | apk-tools | apk | 3.24 | 2.12.6-r0 | Not reported | ALPINE-CVE-2021-36159 | Not reported |
OpenFactory catalog packages
No matching packages in this catalog.
Observed: