CVE-2023-38496
JSON

6.1medium

Apptainer's ineffective privileges drop when requesting container network

Severity
6.1medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.26% (higher than 18% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-mmx5-32m4-wxvxGO-2023-1965

Description

Apptainer is an open source container platform. Version 1.2.0-rc.2 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. A security fix has been included in Apptainer 1.2.1. There is no known workaround outside of upgrading to Apptainer 1.2.1.

Affected

Product or packageVersionsReported by
apptainer apptainer>= 1.2.0-rc.2, < 1.2.1CVE List
github.com/apptainer/apptainer (Go)from 1.2.0 before 1.2.1GitHub Advisory Database, Go Vulnerability Database
lfprojects apptainer1.2.0NVD

All scores

GitHub_M6.1medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
GitHub6.1medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
NVD3.3low CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Classification

CWE-269CWE-271

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Apptainer is an open source container platform. Version 1.2.0-rc.2 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. A security fix has been included in Apptainer 1.2.1. There is no known workaround outside of upgrading to Apptainer 1.2.1.

GitHub Advisory Database
Impact

Fix 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.

Patches

The security fix https://github.com/apptainer/apptainer/pull/1578 has been included in Apptainer 1.2.1

Workarounds

There is no known workaround outside of upgrading to Apptainer 1.2.1

Go Vulnerability Database

Ineffective privileges drop when requesting container network in github.com/apptainer/apptainer

References

Sources

SourceRecordLicence
CVE ListCVE-2023-38496 changed 2024-10-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-mmx5-32m4-wxvx changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2023-1965 changed 2026-03-03CC-BY-4.0
NVDCVE-2023-38496 changed 2026-06-17Public domain