Repository navigation
chore(security): suppress CVE-2026-8328 (ftplib.ftpcp SSRF) until 3.14.6 - #4072
Merged
Merged
Conversation
Grype alerts on CVE-2026-8328 against python:3.14.5-slim. The vulnerability is an SSRF in the undocumented ftplib.ftpcp() helper — the same PASV-trust class as CVE-2021-4189, whose original 2021 fix only patched ftplib.FTP and left ftpcp() unprotected. Upstream merged the fix to the CPython 3.14 branch on 2026-05-13 (python/cpython#149793), three days after Python 3.14.5 was tagged. No 3.14.6 release exists yet, so a base-image bump isn't an option. Not exploitable here: `grep -rn "ftplib\|ftpcp" src/` returns zero hits, and no transitive dependency imports ftplib either, so ftpcp() is unreachable from this image. Added to .grype.yaml in the existing python3.14 block alongside the other CPython CVEs awaiting the next 3.14.x point release. The suppression auto-cleans when the next Python bump picks up 3.14.6+.
Contributor
AI Code ReviewOverall: Clean, well-justified vulnerability suppression that follows the established pattern in 🔒 Security
Code Quality & Best Practices
CI Status
✅ Approved Review by Friendly AI Reviewer - made with ❤️ |
Contributor
📊 Coverage Report
📈 View Full Report (updates after merge) 📉 Coverage DetailsFiles needing attention (<50% coverage):
|
LearningCircuit
added a commit
that referenced
this pull request
Jun 22, 2026
…4.6 (#4072) Grype alerts on CVE-2026-8328 against python:3.14.5-slim. The vulnerability is an SSRF in the undocumented ftplib.ftpcp() helper — the same PASV-trust class as CVE-2021-4189, whose original 2021 fix only patched ftplib.FTP and left ftpcp() unprotected. Upstream merged the fix to the CPython 3.14 branch on 2026-05-13 (python/cpython#149793), three days after Python 3.14.5 was tagged. No 3.14.6 release exists yet, so a base-image bump isn't an option. Not exploitable here: `grep -rn "ftplib\|ftpcp" src/` returns zero hits, and no transitive dependency imports ftplib either, so ftpcp() is unreachable from this image. Added to .grype.yaml in the existing python3.14 block alongside the other CPython CVEs awaiting the next 3.14.x point release. The suppression auto-cleans when the next Python bump picks up 3.14.6+.
LearningCircuit
added a commit
that referenced
this pull request
Jun 22, 2026
…4.6 (#4072) Grype alerts on CVE-2026-8328 against python:3.14.5-slim. The vulnerability is an SSRF in the undocumented ftplib.ftpcp() helper — the same PASV-trust class as CVE-2021-4189, whose original 2021 fix only patched ftplib.FTP and left ftpcp() unprotected. Upstream merged the fix to the CPython 3.14 branch on 2026-05-13 (python/cpython#149793), three days after Python 3.14.5 was tagged. No 3.14.6 release exists yet, so a base-image bump isn't an option. Not exploitable here: `grep -rn "ftplib\|ftpcp" src/` returns zero hits, and no transitive dependency imports ftplib either, so ftpcp() is unreachable from this image. Added to .grype.yaml in the existing python3.14 block alongside the other CPython CVEs awaiting the next 3.14.x point release. The suppression auto-cleans when the next Python bump picks up 3.14.6+.
LearningCircuit
added a commit
that referenced
this pull request
Jun 22, 2026
…4.6 (#4072) Grype alerts on CVE-2026-8328 against python:3.14.5-slim. The vulnerability is an SSRF in the undocumented ftplib.ftpcp() helper — the same PASV-trust class as CVE-2021-4189, whose original 2021 fix only patched ftplib.FTP and left ftpcp() unprotected. Upstream merged the fix to the CPython 3.14 branch on 2026-05-13 (python/cpython#149793), three days after Python 3.14.5 was tagged. No 3.14.6 release exists yet, so a base-image bump isn't an option. Not exploitable here: `grep -rn "ftplib\|ftpcp" src/` returns zero hits, and no transitive dependency imports ftplib either, so ftpcp() is unreachable from this image. Added to .grype.yaml in the existing python3.14 block alongside the other CPython CVEs awaiting the next 3.14.x point release. The suppression auto-cleans when the next Python bump picks up 3.14.6+.
LearningCircuit
added a commit
that referenced
this pull request
Jun 22, 2026
…4.6 (#4072) Grype alerts on CVE-2026-8328 against python:3.14.5-slim. The vulnerability is an SSRF in the undocumented ftplib.ftpcp() helper — the same PASV-trust class as CVE-2021-4189, whose original 2021 fix only patched ftplib.FTP and left ftpcp() unprotected. Upstream merged the fix to the CPython 3.14 branch on 2026-05-13 (python/cpython#149793), three days after Python 3.14.5 was tagged. No 3.14.6 release exists yet, so a base-image bump isn't an option. Not exploitable here: `grep -rn "ftplib\|ftpcp" src/` returns zero hits, and no transitive dependency imports ftplib either, so ftpcp() is unreachable from this image. Added to .grype.yaml in the existing python3.14 block alongside the other CPython CVEs awaiting the next 3.14.x point release. The suppression auto-cleans when the next Python bump picks up 3.14.6+.
LearningCircuit
added a commit
that referenced
this pull request
Jun 22, 2026
…4.6 (#4072) Grype alerts on CVE-2026-8328 against python:3.14.5-slim. The vulnerability is an SSRF in the undocumented ftplib.ftpcp() helper — the same PASV-trust class as CVE-2021-4189, whose original 2021 fix only patched ftplib.FTP and left ftpcp() unprotected. Upstream merged the fix to the CPython 3.14 branch on 2026-05-13 (python/cpython#149793), three days after Python 3.14.5 was tagged. No 3.14.6 release exists yet, so a base-image bump isn't an option. Not exploitable here: `grep -rn "ftplib\|ftpcp" src/` returns zero hits, and no transitive dependency imports ftplib either, so ftpcp() is unreachable from this image. Added to .grype.yaml in the existing python3.14 block alongside the other CPython CVEs awaiting the next 3.14.x point release. The suppression auto-cleans when the next Python bump picks up 3.14.6+.
LearningCircuit
added a commit
that referenced
this pull request
Jun 22, 2026
…4.6 (#4072) Grype alerts on CVE-2026-8328 against python:3.14.5-slim. The vulnerability is an SSRF in the undocumented ftplib.ftpcp() helper — the same PASV-trust class as CVE-2021-4189, whose original 2021 fix only patched ftplib.FTP and left ftpcp() unprotected. Upstream merged the fix to the CPython 3.14 branch on 2026-05-13 (python/cpython#149793), three days after Python 3.14.5 was tagged. No 3.14.6 release exists yet, so a base-image bump isn't an option. Not exploitable here: `grep -rn "ftplib\|ftpcp" src/` returns zero hits, and no transitive dependency imports ftplib either, so ftpcp() is unreachable from this image. Added to .grype.yaml in the existing python3.14 block alongside the other CPython CVEs awaiting the next 3.14.x point release. The suppression auto-cleans when the next Python bump picks up 3.14.6+.
LearningCircuit
added a commit
that referenced
this pull request
Jun 22, 2026
…4.6 (#4072) Grype alerts on CVE-2026-8328 against python:3.14.5-slim. The vulnerability is an SSRF in the undocumented ftplib.ftpcp() helper — the same PASV-trust class as CVE-2021-4189, whose original 2021 fix only patched ftplib.FTP and left ftpcp() unprotected. Upstream merged the fix to the CPython 3.14 branch on 2026-05-13 (python/cpython#149793), three days after Python 3.14.5 was tagged. No 3.14.6 release exists yet, so a base-image bump isn't an option. Not exploitable here: `grep -rn "ftplib\|ftpcp" src/` returns zero hits, and no transitive dependency imports ftplib either, so ftpcp() is unreachable from this image. Added to .grype.yaml in the existing python3.14 block alongside the other CPython CVEs awaiting the next 3.14.x point release. The suppression auto-cleans when the next Python bump picks up 3.14.6+.
LearningCircuit
added a commit
that referenced
this pull request
Jun 22, 2026
…4.6 (#4072) Grype alerts on CVE-2026-8328 against python:3.14.5-slim. The vulnerability is an SSRF in the undocumented ftplib.ftpcp() helper — the same PASV-trust class as CVE-2021-4189, whose original 2021 fix only patched ftplib.FTP and left ftpcp() unprotected. Upstream merged the fix to the CPython 3.14 branch on 2026-05-13 (python/cpython#149793), three days after Python 3.14.5 was tagged. No 3.14.6 release exists yet, so a base-image bump isn't an option. Not exploitable here: `grep -rn "ftplib\|ftpcp" src/` returns zero hits, and no transitive dependency imports ftplib either, so ftpcp() is unreachable from this image. Added to .grype.yaml in the existing python3.14 block alongside the other CPython CVEs awaiting the next 3.14.x point release. The suppression auto-cleans when the next Python bump picks up 3.14.6+.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Grype is alerting on CVE-2026-8328 against the
python:3.14.5-slimbase image (medium / CVSS 5.9, SSRF inftplib.ftpcp()). This PR adds a justified suppression to.grype.yaml, matching the existing pattern for CPython CVEs whose upstream fix has merged but where no fixed Python release exists yet.What the CVE is.
ftplib.ftpcp()is an undocumented helper that copies a file from one FTP server to another. When the source server replies toPASV, the function passed the rawhost:portfrom that reply straight totarget.sendport()— so a malicious source server could redirect the second FTP connection to an internal host (SSRF). It's the same class as CVE-2021-4189, whose original fix addedtrust_server_pasv_ipv4_addresstoftplib.FTPbut leftftpcp()unpatched.Upstream status. The fix was merged to the CPython 3.14 branch on 2026-05-13, three days after Python 3.14.5 was tagged (2026-05-10). No 3.14.6 release exists yet, so we cannot bump our base image to get the fix today.
Why suppression is correct, not a workaround.
ftplibis not imported anywhere in this project:No transitive dependency in
pdm.lockbrings in an FTP client either —crawl4ai,requests,httpx, etc. are all HTTP-only. The vulnerableftpcp()function is therefore unreachable from this image regardless of base-image state. This is consistent with the existing entries in thepython3.14block of.grype.yaml(CVE-2026-6100, -4786, -1502, -6019), all of which are "fix merged upstream, awaiting next release, codepath unreachable here."Cleanup. The suppression will be removed in the same PR that bumps the Python base image to 3.14.6 (or later), alongside the other entries in that block.
Test plan
/usr/local/bin/python3.14.