Vulnerabilidades / CVE-2021-36159

crítica

CVE-2021-36159

libfetch: an out of boundary read while libfetch uses strtol to parse the relevant numbers into address bytes leads to information leak or crash

Publicada Modificada CWE 125
En la Trivy database desde, como mínimo, el 24 oct 2026, 07:11 UTCNo consta cuándo entró antes de ese build.

Severidad por fuente

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Red Hat9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

La etiqueta propia de Trivy es CRITICAL. Crítica según NVD. Más baja según Red Hat (alta).

Descripción

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.

Paquetes afectados y versiones corregidas

FuentePaqueteCorregido en
alpine 3.10apk-tools2.10.7-r0
alpine 3.11apk-tools2.10.7-r0
alpine 3.12apk-tools2.10.7-r0
alpine 3.13apk-tools2.12.6-r0
alpine 3.14apk-tools2.12.6-r0
alpine 3.15apk-tools2.12.6-r0
alpine 3.16apk-tools2.12.6-r0
alpine 3.17apk-tools2.12.6-r0
alpine 3.18apk-tools2.12.6-r0
alpine 3.19apk-tools2.12.6-r0
alpine 3.20apk-tools2.12.6-r0
alpine 3.21apk-tools2.12.6-r0
Mostrar las 16 entradas de 16 fuentes
FuentePaqueteCorregido en
alpine 3.10apk-tools2.10.7-r0
alpine 3.11apk-tools2.10.7-r0
alpine 3.12apk-tools2.10.7-r0
alpine 3.13apk-tools2.12.6-r0
alpine 3.14apk-tools2.12.6-r0
alpine 3.15apk-tools2.12.6-r0
alpine 3.16apk-tools2.12.6-r0
alpine 3.17apk-tools2.12.6-r0
alpine 3.18apk-tools2.12.6-r0
alpine 3.19apk-tools2.12.6-r0
alpine 3.20apk-tools2.12.6-r0
alpine 3.21apk-tools2.12.6-r0
alpine 3.22apk-tools2.12.6-r0
alpine 3.23apk-tools2.12.6-r0
alpine 3.24apk-tools2.12.6-r0
alpine edgeapk-tools2.12.6-r0

Referencias

Las 9 referencias

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.