Bug 1566191 (CVE-2017-15137) - CVE-2017-15137 atomic-openshift: image import whitelist can be bypassed by creating an imagestream or using oc tag
Summary: CVE-2017-15137 atomic-openshift: image import whitelist can be bypassed by cr...
Alias: CVE-2017-15137
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1505315 1566192 1619682
Blocks: 1513925
TreeView+ depends on / blocked
Reported: 2018-04-11 18:08 UTC by Kurt Seifried
Modified: 2021-02-17 00:31 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
The OpenShift image import whitelist failed to enforce restrictions correctly when running commands such as "oc tag", for example. This could allow a user with access to OpenShift to run images from registries that should not be allowed.
Clone Of:
Last Closed: 2018-04-11 18:22:30 UTC

Attachments (Terms of Use)

Description Kurt Seifried 2018-04-11 18:08:23 UTC
The image import whitelist is enforced when running "oc import-image someregistry.com/someimage"

but the whitelist is not enforced when running
"oc tag someregistry.com:foo some:tag"

nor is it enforced when directly creating an imagestream tag that references a non-whitelisted registry.

Comment 1 Kurt Seifried 2018-04-11 18:08:32 UTC

Name: Ben Parees (Red Hat)

Comment 3 Kurt Seifried 2018-04-11 18:22:30 UTC
This was fixed in the release of OpenShift 3.9 via RHBA-2018:0489

Comment 4 Dominik Mierzejewski 2018-08-01 11:31:38 UTC
Is OpenShift 3.7 affected as well?

Comment 7 Jason Shepherd 2018-08-03 01:25:14 UTC
Dominik: Yes, Would you like to request a backport of this issue? It is only rated moderate so please provide the reason while you require it.

Comment 8 Dominik Mierzejewski 2018-08-03 11:59:56 UTC
Thanks for confirmation, Jason. Please have the corresponding security advisory (https://access.redhat.com/security/cve/cve-2017-15137) updated with this information, then. I'll open a case requesting a backport.

Comment 10 Jason Shepherd 2018-08-06 01:26:42 UTC
According to our support lifecycle for Openshift Container Platform Red Hat not obliged to backport moderate issues to earlier minor versions. It states "Customers are expected to upgrade their OpenShift environment to the most current supported version". Is there any reason you can't upgrade, or do you think the impact rating needs to be reviewed?


Comment 13 Jason Shepherd 2018-08-09 00:12:20 UTC
I've confirmed that this vulnerability doesn't affect OCP 3.7 because the ability to whitelist image repositories was only added in 3.9. I've added a statement to https://access.redhat.com/security/cve/cve-2017-15137 to that affect.

Note You need to log in before you can comment on or make changes to this bug.