QID 353186

Date Published: 2022-03-09

QID 353186: Amazon Linux Security Advisory for docker : ALAS2NITRO-ENCLAVES-2022-017

a file permissions vulnerability was found in moby (docker engine).
Copying files by using `docker cp` into a specially-crafted container can result in unix file permission changes for existing files in the hosts filesystem, which might lead to permissions escalation and allow an attacker access to restricted data. (
( CVE-2021-41089) moby is an open-source project created by docker to enable software containerization.
A bug was found in moby (docker engine) where the data directory (typically `/var/lib/docker`) contained subdirectories with insufficiently restricted permissions, allowing otherwise unprivileged linux users to traverse directory contents and execute programs.
When containers included executable programs with extended permission bits (such as `setuid`), unprivileged linux users could discover and execute those programs.
When the uid of an unprivileged linux user on the host collided with the file owner or group inside a container, the unprivileged linux user on the host could discover, read, and modify those files.
This bug has been fixed in moby (docker engine) 20.10.9.
Users should update to this version as soon as possible.
Running containers should be stopped and restarted for the permissions to be fixed.
For users unable to upgrade limit access to the host to trusted users.
Limit access to host volumes to trusted containers. (
( CVE-2021-41091) docker cli is the command line interface for the docker container runtime.
This bug has been fixed in docker cli 20.10.9.
For users unable to update ensure that any configured credsstore or credhelpers entries in the configuration file reference an installed credential helper that is executable and on the path.

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as High - 7.5 severity.
  • CVSS V2 rated as Medium - 5 severity.
  • Solution
    Please refer to Amazon advisory: ALAS2NITRO-ENCLAVES-2022-017 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 353186

    Software Advisories
    Advisory ID Software Component Link
    ALAS2NITRO-ENCLAVES-2022-017 Amazon Linux 2 URL Logo alas.aws.amazon.com/AL2/ALASNITRO-ENCLAVES-2022-017.html