Vulnerability · Published May 26, 2021 · Assigned by redhat
CVE-2021-3509
Medium 6.1
In plain English
A medium-severity cross-site scripting in ceph-dashboard. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A flaw was found in Red Hat Ceph Storage 4, in the Dashboard component. In response to CVE-2020-27839, the JWT token was moved from localStorage to an httpOnly cookie. However, token cookies are used in the body of the HTTP response for the documentation, which again makes it available to XSS.The greatest threat to the system is for confidentiality, integrity, and availability.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ceph | 14.2.21-1 | DEBIAN-CVE-2021-3509 |
| Debian:13 | ceph | 14.2.21-1 | DEBIAN-CVE-2021-3509 |
| Debian:14 | ceph | 14.2.21-1 | DEBIAN-CVE-2021-3509 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | ceph-dashboard | as shipped in Red Hat Ceph Storage 4 |
Weakness: CWE-79
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1950116 x_refsource_MISC
- https://github.com/ceph/ceph/blob/f1557e8f62d31883d3d34ae241a1a26af11d923f/src/pybind/mgr/dashboard/controllers/docs.py#L394-L409 x_refsource_MISC
- https://github.com/ceph/ceph/commit/adda853e64bdba1288d46bc7d462d23d8f2f10ca x_refsource_MISC
- https://github.com/ceph/ceph/commit/7a1ca8d372da3b6a4fc3d221a0e5f72d1d61c27b x_refsource_MISC
- https://github.com/ceph/ceph/commit/af3fffab3b0f13057134d96e5d481e400d8bfd27 x_refsource_MISC