CVE-2021-36159

Source
https://cve.org/CVERecord?id=CVE-2021-36159
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-36159.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-36159
Downstream
Published
2021-08-03T14:15:08.233Z
Modified
2026-03-15T22:41:06.829109Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git /

Affected ranges

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-36159.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "fixed": "2021-07-26"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "fixed": "2021-07-26"
            }
        ]
    }
]