PT-2021-21147 · Libfetch+2 · Libfetch+2

Ashish Patil

·

Published

2021-08-03

·

Updated

2024-04-12

·

CVE-2021-36159

CVSS v3.1

9.1

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Name of the Vulnerable Software and Affected Versions libfetch versions prior to 2021-07-26
Description The issue concerns the mishandling of numeric strings for the FTP and HTTP protocols. Specifically, the FTP passive mode implementation allows an out-of-bounds read due to the use of strtol to parse numbers into address bytes without checking for premature line endings. This results in the for-loop condition checking for the '0' terminator one byte too late.
Recommendations For libfetch versions prior to 2021-07-26, consider updating to a version released after 2021-07-26 to resolve the issue. As a temporary workaround, consider restricting the use of FTP passive mode until a patch is available.

Exploit

Fix

Out of bounds Read

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2021-36159
FREEBSD-SA-21_15

Affected Products

Freebsd
Red Os
Libfetch