# CVE-2020-5427: Possibility of SQL Injection in Spring Cloud Data Flow Task Execution Sorting Query

> Attackers can inject SQL commands via task execution sorting queries in Spring Cloud Data Flow, potentially reading or modifying database contents.

- **Severity:** Medium 5.7 (`CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:L/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 27 Jan 2021
- **Updated:** 16 Sep 2024
- **Also known as:** BIT-spring-cloud-dataflow-2020-5427, GHSA-62q3-rvgv-rchp

## What is CVE-2020-5427?

CVE-2020-5427 is a medium-severity SQL injection vulnerability in Spring Cloud Data Flow, published on 27 Jan 2021. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

### Official description

In Spring Cloud Data Flow, versions 2.6.x prior to 2.6.5, versions 2.5.x prior 2.5.4, an application is vulnerable to SQL injection when requesting task execution.

Weakness: CWE-89 (Improper Neutralization of Special Elements used in an SQL Command)

## Which versions are affected by CVE-2020-5427?

1 open source package ship an affected version, including spring-cloud-dataflow. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `spring-cloud-dataflow` | Bitnami | From 2.5.0 | 2.5.4, 2.6.5 |

Products: Vmware Spring Cloud Data Flow.

## How do I fix CVE-2020-5427?

Upgrade spring-cloud-dataflow to a fixed version for your release line: 2.5.4 or 2.6.5.

## Is CVE-2020-5427 being exploited?

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

## Other vulnerabilities in Spring Cloud Data Flow

- [CVE-2024-37084](https://insights.sbomify.com/CVE-2024-37084/): CVE-2024-37084: Remote code execution in Spring Cloud Data Flow (critical 9.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2020-5427 and fix it if it is affected.

What it is: CVE-2020-5427 is a medium-severity SQL injection vulnerability in Spring Cloud Data Flow, published on 27 Jan 2021. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2020-5427 in the wild and no public exploit code.

Affected packages and fixed versions:
- spring-cloud-dataflow (Bitnami): affected from 2.5.0; fixed in 2.5.4, 2.6.5

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2020-5427/ (Markdown: https://insights.sbomify.com/CVE-2020-5427/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2020-5427
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2020-5427
- OSV: https://osv.dev/vulnerability/CVE-2020-5427

---
From sbomify Insights: https://insights.sbomify.com/CVE-2020-5427/
Summaries are generated and may contain mistakes; the official description above is the record.
