{"answers":{"affected":"3 open source packages ship an affected version, including org.apache.flink:flink-runtime and flink. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-17518 exists.","fix":"Upgrade org.apache.flink:flink-runtime to 1.11.3 or later.","what":"CVE-2020-17518 is a high-severity path traversal vulnerability in Apache Flink, published on 5 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-17518 and fix it if it is affected.\n\nWhat it is: CVE-2020-17518 is a high-severity path traversal vulnerability in Apache Flink, published on 5 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-17518 exists.\n\nAffected packages and fixed versions:\n- org.apache.flink:flink-runtime (Maven): affected from 1.5.1; fixed in 1.11.3\n- org.apache.flink:flink-runtime (Maven): affected from 1.5.1; fixed in 1.11.3\n- flink (Bitnami): affected from 1.5.1; fixed in 1.11.3\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-17518/ (Markdown: https://insights.sbomify.com/CVE-2020-17518/index.md)","id":"CVE-2020-17518","markdown":"https://insights.sbomify.com/CVE-2020-17518/index.md","name":"CVE-2020-17518","record":{"aliases":["BIT-flink-2020-17518","GHSA-7q5g-gph2-4rc6"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Flink","requires_auth":"none","summary":"Attackers can write files to arbitrary locations on the server via the REST API, potentially leading to code execution or data modification.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"flink","vendor":"apache"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-23","name":"Relative Path Traversal"}],"description":"Apache Flink 1.5.1 introduced a REST handler that allows you to write an uploaded file to an arbitrary location on the local file system, through a maliciously modified HTTP HEADER. The files can be written to any location accessible by Flink 1.5.1. All users should upgrade to Flink 1.11.3 or 1.12.0 if their Flink instance(s) are exposed. The issue was fixed in commit a5264a6f41524afe8ceadf1d8ddc8c80f323ebc4 from apache/flink:master.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":"2021-01-06","github_poc":3,"max_poc_stars":7,"metasploit":0,"nuclei":1,"refs":[{"date":"2021-01-06T13:40:06Z","kind":"github_poc","ref":"https://github.com/QmF0c3UK/CVE-2020-17518","stars":7,"title":null},{"date":"2021-01-10T01:12:45Z","kind":"github_poc","ref":"https://github.com/murataydemir/CVE-2020-17518","stars":3,"title":"[CVE-2020-17518] Apache Flink RESTful API Arbitrary File Upload via Directory Traversal"},{"date":"2021-01-10T15:06:40Z","kind":"github_poc","ref":"https://github.com/rakjong/Flink-CVE-2020-17518-getshell","stars":1,"title":"利用Apache Flink CVE-2020-17518 getshell"},{"date":null,"kind":"nuclei","ref":"http/cves/2020/CVE-2020-17518.yaml","stars":null,"title":"Apache Flink 1.5.1 - Local File Inclusion"}],"tier":"weaponised"},"has_fix":true,"headline":"Apache Flink directory traversal attack: remote file writing through the REST API","id":"CVE-2020-17518","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"path_traversal","year":"2020"},"n_packages":3,"n_references":25,"next":{"headline":"Apache Flink Improper Access Control","id":"CVE-2020-17519"},"packages":[{"ecosystem":"Bitnami","fixed":["1.11.3"],"introduced":["1.5.1"],"last_affected":[],"package":"flink","purl":"pkg:bitnami/flink","source":"BIT-flink-2020-17518"},{"ecosystem":"Maven","fixed":["1.11.3"],"introduced":["1.5.1"],"last_affected":[],"package":"org.apache.flink:flink-runtime","purl":null,"source":"GHSA-7q5g-gph2-4rc6"},{"ecosystem":"Maven","fixed":["1.11.3"],"introduced":["1.5.1"],"last_affected":[],"package":"org.apache.flink:flink-runtime","purl":"pkg:maven/org.apache.flink/flink-runtime","source":"GHSA-7q5g-gph2-4rc6"}],"prev":{"headline":"Ozone S3 Gateway allows bucket and key access to non authenticated users","id":"CVE-2020-17517"},"products":["Apache Flink"],"published":"2021-01-05","related":[{"cvss_score":9.1,"headline":"Apache Flink Improper Access Control","id":"CVE-2020-17519","kev_date_added":"2024-05-23","published":"2021-01-05"},{"cvss_score":8.1,"headline":"Apache Flink: Remote code execution via SQL injection in code generation","id":"CVE-2026-35194","kev_date_added":null,"published":"2026-05-15"},{"cvss_score":4.7,"headline":"Command injection in Apache Flink","id":"CVE-2020-1960","kev_date_added":null,"published":"2020-05-14"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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":"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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2025-02-13","vendors":["Apache Software Foundation"]},"summary":"Attackers can write files to arbitrary locations on the server via the REST API, potentially leading to code execution or data modification.","url":"https://insights.sbomify.com/CVE-2020-17518/"}