CVE-2023-38496: Github.com/apptainer/apptainer Ineffective Privileges Drop When Requesting Vulnerability
MODERATECVE-2023-38496 is a MODERATE (CVSS 6.1) ineffective privileges drop when requesting vulnerability (CWE-269: Improper Privilege Management) affecting Github.com/apptainer/apptainer libraries in the Go ecosystem. The issue involves ineffective privileges drop when requesting container network. Remediation is available by upgrading affected packages to version 1.2.1.
CVE-2023-38496 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H).
How to Fix CVE-2023-38496
To remediate this vulnerability, upgrade all affected Github.com/apptainer/apptainer 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/apptainer/apptainer to 1.2.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/apptainer/apptainer
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-38496, inspect your project dependencies for Github.com/apptainer/apptainer:
inspect dependencies for github.com/apptainer/apptainer
Analyze the terminal output to locate any version of Github.com/apptainer/apptainer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.1), 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-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Github.com/apptainer/apptainer, 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-2023-38496 Affected Github.com/apptainer/apptainer Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/apptainer/apptainer
|
Go |
≥ 1.2.0
< 1.2.1
|
1.2.1
|
References
Frequently Asked Questions
What is CVE-2023-38496?
Which Github.com/apptainer/apptainer versions are affected?
What version fixes CVE-2023-38496?
Is github.com/apptainer/apptainer affected?
What is the CVSS score of CVE-2023-38496?
What CWE is associated with CVE-2023-38496?
How can I check Go dependencies for CVE-2023-38496?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mmx5-32m4-wxvx",
"modified" : "2023-07-25T13:52:20Z",
"published" : "2023-07-25T13:52:20Z",
"aliases" : [ "CVE-2023-38496" ],
"summary" : "Ineffective privileges drop when requesting container network",
"details" : "### Impact\n\nFix https://github.com/apptainer/apptainer/pull/1523 included in Apptainer 1.2.0-rc.2 has introduced an ineffective privilege drop when requesting container network setup, therefore subsequent functions are called with root privileges. The attack surface is rather limited for users but an attacker could possibly craft a starter config to delete any directory on the host filesystems. Only affects setuid installations of Apptainer. \n\n### Patches\n\nThe security fix https://github.com/apptainer/apptainer/pull/1578 has been included in Apptainer 1.2.1\n\n### Workarounds\n\nThere is no known workaround outside of upgrading to Apptainer 1.2.1",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/apptainer/apptainer"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.2.0"
}, {
"fixed" : "1.2.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/apptainer/apptainer/security/advisories/GHSA-mmx5-32m4-wxvx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-38496"
}, {
"type" : "WEB",
"url" : "https://github.com/apptainer/apptainer/pull/1523"
}, {
"type" : "WEB",
"url" : "https://github.com/apptainer/apptainer/pull/1578"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apptainer/apptainer"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-269" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-25T13:52:20Z",
"nvd_published_at" : "2023-07-25T22:15:10Z"
}
}