Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/docker/docker
  4. ›
  5. CVE-2021-41091

CVE-2021-41091: Moby (Docker Engine) Insufficiently restricted permissions on data directory

January 31, 2024 (updated May 14, 2024)

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.

References

  • cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf
  • github.com/advisories/GHSA-3fwx-pjgw-3558
  • github.com/moby/moby
  • github.com/moby/moby/commit/f0ab919f518c47240ea0e72d0999576bb8008e64
  • github.com/moby/moby/security/advisories/GHSA-3fwx-pjgw-3558
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB
  • nvd.nist.gov/vuln/detail/CVE-2021-41091

Code Behaviors & Features

Detect and mitigate CVE-2021-41091 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 20.10.9

Fixed versions

  • 20.10.9

Solution

Upgrade to version 20.10.9 or above.

Impact 6.3 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-281: Improper Preservation of Permissions
  • CWE-732: Incorrect Permission Assignment for Critical Resource

Source file

go/github.com/docker/docker/CVE-2021-41091.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:46 +0000.