CVE-2020-5428 Possibility of SQL Injection in Spring Cloud Task Execution Sorting Query
Attackers can inject SQL commands via TaskExplorer lookup queries in Spring Cloud Task, potentially reading or modifying database contents.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-5428?
CVE-2020-5428 is a medium-severity SQL injection vulnerability in Spring Cloud Task, published on 27 Jan 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
In applications using Spring Cloud Task 2.2.4.RELEASE and below, may be vulnerable to SQL injection when exercising certain lookup queries in the TaskExplorer.
Weakness: CWE-89
Which versions are affected by CVE-2020-5428?
2 open source packages ship an affected version, including org.springframework.cloud:spring-cloud-task-dependencies. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework.cloud:spring-cloud-task-dependencies Maven | All versions | 2.2.5 |
org.springframework.cloud:spring-cloud-task-dependencies Maven | All versions | 2.2.5 |
Products include Vmware Spring Cloud Task.
How do I fix CVE-2020-5428?
Upgrade org.springframework.cloud:spring-cloud-task-dependencies to 2.2.5 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2020-5428 being exploited?
There is no known exploitation of CVE-2020-5428 in the wild and no public exploit code.
Sources
Also known as GHSA-878w-7gxp-mc63.