Skip to content
OpenAdvisories
High · 7.5 Scanner template Public exploit CVE-2020-17518 BIT-flink-2020-17518EUVD-2022-0892GHSA-7q5g-gph2-4rc6

Apache Flink directory traversal attack: remote file writing through the REST API

Published Jan 5, 2021 · Updated Feb 13, 2025 · Assigned by apache

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 products

VendorProductAffectedFixed
Apache Software Foundation Apache Flink Apache Flink 1.5.1 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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 3 repositories

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.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.flink:flink-runtime >= 1.5.1, < 1.11.3 1.11.3 GHSA-7q5g-gph2-4rc6

References