CVE-2020-5204

Source
https://cve.org/CVERecord?id=CVE-2020-5204
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-5204.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2020-5204
Aliases
  • GHSA-wrpr-xw7q-9wvq
Downstream
Related
Published
2020-01-06T20:15:12Z
Modified
2026-07-09T10:20:52Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

In uftpd before 2.11, there is a buffer overflow vulnerability in handle_PORT in ftpcmd.c that is caused by a buffer that is 16 bytes large being filled via sprintf() with user input based on the format specifier string %d.%d.%d.%d. The 16 byte size is correct for valid IPv4 addresses (len('255.255.255.255') == 16), but the format specifier %d allows more than 3 digits. This has been fixed in version 2.11

References

Affected packages

Git / github.com/troglobit/uftpd

Affected ranges

Type
GIT
Repo
https://github.com/troglobit/uftpd
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:troglobit:uftpd:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "2.11"
        }
    ],
    "source":  [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

v0.*
v0.1
v1.*
v1.0
v1.1
v1.2
v1.3
v1.4
v1.5
v1.6
v1.7
v1.8
v2.*
v2.10
v2.5
v2.6
v2.7
v2.8
v2.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-5204.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "305627866150381828683865241657895014322",
                "12937131316666879073544403319990601086",
                "173866264394877993175631420443797992491",
                "250823014807152732547613692800473923267"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2020-5204-a2bfc361",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/troglobit/uftpd/commit/0fb2c031ce0ace07cc19cd2cb2143c4b5a63c9dd",
        "target":  {
            "file":  "src/ftpcmd.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "73284893654735530245356761491877463198",
            "length":  898
        },
        "id":  "CVE-2020-5204-d12c122b",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/troglobit/uftpd/commit/0fb2c031ce0ace07cc19cd2cb2143c4b5a63c9dd",
        "target":  {
            "file":  "src/ftpcmd.c",
            "function":  "handle_PORT"
        }
    }
]
vanir_signatures_modified
"2026-07-09T10:20:52Z"