Vulnerabilities · 2021 · Freebsd
CVE-2021-36159
Freebsd Libfetch vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Libfetch. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Freebsd Libfetch runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/freebsd/freebsd-src/commits/main/lib/libfetch · Patch
- gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10749 · Exploit
- lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc%40%
- lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc%40%
- lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7%40%
- lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7%40%
- nvd.nist.gov/vuln/detail/CVE-2021-36159
- cve.org/CVERecord?id=CVE-2021-36159
More vulnerabilities in Freebsd products
CVE-2024-45287CVE-2024-45063CVE-2024-43110CVE-2024-43102CVE-2024-42416CVE-2024-32668CVE-2024-29937CVE-2024-25941All 504
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.