Rapid7 Vulnerability & Exploit Database

FreeBSD: VID-D22B336D-0567-11EC-B69D-4062311215D5 (CVE-2021-36159): FreeBSD -- libfetch out of bounds read

Free InsightVM Trial No Credit Card Necessary
Watch Demo See how it all works
Back to Search

FreeBSD: VID-D22B336D-0567-11EC-B69D-4062311215D5 (CVE-2021-36159): FreeBSD -- libfetch out of bounds read

Severity
6
CVSS
(AV:N/AC:L/Au:N/C:P/I:N/A:P)
Published
08/03/2021
Created
11/08/2022
Added
11/04/2022
Modified
11/04/2022

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.

Solution(s)

  • freebsd-upgrade-base-11_4-release-p13
  • freebsd-upgrade-base-12_2-release-p10
  • freebsd-upgrade-base-13_0-release-p4

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;