CVE-2022-27649: Github.com/containers/podman/v4 Podman's Default Inheritable Capabilities For Vulnerability
HIGHCVE-2022-27649 is a HIGH (CVSS 7.5) podman's default inheritable capabilities for vulnerability (CWE-276: Incorrect Default Permissions) affecting Github.com/containers/podman/v4 libraries in the Go ecosystem. The issue involves podman's default inheritable capabilities for linux container not empty. Remediation is available by upgrading affected packages to version 4.0.3.
CVE-2022-27649 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-27649
To remediate this vulnerability, upgrade all affected Github.com/containers/podman/v4 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/containers/podman/v4 to 4.0.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/containers/podman/v4
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-27649, inspect your project dependencies for Github.com/containers/podman/v4:
inspect dependencies for github.com/containers/podman/v4
Analyze the terminal output to locate any version of Github.com/containers/podman/v4 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-276: Incorrect Default Permissions, where during installation, installed file permissions are set to allow anyone to modify those files. In Github.com/containers/podman/v4, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-27649 Affected Github.com/containers/podman/v4 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/containers/podman/v4
|
Go |
< 4.0.3
|
4.0.3
|
References
Frequently Asked Questions
What is CVE-2022-27649?
Which Github.com/containers/podman/v4 versions are affected?
What version fixes CVE-2022-27649?
Is github.com/containers/podman/v4 affected?
What is the CVSS score of CVE-2022-27649?
What CWE is associated with CVE-2022-27649?
How can I check Go dependencies for CVE-2022-27649?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qvf8-p83w-v58j",
"modified" : "2022-04-19T18:03:15Z",
"published" : "2022-04-01T20:52:29Z",
"aliases" : [ "CVE-2022-27649" ],
"summary" : "Podman's default inheritable capabilities for linux container not empty",
"details" : "A bug was found in Podman where containers were created with non-empty inheritable Linux process capabilities, creating an atypical Linux environment and enabling programs with inheritable file capabilities to elevate those capabilities to the permitted set during execve(2).\n\nThis bug did not affect the container security sandbox as the inheritable set never contained more capabilities than were included in the container's bounding set.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/containers/podman/v4"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.0.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/containers/podman/security/advisories/GHSA-qvf8-p83w-v58j"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-27649"
}, {
"type" : "WEB",
"url" : "https://github.com/containers/podman/commit/aafa80918a245edcbdaceb1191d749570f1872d0"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2066568"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/containers/podman"
}, {
"type" : "WEB",
"url" : "https://github.com/containers/podman/releases/tag/v4.0.3"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4KDETHL5XCT6RZN2BBNOCEXRZ2W3SFU3"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DLUJZV3HBP56ADXU6QH2V7RNYUPMVBXQ"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/J5WPM42UR6XIBQNQPNQHM32X7S4LJTRX"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-276" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-04-01T20:52:29Z",
"nvd_published_at" : "2022-04-04T20:15:00Z"
}
}