CVE-2020-17518Apache Flink directory traversal attack: remote file writing through the REST API
- 7.5HighCVSS base score
- 49.4%Exploitation in 30 daysEPSS · top 1.1% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Nuclei template for it.
Show the exploits1
Nuclei templates1 template
- Apache Flink 1.5.1 - Local File Inclusion (Nuclei template) (opens in a new tab)
http/cves/2020/CVE-2020-17518.yamlSeverity high
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By apache
- 5 months later
· 5 months later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
- EPSS (exploitation in 30 days)
- 49.4% · top 1.1% of all CVEs (15 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
Apache Software Foundation · Apache Flink
- affected Apache Flink 1.5.1 to 1.11.2
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.apache.flink:flink-runtimeGHSA-7q5g-gph2-4rc6 (opens in a new tab)
References
References24
- https://lists.apache.org/thread.html/rb43cd476419a48be89c1339b527a18116f23eec5b6df2b2acbfef261%40%3Cdev.flink.apache.org%3E (opens in a new tab)x_refsource_MISCmailing-listx_refsource_MLISTx_transferred
- [flink-user] 20210105 [CVE-2020-17518] Apache Flink directory traversal attack: remote file writing through the REST API (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [announce] 20210105 [CVE-2020-17518] Apache Flink directory traversal attack: remote file writing through the REST API (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [oss-security] 20210105 [CVE-2020-17518] Apache Flink directory traversal attack: remote file writing through the REST API (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-issues] 20210106 [GitHub] [flink-web] zentol commented on a change in pull request #408: Add security page for Flink (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-dev] 20210106 [jira] [Created] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-issues] 20210106 [jira] [Created] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-issues] 20210107 [jira] [Updated] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-issues] 20210107 [jira] [Closed] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-issues] 20210107 [jira] [Commented] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-issues] 20210112 [jira] [Commented] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-dev] 20210113 Re: [DISCUSS] Releasing Apache Flink 1.10.3 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-issues] 20210114 [jira] [Reopened] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-issues] 20210114 [jira] [Commented] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-issues] 20210114 [jira] [Closed] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-issues] 20210114 [jira] [Updated] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-issues] 20210114 [jira] [Comment Edited] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-issues] 20210114 [jira] [Updated] (FLINK-20875) [CVE-2020-17518] Directory traversal attack: remote file writing through the REST API (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-issues] 20210114 [jira] [Commented] (FLINK-20875) [CVE-2020-17518] Directory traversal attack: remote file writing through the REST API (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-dev] 20210115 Re: [DISCUSS] Releasing Apache Flink 1.10.3 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [flink-dev] 20210121 Re: [VOTE] Release 1.10.3, release candidate #1 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [announce] 20210125 Apache Software Foundation Security Report: 2020 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [announce] 20210223 Re: Apache Software Foundation Security Report: 2020 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://lists.apache.org/thread.html/r26fcdd4fe288323006253437ebc4dd6fdfadfb5e93465a0e4f68420d%40%3Cuser-zh.flink.apache.org%3E (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-0892 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-7q5g-gph2-4rc6 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2020-17518)Record last updated .