Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/containers/buildah/chroot
  4. ›
  5. CVE-2022-27651

CVE-2022-27651: Incorrect Default Permissions

April 1, 2022 (updated February 9, 2023)

A flaw was found in buildah where containers were incorrectly started with non-empty default permissions. A bug was found in Moby (Docker Engine) where containers were incorrectly started with non-empty inheritable Linux process capabilities, enabling an attacker with access to programs with inheritable file capabilities to elevate those capabilities to the permitted set when execve(2) runs. This has the potential to impact confidentiality and integrity.

References

  • bugzilla.redhat.com/show_bug.cgi?id=2066840
  • github.com/advisories/GHSA-c3g4-w6cv-6v7h
  • github.com/containers/buildah/commit/90b3254c7404039c1c786999ac189654228f6e0e
  • github.com/containers/buildah/commit/e7e55c988c05dd74005184ceb64f097a0cfe645b
  • github.com/containers/buildah/pull/3855
  • github.com/containers/buildah/security/advisories/GHSA-c3g4-w6cv-6v7h
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/25YI27MENCEPZTTGRVU6BQD5V53FNI52/
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2VWH6X6HOFPO6HTESF42HIJZEPXSWVIO/
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7NETC7I6RTMMBRJJQVJOJUPDK4W4PQSJ/
  • nvd.nist.gov/vuln/detail/CVE-2022-27651
  • pkg.go.dev/vuln/GO-2022-0417

Code Behaviors & Features

Detect and mitigate CVE-2022-27651 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 1.25.0

Fixed versions

  • v1.25.0

Solution

Upgrade to version 1.25.0 or above.

Impact 6.8 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-276: Incorrect Default Permissions

Source file

go/github.com/containers/buildah/chroot/CVE-2022-27651.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:38 +0000.