CWE
125
Advisory Published
Updated

CVE-2021-36159

First published: Tue Aug 03 2021(Updated: )

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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Freebsd Libfetch<2021-07-26

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2021-36159?

    CVE-2021-36159 is a vulnerability that affects libfetch, a library used in apk-tools, xbps, and other products. It mishandles numeric strings for the FTP and HTTP protocols, leading to an out-of-bounds read.

  • What software products are affected by CVE-2021-36159?

    CVE-2021-36159 affects apk-tools, xbps, and other products that use libfetch before version 2021-07-26.

  • What is the severity of CVE-2021-36159?

    CVE-2021-36159 has a severity rating of 9.1 (Critical).

  • How does CVE-2021-36159 exploit the FTP passive mode implementation?

    CVE-2021-36159 exploits the FTP passive mode implementation by using strtol to parse numeric strings into address bytes, which can lead to an out-of-bounds read.

  • Where can I find more information about CVE-2021-36159?

    You can find more information about CVE-2021-36159 on the following references: [GitHub](https://github.com/freebsd/freebsd-src/commits/main/lib/libfetch), [GitLab](https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10749), and [Apache Mailing List](https://lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc@%3Cdev.kafka.apache.org%3E).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203