{"id":"DHI-ro2v-6nes-hpvu-ofmk","aliases":[],"title":"The ftpcp() function in Lib/ftplib.py was not updated when","originalDescription":"The ftpcp() function in Lib/ftplib.py was not updated when CVE-2021-4189 was fixed. While makepasv() was patched to replace server-supplied PASV host addresses with the actual peer address (getpeername()[0]), ftpcp() still calls parse227() directly and passes the raw attacker-controllable IP address and port to target.sendport(). This patch is related to CVE-2021-4189.","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[{"ecosystem":"Docker Hardened Images:Alpine:3.23","name":"python-3.10","range":">=0, <3.10.21-r1","fixed":"3.10.21-r1"},{"ecosystem":"Docker Hardened Images:Alpine:3.23","name":"python-3.11","range":">=0, <3.11.16-r1","fixed":"3.11.16-r1"},{"ecosystem":"Docker Hardened Images:Alpine:3.23","name":"python-3.12","range":">=0, <3.12.13-r12","fixed":"3.12.13-r12"},{"ecosystem":"Docker Hardened Images:Alpine:3.23","name":"python-3.13","range":">=0, <3.13.14-r0","fixed":"3.13.14-r0"},{"ecosystem":"Docker Hardened Images:Alpine:3.23","name":"python-3.14","range":">=0, <3.14.6-r9","fixed":"3.14.6-r9"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","name":"python-3.10","range":">=0, <3.10.21-r1","fixed":"3.10.21-r1"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","name":"python-3.11","range":">=0, <3.11.16-r1","fixed":"3.11.16-r1"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","name":"python-3.12","range":">=0, <3.12.13-r4","fixed":"3.12.13-r4"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","name":"python-3.13","range":">=0, <3.13.14-r0","fixed":"3.13.14-r0"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","name":"python-3.14","range":">=0, <3.14.6-r0","fixed":"3.14.6-r0"},{"ecosystem":"Docker Hardened Images:Debian:13","name":"python-3.10","range":">=0, <3.10.21-0","fixed":"3.10.21-0"},{"ecosystem":"Docker Hardened Images:Debian:13","name":"python-3.11","range":">=0, <3.11.16-0","fixed":"3.11.16-0"},{"ecosystem":"Docker Hardened Images:Debian:13","name":"python-3.12","range":">=0, <3.12.13-12","fixed":"3.12.13-12"},{"ecosystem":"Docker Hardened Images:Debian:13","name":"python-3.13","range":">=0, <3.13.14-0","fixed":"3.13.14-0"},{"ecosystem":"Docker Hardened Images:Debian:13","name":"python-3.14","range":">=0, <3.14.6-0","fixed":"3.14.6-0"}],"references":[{"url":"https://scout.docker.com/v/DHI-ro2v-6nes-hpvu-ofmk","type":"advisory"},{"url":"https://github.com/python/cpython/pull/149648","type":"fix"},{"url":"https://github.com/python/cpython/commit/ef12d0dc824baccf737bba1458e5eed3d1e0fceb","type":"fix"},{"url":"https://github.com/python/cpython/commit/eac4fe3b2c77693790a5ef7dfab127c1fee81bf9","type":"fix"},{"url":"https://github.com/python/cpython/commit/c88704431ea3248ca769384c13856330976fac1d","type":"fix"},{"url":"https://github.com/python/cpython/commit/bb3446dda6c49b32e67c11dbbbf221b40be00763","type":"fix"},{"url":"https://github.com/python/cpython/commit/7d95a1dc7382b55cba7fdd6a110336077584a4f0","type":"fix"},{"url":"https://github.com/python/cpython/commit/5dadc64673ce875ebfb24163907777dae0f6ca06","type":"fix"},{"url":"https://github.com/python/cpython/commit/2bbcf3fb7a420a05605576c0f9468d4675381b5f","type":"fix"},{"url":"https://github.com/python/cpython/issues/87451","type":"web"},{"url":"https://security.alpinelinux.org/vuln/CVE-2026-8328","type":"advisory"},{"url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-1910.html","type":"advisory"},{"url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-9669","type":"advisory"},{"url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-8328","type":"advisory"},{"url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-7774","type":"advisory"},{"url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-7210","type":"advisory"},{"url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-3276","type":"advisory"},{"url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-1502","type":"advisory"},{"url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-11940","type":"advisory"},{"url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-1929.html","type":"advisory"},{"url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-1930.html","type":"advisory"},{"url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-13462","type":"advisory"},{"url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-1931.html","type":"advisory"},{"url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-1933.html","type":"advisory"},{"url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-3479","type":"advisory"},{"url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-3446","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8328","type":"advisory"},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-8328","type":"advisory"},{"url":"https://ubuntu.com/security/CVE-2026-8328","type":"advisory"},{"url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-8328","type":"advisory"}],"sources":[{"name":"osv","at":"2026-11-28T07:18:50.721Z","url":"https://osv.dev/vulnerability/DHI-ro2v-6nes-hpvu-ofmk","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T22:51:56.477Z"}],"firstSeenAt":"2026-11-19T22:51:56.477Z","publishedAt":"2026-11-19T22:22:58.000Z","modifiedAt":"2026-11-28T06:30:07.486Z"}