{"answers":{"affected":"3 open source packages ship an affected version, including prefect.","exploited":"There is no known exploitation of CVE-2026-3515 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2026-3515 is a high-severity command injection vulnerability in prefecthq/prefect, published on 24 May 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-3515 and fix it if it is affected.\n\nWhat it is: CVE-2026-3515 is a high-severity command injection vulnerability in prefecthq/prefect, published on 24 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-3515 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- prefect (PyPI): affected all versions up to 3.6.18; no fix listed\n- prefect (PyPI): affected all versions up to 3.6.18; no fix listed\n- prefect (PyPI): affected all versions up to 3.6.18; no fix listed\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-2026-3515/ (Markdown: https://insights.sbomify.com/CVE-2026-3515/index.md)","id":"CVE-2026-3515","markdown":"https://insights.sbomify.com/CVE-2026-3515/index.md","name":"CVE-2026-3515","record":{"aliases":["GHSA-cw25-2p92-7f75","PYSEC-2026-2957","ROOT-APP-PYPI-CVE-2026-3515"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Prefect GitHub integration","requires_auth":"low_privilege","summary":"Attackers can inject git options via the reference field in Prefect's GitHub integration, leading to SSRF, credential theft, or remote code execution.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[],"cvss":{"score":8.5,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","version":"3.0"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"description":"A vulnerability in the `GitHubRepository` block of the `prefect-github` integration in Prefect version 3.6.18 allows an attacker to inject arbitrary git command-line options via the `reference` field. The `reference` field is concatenated directly into a `git clone` command string without proper sanitization, and then parsed by `shlex.split()`. This enables injection of options such as `-c`, leading to potential Server-Side Request Forgery (SSRF), credential theft, or remote code execution (RCE). The vulnerability affects both the `aget_directory()` and `get_directory()` methods in `src/integrations/prefect-github/prefect_github/repository.py`. This issue does not affect the GitLab and BitBucket integrations, which use a safer list-based command construction approach.","ecosystems":["PyPI"],"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":"Argument Injection in prefecthq/prefect","id":"CVE-2026-3515","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":3,"n_references":1,"next":{"headline":"Contact List \u003c= 3.0.18 - Authenticated (Contributor+) Stored Cross-Site Scripting via '_cl_map_iframe' Parameter","id":"CVE-2026-3516"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["3.6.18"],"package":"prefect","purl":null,"source":"GHSA-cw25-2p92-7f75"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["3.6.18"],"package":"prefect","purl":"pkg:pypi/prefect","source":"GHSA-cw25-2p92-7f75"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["3.6.18"],"package":"prefect","purl":"pkg:pypi/prefect","source":"PYSEC-2026-2957"}],"prev":{"headline":"Authentication Bypass in prefecthq/prefect","id":"CVE-2026-3514"},"products":["prefecthq/prefect"],"published":"2026-05-24","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-26","vendors":["prefecthq"]},"summary":"Attackers can inject git options via the reference field in Prefect's GitHub integration, leading to SSRF, credential theft, or remote code execution.","url":"https://insights.sbomify.com/CVE-2026-3515/"}