CONTENTUM.COMA specialist. A plan. A result.

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

More vulnerabilities in Freebsd products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.