{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-5204 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2020-5204 is a medium-severity memory corruption vulnerability in troglobit uftpd, published on 6 Jan 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-5204 and fix it if it is affected.\n\nWhat it is: CVE-2020-5204 is a medium-severity memory corruption vulnerability in troglobit uftpd, published on 6 Jan 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-5204 in the wild and no public exploit code.\n\nAffected product: troglobit uftpd. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-5204/ (Markdown: https://insights.sbomify.com/CVE-2020-5204/index.md)","id":"CVE-2020-5204","markdown":"https://insights.sbomify.com/CVE-2020-5204/index.md","name":"CVE-2020-5204","record":{"aliases":["GHSA-4g9j-24m6-cjw4","GHSA-wrpr-xw7q-9wvq","openSUSE-SU-2020:0069-1"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"uFTPD server","requires_auth":"low_privilege","summary":"A buffer overflow in uFTPD allows attackers to execute arbitrary code or cause denial of service via crafted PORT commands.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"uftpd","vendor":"troglobit"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"},{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"description":"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(\u0026#39;255.255.255.255\u0026#39;) == 16), but the format specifier %d allows more than 3 digits. This has been fixed in version 2.11","ecosystems":["openSUSE:Leap 15.1"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Buffer overflow vulnerability in uftpd","id":"CVE-2020-5204","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2020"},"n_packages":1,"n_references":3,"next":{"headline":"Session fixation attack in Pow (Hex package)","id":"CVE-2020-5205"},"packages":[{"ecosystem":"openSUSE:Leap 15.1","fixed":["2.11-lp151.2.3.1"],"introduced":["0"],"last_affected":[],"package":"uftpd","purl":"pkg:rpm/opensuse/uftpd\u0026distro=openSUSE%20Leap%2015.1","source":"openSUSE-SU-2020:0069-1"}],"prev":{"headline":"Fat-Free Framework arbitrary code execution","id":"CVE-2020-5203"},"products":["uftpd"],"published":"2020-01-06","related":[{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2020-20276","kev_date_added":null,"published":"2020-12-18"},{"cvss_score":9.8,"headline":"Path traversal in n/a","id":"CVE-2020-20277","kev_date_added":null,"published":"2020-12-18"},{"cvss_score":7.5,"headline":"Null dereference in n/a","id":"CVE-2020-14149","kev_date_added":null,"published":"2020-06-15"},{"cvss_score":6.5,"headline":"Directory Traversal (Chroot Escape) vulnerability in uftpd","id":"CVE-2020-5221","kev_date_added":null,"published":"2020-01-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["troglobit"]},"summary":"A buffer overflow in uFTPD allows attackers to execute arbitrary code or cause denial of service via crafted PORT commands.","url":"https://insights.sbomify.com/CVE-2020-5204/"}