Vulnerability · Published Jan 5, 2021 · Assigned by apache
CVE-2020-17518Apache Flink directory traversal attack: remote file writing through the REST API
High 7.5
In plain English
A high-severity security flaw in Apache Flink from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 49.1% (higher than 99% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.apache.flink:flink-runtime | 1.11.3 | GHSA-7q5g-gph2-4rc6 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Flink | Apache Flink 1.5.1 to 1.11.2 |
Weakness: CWE-23
References
- https://lists.apache.org/thread.html/rb43cd476419a48be89c1339b527a18116f23eec5b6df2b2acbfef261%40%3Cdev.flink.apache.org%3E x_refsource_MISC
- [flink-user] 20210105 [CVE-2020-17518] Apache Flink directory traversal attack: remote file writing through the REST API mailing-list, x_refsource_MLIST
- [announce] 20210105 [CVE-2020-17518] Apache Flink directory traversal attack: remote file writing through the REST API mailing-list, x_refsource_MLIST
- [oss-security] 20210105 [CVE-2020-17518] Apache Flink directory traversal attack: remote file writing through the REST API mailing-list, x_refsource_MLIST
- [flink-issues] 20210106 [GitHub] [flink-web] zentol commented on a change in pull request #408: Add security page for Flink mailing-list, x_refsource_MLIST
- [flink-dev] 20210106 [jira] [Created] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 mailing-list, x_refsource_MLIST
- [flink-issues] 20210106 [jira] [Created] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 mailing-list, x_refsource_MLIST
- [flink-issues] 20210107 [jira] [Updated] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 mailing-list, x_refsource_MLIST
- [flink-issues] 20210107 [jira] [Closed] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 mailing-list, x_refsource_MLIST
- [flink-issues] 20210107 [jira] [Commented] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 mailing-list, x_refsource_MLIST
- [flink-issues] 20210112 [jira] [Commented] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 mailing-list, x_refsource_MLIST
- [flink-dev] 20210113 Re: [DISCUSS] Releasing Apache Flink 1.10.3 mailing-list, x_refsource_MLIST
- [flink-issues] 20210114 [jira] [Reopened] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 mailing-list, x_refsource_MLIST
- [flink-issues] 20210114 [jira] [Commented] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 mailing-list, x_refsource_MLIST
- [flink-issues] 20210114 [jira] [Closed] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 mailing-list, x_refsource_MLIST
- [flink-issues] 20210114 [jira] [Updated] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 mailing-list, x_refsource_MLIST
- [flink-issues] 20210114 [jira] [Comment Edited] (FLINK-20875) Could patch CVE-2020-17518 to version 1.10 mailing-list, x_refsource_MLIST
- [flink-issues] 20210114 [jira] [Updated] (FLINK-20875) [CVE-2020-17518] Directory traversal attack: remote file writing through the REST API mailing-list, x_refsource_MLIST
- [flink-issues] 20210114 [jira] [Commented] (FLINK-20875) [CVE-2020-17518] Directory traversal attack: remote file writing through the REST API mailing-list, x_refsource_MLIST
- [flink-dev] 20210115 Re: [DISCUSS] Releasing Apache Flink 1.10.3 mailing-list, x_refsource_MLIST
- [flink-dev] 20210121 Re: [VOTE] Release 1.10.3, release candidate #1 mailing-list, x_refsource_MLIST
- [announce] 20210125 Apache Software Foundation Security Report: 2020 mailing-list, x_refsource_MLIST
- [announce] 20210223 Re: Apache Software Foundation Security Report: 2020 mailing-list, x_refsource_MLIST
- https://lists.apache.org/thread.html/r26fcdd4fe288323006253437ebc4dd6fdfadfb5e93465a0e4f68420d%40%3Cuser-zh.flink.apache.org%3E x_refsource_MISC