Vulnérabilités / CVE-2021-36159

critique

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

Publiée Modifiée CWE 125
Dans la Trivy database depuis au moins le 24 oct. 2026, 07:11 UTCLa date d'entrée avant ce build n'est pas enregistrée.

Sévérité par source

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

Le label propre à Trivy est CRITICAL. Critique selon NVD. Plus basse selon Red Hat (élevée).

Description

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.

Paquets affectés et versions corrigées

SourcePaquetCorrigé 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
Afficher les 16 entrées de 16 sources
SourcePaquetCorrigé 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

Références

Les 9 références

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.