OSSN-0105: Glance legacy Tasks import bypasses image import URI filtering

Summary

The deprecated Glance /v2/tasks API accepts type=import tasks that bypass import_filtering_opts, allowing an admin to fetch internal URLs from the Glance service network (SSRF). The tasks API has been admin-only since Xena and deprecated for several releases.

Affected Services / Software

glance (>=30.0.0 <30.3.0, >=31.0.0 <31.1.1, ==32.0.0)

Discussion

The legacy tasks import path uses a permissive URI validator that only checks for http:// or https:// prefixes, bypassing the host and port restrictions enforced by the modern web-download import.

Contacts / References

Author: Goutham Pacha Ravi, Red Hat