CVE-2021-36159

Summary

CVECVE-2021-36159
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-08-03 14:15:00 UTC
Updated2023-11-07 03:36:00 UTC
Descriptionlibfetch 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.

Risk And Classification

Problem Types: CWE-125

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Freebsd Libfetch All All All All

References

ReferenceSourceLinkTags
Pony Mail! MLIST lists.apache.org
Pony Mail! MLIST lists.apache.org
[kafka-dev] 20210901 Re: [EXTERNAL] Re: Security vulnerabilities in kafka:2.13-2.6.0/2.7.0 docker image lists.apache.org
Pony Mail! MLIST lists.apache.org
[kafka-users] 20210901 Re: [EXTERNAL] Re: Security vulnerabilities in kafka:2.13-2.6.0/2.7.0 docker image lists.apache.org
libfetch information leak or crash (#10749) · Issues · alpine / apk-tools · GitLab MISC gitlab.alpinelinux.org
Pony Mail! MLIST lists.apache.org
History for lib/libfetch - freebsd/freebsd-src · GitHub MISC github.com
[kafka-users] 20210831 Security vulnerabilities in kafka:2.13-2.6.0/2.7.0 docker image lists.apache.org
[kafka-dev] 20210831 Security vulnerabilities in kafka:2.13-2.6.0/2.7.0 docker image lists.apache.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 500028 Alpine Linux Security Update for apk-tools
  • 501355 Alpine Linux Security Update for apk-tools
  • 503861 Alpine Linux Security Update for apk-tools
  • 690052 Free Berkeley Software Distribution (FreeBSD) Security Update for FreeBSD (d22b336d-0567-11ec-b69d-4062311215d5)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report