9.1

CVE-2021-36159: freebsd libfetch Out-of-bounds Read

CVSS: 9.1v3.1CriticalModified
AliasesALPINE-CVE-2021-36159
Published 03-08-2021Last modified 04-08-2024

Vulnerability summary

CVE-2021-36159 is a critical (CVSS 9.1) Out-of-bounds Read vulnerability in freebsd libfetch. EPSS estimates a 2.64% chance of exploitation in the next 30 days, higher than 85.3% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.1/10
010
Critical · v3.1 (NVD)
EPSS score
2.64%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Timeline

  1. 03-08-2021
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 2 sources · 2 versions

EPSS trend

Probability

2.64%

Chance of exploitation in the next 30 days

Percentile

85%

Versus all other CVEs

30-day change

0.00 pp

From 2.64% on 19-09-2026

19-09-202619-10-2026
EPSS score
2.64%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (gitlab.alpinelinux.org)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Alpine1 product
  • apk-tools< 2.10.7-r0 | < 2.12.6-r0
Freebsd1 product

2 vendors · 2 products

References

7 links