# CVE-2016-3072: Katello SQL Injection vulnerabilities

> Authenticated users can execute arbitrary SQL commands via sort parameters in Katello, potentially compromising database integrity and confidentiality.

- **Severity:** High 8.8 (`CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 7 Jun 2016
- **Updated:** 5 Aug 2024
- **Also known as:** GHSA-527r-mfmj-prqf, RHSA-2016:1083

## What is CVE-2016-3072?

CVE-2016-3072 is a high-severity SQL injection vulnerability in Redhat Satellite, published on 7 Jun 2016. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

Multiple SQL injection vulnerabilities in the scoped_search function in app/controllers/katello/api/v2/api_controller.rb in Katello allow remote authenticated users to execute arbitrary SQL commands via the (1) sort_by or (2) sort_order parameter.

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

## Which versions are affected by CVE-2016-3072?

2 open source packages ship an affected version, including katello. It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `katello` | RubyGems | All versions | 2.4.3 |
| `katello` | RubyGems | All versions | 2.4.3 |
| `ruby193-rubygem-katello` | Red Hat:satellite:6.1::el6 | All versions | 0:2.2.0.86-1.el6_6sat |
| `ruby193-rubygem-katello` | Red Hat:satellite:6.1::el7 | All versions | 0:2.2.0.86-1.el7sat |

Products: Katello Katello, Redhat Satellite.

## How do I fix CVE-2016-3072?

Upgrade katello to 2.4.3 or later.

## Is CVE-2016-3072 being exploited?

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

## Other vulnerabilities in Redhat Satellite

- [CVE-2014-3712](https://insights.sbomify.com/CVE-2014-3712/): Denial of service in n/a (medium 5.0)
- [CVE-2013-4201](https://insights.sbomify.com/CVE-2013-4201/): Missing authorization in n/a (medium 4.3)
- [CVE-2012-5561](https://insights.sbomify.com/CVE-2012-5561/): Information disclosure in n/a (low 2.1)
- [CVE-2012-6116](https://insights.sbomify.com/CVE-2012-6116/): Misconfiguration in n/a (low 2.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2016-3072 and fix it if it is affected.

What it is: CVE-2016-3072 is a high-severity SQL injection vulnerability in Redhat Satellite, published on 7 Jun 2016. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2016-3072 in the wild and no public exploit code.

Affected packages and fixed versions:
- katello (RubyGems): affected all versions; fixed in 2.4.3
- katello (RubyGems): affected all versions; fixed in 2.4.3

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-2016-3072/ (Markdown: https://insights.sbomify.com/CVE-2016-3072/index.md)
```

## Sources

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

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