CVE-2026-71198: [OSSA-2026-038] OpenStack Glance: Multiple SSRF vulnerabilities in web-download and HTTP image APIs (CVE-2026-71196, CVE-2026-71197, CVE-2026-71198)
In OpenStack Glance before 32.0.1, the location API does not validate destination hosts when adding an HTTP location to an image. Unlike the web-download import path, the location API only checks the URL scheme and does not apply the importfilteringopts host restrictions. An authenticated user can add a location pointing to internal endpoints such as the cloud metadata service (169.254.169.254), and retrieve the response by downloading the image data. This affects both the new POST /v2/images/{id}/locations API and the old PATCH API when showmultiplelocations is enabled. Deployments with the HTTP store backend enabled are affected.
Other sources
OpenStack Glance is the image service for OpenStack. A Server-Side Request Forgery (SSRF) vulnerability exists in the image location APIs (POST /v2/images/{id}/locations and PATCH /v2/images/{id} with location JSON-patch). When the HTTP store backend is enabled, an authenticated project member can add an image location URL pointing to internal network services (for example http://169.254.169.254/). Glance-api validates only the URL scheme via validateexternallocation() in glance/common/storeutils.py (blocking file://, filesystem://, swift+config://) but performs no host, IP, or port filtering.
In contrast, the web-download import path (fixed by OSSA-2026-004 / CVE-2026-34881) correctly calls validateimporturi() in glance/common/utils.py, which checks allowed/disallowed hosts and ports via importfilteringopts. The location API code paths bypass this filtering entirely. When a location is added, glancestore makes HTTP HEAD (size check) and GET (hash calculation) requests to the attacker-supplied URL. The response body becomes the image data and can be read via GET /v2/images/{id}/file.
The new POST /locations API requires only the addimagelocation policy (SERVICEORPROJECTMEMBER) and does not require showmultiplelocations. The old PATCH API requires showmultiplelocations=True and the setimagelocation policy. Fix is not yet available (coordinating with upstream).
Reporter: Cyril Roelandt (OpenStack Glance PTL, Glance Core Security Team) Upstream: https://bugs.launchpad.net/glance/+bug/2161330 PSIRT Ticket: PSIRTSUPT-22366 Downstream tracker: OSPRH-34480
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/glanceto a version that resolves this vulnerability.Fixed in 2:25.1.0-2+deb12u5 - Upgrade
Upgrade
debian/glanceto a version that resolves this vulnerability.Fixed in 2:30.0.0-3+deb13u4 - Upgrade
Upgrade
debian/glanceto a version that resolves this vulnerability.Fixed in 2:32.0.0-4 - Upgrade
Upgrade
debian/glanceto a version that resolves this vulnerability.Fixed in 2:25.1.0-2+deb12u5Fixed in 2:30.0.0-3+deb13u4Fixed in 2:32.0.0-4