CVE-2022-45802 Apache StreamPark (incubating): Upload any file to any directory

Critical 9.8 Published Updated

Attackers can upload arbitrary files to any directory due to missing file type validation, potentially leading to code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-45802?

CVE-2022-45802 is a critical vulnerability in Apache StreamPark (incubating), published on 1 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Streampark allows any users to upload a jar as application, but there is no mandatory verification of the uploaded file type, causing users to upload some high-risk files, and may upload them to any directory, Users of the affected versions should upgrade to Apache StreamPark 2.0.0 or later

Weakness: CWE-434

Which versions are affected by CVE-2022-45802?

4 open source packages ship an affected version, including org.apache.streampark:streampark-common_2.11 and org.apache.streampark:streampark-common_2.12. It affects 1 product.

PackageAffectedFixed in
org.apache.streampark:streampark-common_2.11 MavenAll versions2.0.0
org.apache.streampark:streampark-common_2.11 MavenAll versions2.0.0
org.apache.streampark:streampark-common_2.12 MavenAll versions2.0.0
org.apache.streampark:streampark-common_2.12 MavenAll versions2.0.0

Products include Apache Streampark.

How do I fix CVE-2022-45802?

Upgrade org.apache.streampark:streampark-common_2.11 to 2.0.0 or later.

Is CVE-2022-45802 being exploited?

There is no known exploitation of CVE-2022-45802 in the wild and no public exploit code.

Sources

Also known as GHSA-6874-289g-f7h7.

Is CVE-2022-45802 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free