CVE-2021-36159
Last modified
CVE-2021-36159 is a critical-severity vulnerability rated 9.1/10 on the CVSS scale. 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. EPSS estimates a 2.64% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Freebsd | Libfetch | < 2021-07-26 |
References
- https://github.com/freebsd/freebsd-src/commits/main/lib/libfetchPatch, Third Party Advisory
- https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10749Exploit, Third Party Advisory
- https://github.com/freebsd/freebsd-src/commits/main/lib/libfetchPatch, Third Party Advisory
- https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10749Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-36159?
How severe is CVE-2021-36159?
How do I fix CVE-2021-36159?
Are you affected by CVE-2021-36159?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
