Description
A change introduced in Apache Flink 1.11.0 (and released in 1.11.1 and 1.11.2 as well) allows attackers to read any file on the local filesystem of the JobManager through the REST interface of the JobManager process. Access is restricted to files accessible by the JobManager process. 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 b561010b0ee741543c3953306037f00d7a9f0801 from apache/flink:master.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache Flink | Apache Flink 1.11.0 to 1.11.2 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Apache Flink JobManager Traversal
auxiliary/scanner/http/apache_flink_jobmanager_traversal
Exploit-DB 1
- Apache Flink 1.11.0 - Unauthenticated Arbitrary File Read (Metasploit) EDB-49398 · webapps · Jan 8, 2021 · verified
GitHub 14 repositories · most starred shown
-
MrCl0wnLab/SimplesApachePathTraversal ★ 61 · Oct 13, 2021
Tool check: CVE-2021-41773, CVE-2021-42013, CVE-2020-17519
-
B1anda0/CVE-2020-17519 ★ 46 · Jan 6, 2021
Apache Flink 目录遍历漏洞批量检测 (CVE-2020-17519)
-
murataydemir/CVE-2020-17519 ★ 8 · Jan 10, 2021
[CVE-2020-17519] Apache Flink RESTful API Arbitrary File Read
-
dolevf/apache-flink-directory-traversal.nse ★ 3 · Jan 6, 2021
Apache Flink Directory Traversal (CVE-2020-17519) Nmap NSE Script
-
givemefivw/CVE-2020-17519 ★ 1 · Apr 13, 2021
CVE-2020-17519 Cheetah
-
yaunsky/CVE-2020-17519-Apache-Flink ★ 1 · Jan 18, 2021
CVE-2020-17519; Apache Flink 任意文件读取; 批量检测
-
QmF0c3UK/CVE-2020-17519 ★ 1 · Jan 6, 2021
-
Osyanina/westone-CVE-2020-17519-scanner ★ 0 · Feb 25, 2021
A vulnerability scanner that detects CVE-2020-17519 vulnerabilities.
-
radbsie/CVE-2020-17519-Exp ★ 0 · Jan 14, 2021
CVE-2020-17519 EXP
-
dev-team-12x/CVE-2020-17519 ★ 0 · Jan 8, 2021
CVE-2020-17519
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Apache Flink - Local File Inclusion http/cves/2020/CVE-2020-17519.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.flink:flink-runtime_2.11 | >= 1.11.0, < 1.11.3 | 1.11.3 | GHSA-395w-qhqr-9fr6 |
| Maven | org.apache.flink:flink-runtime_2.12 | >= 1.11.0, < 1.11.3 | 1.11.3 | GHSA-395w-qhqr-9fr6 |
References
- https://lists.apache.org/thread.html/r6843202556a6d0bce9607ebc02e303f68fc88e9038235598bde3b50d%40%3Cdev.flink.apache.org%3E
- [flink-user] 20210105 [CVE-2020-17519] Apache Flink directory traversal attack: reading remote files through the REST API mailing-list
- [announce] 20210105 [CVE-2020-17519] Apache Flink directory traversal attack: reading remote files through the REST API mailing-list
- [oss-security] 20210105 [CVE-2020-17519] Apache Flink directory traversal attack: reading remote files through the REST API mailing-list
- [flink-issues] 20210106 [GitHub] [flink-web] zentol commented on a change in pull request #408: Add security page for Flink mailing-list
- http://packetstormsecurity.com/files/160849/Apache-Flink-1.11.0-Arbitrary-File-Read-Directory-Traversal.html
- [flink-issues] 20210110 [jira] [Updated] (FLINK-20916) Typo in test for CVE-2020-17519 mailing-list
- [flink-dev] 20210110 [jira] [Created] (FLINK-20916) Typo in test for CVE-2020-17519 mailing-list
- [flink-issues] 20210110 [jira] [Created] (FLINK-20916) Typo in test for CVE-2020-17519 mailing-list
- [flink-issues] 20210111 [jira] [Assigned] (FLINK-20916) Typo in test for CVE-2020-17519 mailing-list
- [flink-issues] 20210111 [jira] [Commented] (FLINK-20916) Typo in test for CVE-2020-17519 mailing-list
- [flink-dev] 20210113 Re: [DISCUSS] Releasing Apache Flink 1.10.3 mailing-list
- [flink-dev] 20210115 Re: [DISCUSS] Releasing Apache Flink 1.10.3 mailing-list
- [announce] 20210125 Apache Software Foundation Security Report: 2020 mailing-list
- [announce] 20210223 Re: Apache Software Foundation Security Report: 2020 mailing-list
- https://lists.apache.org/thread.html/r26fcdd4fe288323006253437ebc4dd6fdfadfb5e93465a0e4f68420d%40%3Cuser-zh.flink.apache.org%3E