|
|
Message-ID: <1d0d0f14-04d9-4818-88dd-3ff2dc32d872@jvf.cc>
Date: Wed, 2 Dec 2026 14:08:43 -0800
From: Jay Faulkner <jay@....cc>
To: oss-security@...ts.openwall.com
Subject: [OSSN-0112] Ironic: OCI Registry Credential Leakage
===============================================================================
OSSN-0112: Ironic can leak OCI registry credentials to other hosts
(2026-12-02)
===============================================================================
Summary
~~~~~~~
When Ironic retrieves ``oci://`` images from a registry that requires
authentication, it can send that registry's credentials to a different
host. A registry that returns malicious links or redirects, for example
because it has been compromised, can use this to pass the credentials
to a host of its choosing.
Affected Services / Software
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ironic ('>=36.0.0 <39.0.1, >=33.0.0 <35.2.1, <32.2.1')
Discussion
~~~~~~~~~~
Ironic authenticates to OCI registries using operator-configured
credentials or a pull secret supplied with the node. Two flaws let a
registry steer those credentials elsewhere:
- When listing image tags, Ironic followed pagination links to any host
and sent the registry's credentials with the request.
- When a registry redirected a request, Ironic checked
``[oci]/secure_cdn_registries`` with a substring match, so a host such
as ``docker.io.example.com`` was trusted as ``docker.io`` and received
the credentials.
Only the credentials Ironic holds for the registry sending the link or
redirect are exposed. With HTTP Basic authentication, these include the
username and password. The pagination flaw could also be used to make
the conductor send requests to other hosts it can reach.
The fix trusts only exact matches or subdomains of
``[oci]/secure_cdn_registries`` entries, and refuses pagination links
that leave the registry unless they point to such a trusted host.
Credentials are only exposed in deployments that use ``oci://`` images
and supply registry credentials through any of the following:
- ``image_pull_secret`` in a node's ``instance_info`` or ``driver_info``
- ``[oci]/authentication_config``
- ``[deploy]/image_server_user`` and ``[deploy]/image_server_password``,
which Ironic 34.0.0 and later also use for OCI registries
The redirect flaw also requires ``[oci]/secure_cdn_registries`` to be
non-empty, which it is by default. Deployments that use ``oci://``
images without registry credentials have no credentials to expose, but
can still be made to send requests to other hosts through the
pagination flaw.
Recommended Actions
~~~~~~~~~~~~~~~~~~~
Apply the patches below and restart ``ironic-conductor``.
After patching, review ``[oci]/secure_cdn_registries``. Entries now
match only the exact host or its subdomains. Redirects to other hosts
are still followed, without credentials, but tag listings that page to
another host now fail unless that host is listed. List a host only if
it should receive the registry's credentials.
Until patched, keep ``[oci]/permit_fallback_to_http_transport`` at its
default of ``False``, and use registry credentials that can only pull
images.
**Patches:**
- 2027.1/indri (development): https://review.opendev.org/1012058
- 2026.2/hibiscus: https://review.opendev.org/1016282
- 2026.1/gazpacho: https://review.opendev.org/1016283
- 2025.2/flamingo: https://review.opendev.org/1016285
- 2025.1/epoxy (unmaintained): https://review.opendev.org/1016289
- bugfix/38.0: https://review.opendev.org/1016286
- bugfix/37.0: https://review.opendev.org/1016287
**Credits:** Afonne-CID, G-Research OSS
Contacts / References
~~~~~~~~~~~~~~~~~~~~~
**Author:** Afonne-CID, G-Research OSS
* This OSSN : https://docs.openstack.org/security-notes/OSSN-0115.html
* Original Launchpad bug : https://bugs.launchpad.net/ironic/+bug/2170228
* Related note OSSN-0110 (image server basic auth leak) :
https://docs.openstack.org/security-notes/OSSN-0110.html
* Mailing List : openstack-discuss@...ts.openstack.org
* OpenStack Security : https://security.openstack.org/
Download attachment "OpenPGP_signature.asc" of type "application/pgp-signature" (496 bytes)
Powered by blists - more mailing lists
Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.