Skip to content

Ineffective privileges drop when requesting container network

Moderate severity GitHub Reviewed Published Jul 24, 2023 in apptainer/apptainer • Updated Nov 5, 2023

Package

gomod github.com/apptainer/apptainer (Go)

Affected versions

>= 1.2.0, < 1.2.1

Patched versions

1.2.1

Description

Impact

Fix apptainer/apptainer#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.

Patches

The security fix apptainer/apptainer#1578 has been included in Apptainer 1.2.1

Workarounds

There is no known workaround outside of upgrading to Apptainer 1.2.1

References

@cclerget cclerget published to apptainer/apptainer Jul 24, 2023
Published to the GitHub Advisory Database Jul 25, 2023
Reviewed Jul 25, 2023
Published by the National Vulnerability Database Jul 25, 2023
Last updated Nov 5, 2023

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H

EPSS score

0.050%
(20th percentile)

Weaknesses

CVE ID

CVE-2023-38496

GHSA ID

GHSA-mmx5-32m4-wxvx

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.