Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 749579 (CVE-2020-15157) - <app-emulation/containerd-1.3.0: credential leakage (CVE-2020-15157)
Summary: <app-emulation/containerd-1.3.0: credential leakage (CVE-2020-15157)
Status: RESOLVED FIXED
Alias: CVE-2020-15157
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo Security
URL: https://github.com/containerd/contain...
Whiteboard: B4 [noglsa cve]
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-16 17:11 UTC by John Helmert III
Modified: 2020-12-23 01:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2020-10-16 17:11:29 UTC
CVE-2020-15157:

If a container image manifest in the OCI Image format or Docker Image V2 Schema 2 format includes a URL for the location of a specific image layer (otherwise known as a “foreign layer”), the default containerd resolver will follow that URL to attempt to download it. In v1.2.x but not 1.3.0 or later, the default containerd resolver will provide its authentication credentials if the server where the URL is located presents an HTTP 401 status code along with registry-specific HTTP headers.

If an attacker publishes a public image with a manifest that directs one of the layers to be fetched from a web server they control and they trick a user or system into pulling the image, they can obtain the credentials used for pulling that image. In some cases, this may be the user's username and password for the registry. In other cases, this may be the credentials attached to the cloud virtual instance which can grant access to other cloud resources in the account.



This is patched in 1.2.14 and in all 1.3 versions. Maintainers, please drop the 1.2 branch or produce an updated ebuild for that branch. Thanks!
Comment 1 Larry the Git Cow gentoo-dev 2020-11-10 21:33:41 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bff574337518003f1f7bfcbb98e92373f0580a58

commit bff574337518003f1f7bfcbb98e92373f0580a58
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-11-10 21:25:33 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-11-10 21:33:13 +0000

    app-emulation/containerd: drop old
    
    Bug: https://bugs.gentoo.org/749579
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 app-emulation/containerd/Manifest                 |  9 ----
 app-emulation/containerd/containerd-1.2.10.ebuild | 56 -----------------------
 app-emulation/containerd/containerd-1.2.12.ebuild | 56 -----------------------
 app-emulation/containerd/containerd-1.2.13.ebuild | 56 -----------------------
 app-emulation/containerd/containerd-1.2.6.ebuild  | 56 -----------------------
 app-emulation/containerd/containerd-1.2.7.ebuild  | 56 -----------------------
 app-emulation/containerd/containerd-1.3.0.ebuild  | 56 -----------------------
 app-emulation/containerd/containerd-1.3.1.ebuild  | 56 -----------------------
 app-emulation/containerd/containerd-1.3.2.ebuild  | 55 ----------------------
 app-emulation/containerd/containerd-1.3.4.ebuild  | 55 ----------------------
 app-emulation/containerd/files/containerd.initd   | 24 ----------
 11 files changed, 535 deletions(-)
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2020-12-23 01:06:44 UTC
GLSA vote: no!

Repository is clean, all done!