# CVE-2019-19337: Denial of service in Ceph Storage

> An authenticated attacker can cause a remote denial of service in Ceph RADOS Gateway by sending a specially crafted HTTP Content-Length header.

- **Severity:** Medium 6.5 (`CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/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:** 23 Dec 2019
- **Updated:** 5 Aug 2024
- **Also known as:** GHSA-pg96-f95x-566r, RHSA-2019:4353

## What is CVE-2019-19337?

CVE-2019-19337 is a medium-severity denial of service vulnerability in Red Hat Ceph Storage, published on 23 Dec 2019. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

A flaw was found in Red Hat Ceph Storage version 3 in the way the Ceph RADOS Gateway daemon handles S3 requests. An authenticated attacker can abuse this flaw by causing a remote denial of service by sending a specially crafted HTTP Content-Length header to the Ceph RADOS Gateway server.

Weakness: CWE-20 (Improper Input Validation)

## Which versions are affected by CVE-2019-19337?

It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `ceph` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `ceph-ansible` | Red Hat:ceph_storage:3::el7 | All versions | 0:3.2.38-1.el7cp |
| `ceph-base` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `ceph-common` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `ceph-debuginfo` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `ceph-fuse` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `ceph-mds` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `ceph-mgr` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `ceph-mon` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `ceph-osd` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `ceph-radosgw` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `ceph-selinux` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `ceph-test` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `cephmetrics` | Red Hat:ceph_storage:3::el7 | All versions | 0:2.0.9-1.el7cp |
| `cephmetrics-ansible` | Red Hat:ceph_storage:3::el7 | All versions | 0:2.0.9-1.el7cp |
| `libcephfs-devel` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `libcephfs2` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `librados-devel` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `librados2` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `libradosstriper1` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `librbd-devel` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `librbd1` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `librgw-devel` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `librgw2` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `python-cephfs` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `python-rados` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `python-rbd` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `python-rgw` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |
| `rbd-mirror` | Red Hat:ceph_storage:3::el7 | All versions | 2:12.2.12-84.el7cp |

Products: Redhat Ceph Storage.

## How do I fix CVE-2019-19337?

Apply the vendor's patch.

## Is CVE-2019-19337 being exploited?

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

## Other vulnerabilities in Red Hat Ceph Storage

- [CVE-2022-3854](https://insights.sbomify.com/CVE-2022-3854/): Null dereference in ceph (medium 6.5)
- [CVE-2016-9579](https://insights.sbomify.com/CVE-2016-9579/): Denial of service in ceph (medium 6.5)
- [CVE-2021-3509](https://insights.sbomify.com/CVE-2021-3509/): Cross-site scripting in ceph-dashboard (medium 6.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2019-19337 and fix it if it is affected.

What it is: CVE-2019-19337 is a medium-severity denial of service vulnerability in Red Hat Ceph Storage, published on 23 Dec 2019. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2019-19337 in the wild and no public exploit code.

Affected product: Red Hat Ceph Storage. No package-level version data is available, so check the vendor advisory linked from the reference page.

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

## Sources

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

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