CVE-2023-38496
Apptainer's ineffective privileges drop when requesting container network
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- Low
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
6.1
Apptainer's ineffective privileges drop when requesting container network
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.
- Record
CVE-2023-38496- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H - Weakness
- CWE-271, CWE-269
- Updated
- 2026-11-02
EUVDEUVD-2023-2102
6.1
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.
- Record
EUVD-2023-2102- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-mmx5-32m4-wxvx
6.1
Ineffective privileges drop when requesting container network
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
- Record
GHSA-mmx5-32m4-wxvx- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H - Weakness
- CWE-269
- Updated
- 2026-11-02
NVD
6.1
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.
- Record
CVE-2023-38496- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H - CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N - Weakness
- CWE-269, CWE-271
- Updated
- 2026-11-02
OSV
6.1
Apptainer's ineffective privileges drop when requesting container network
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.
- Record
CVE-2023-38496- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H - Weakness
- CWE-269, CWE-271
- Updated
- 2026-11-02
OSVGHSA-mmx5-32m4-wxvx
6.1
Ineffective privileges drop when requesting container network
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
- Record
GHSA-mmx5-32m4-wxvx- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H - Weakness
- CWE-269
- Updated
- 2026-11-02
OSVGO-2023-1965 No score
Ineffective privileges drop when requesting container network in github.com/apptainer/apptainer
Ineffective privileges drop when requesting container network in github.com/apptainer/apptainer
- Record
GO-2023-1965- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:0244-1 No score
Security update for apptainer
This update for apptainer fixes the following issues:
-
Make sure, digest values handled by the Go library github.com/opencontainers/go-digest and used throughout the Go-implemented containers ecosystem are always validated. This prevents attackers from triggering unexpected authenticated registry accesses. (CVE-2024-3727, boo#1224114).
-
Updated apptainer to version 1.3.0
- FUSE mounts are now supported in setuid mode, enabling full
functionality even when kernel filesystem mounts are insecure due to
unprivileged users having write access to raw filesystems in
containers. When allow
setuid-mount extfs = no(the default) in apptainer.conf, then the fuse2fs image driver will be used to mount ext3 images in setuid mode instead of the kernel driver (ext3 images are primarily used for the--overlayfeature), restoring functionality that was removed by default in Apptainer 1.1.8 because of the security risk. The allowsetuid-mount squashfsconfiguration option inapptainer.confnow has a new default callediflimitedwhich allows kernel squashfs mounts only if there is at least onelimit containeroption set or if Execution Control Lists are activated in ecl.toml. If kernel squashfs mounts are are not allowed, then the squashfuse image driver will be used instead.iflimitedis the default because if one of those limits are used the system administrator ensures that unprivileged users do not have write access to the containers, but on the other hand using FUSE would enable a user to theoretically bypass the limits viaptrace()because the FUSE process runs as that user. Thefuse-overlayfsimage driver will also now be tried in setuid mode if the kernel overlayfs driver does not work (for example if one of the layers is a FUSE filesystem). In addition, ifallow setuid-mount encrypted = nothen the unprivileged gocryptfs format will be used for encrypting SIF files instead of the kernel device-mapper. If a SIF file was encrypted using the gocryptfs format, it can now be mounted in setuid mode in addition to non-setuid mode. - Change the default in user namespace mode to use either kernel
overlayfs or fuse-overlayfs instead of the underlay feature for the
purpose of adding bind mount points. That was already the default in
setuid mode; this change makes it consistent. The underlay feature
can still be used with the
--underlayoption, but it is deprecated because the implementation is complicated and measurements have shown that the performance of underlay is similar to overlayfs and fuse-overlayfs. For now the underlay feature can be made the default again with a newpreferredvalue on theenable underlayconfiguration option. Also the--underlayoption can be used in setuid mode or as the root user, although it was ignored previously. - Prefer again to use kernel overlayfs over fuse-overlayfs when a lower layer is FUSE and there's no writable upper layer, undoing the change from 1.2.0. Another workaround was found for the problem that change addressed. This applies in both setuid mode and in user namespace mode.
--cwdis now the preferred form of the flag for setting the container's working directory, though--pwdis still supported for compatibility.- The way
--homeis handled when running as root (e.g. sudo apptainer) or with--fakeroothas changed. Previously, we were only modifying theHOMEenvironment variable in these cases, while leaving the container's/etc/passwdfile unchanged (with its homedir field pointing to/root, regardless of the value passed to--home). With this change, both value of HOME and the contents of/etc/passwdin the container will reflect the value passed to--homeif the container is readonly. If the container is writable, the …
- FUSE mounts are now supported in setuid mode, enabling full
functionality even when kernel filesystem mounts are insecure due to
unprivileged users having write access to raw filesystems in
containers. When allow
- Record
openSUSE-SU-2024:0244-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13073-1 No score
apptainer-1.2.1-1.1 on GA media
These are all security issues fixed in the apptainer-1.2.1-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13073-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/apptainer/apptainerGo |
1.2.0 up to 1.2.1 | 1.2.1 |
apptainerSUSE:Package Hub 15 SP5 |
before 1.3.0-bp155.3.3.2 | 1.3.0-bp155.3.3.2 |
squashfuseSUSE:Package Hub 15 SP5 |
before 0.5.0-bp155.2.1 | 0.5.0-bp155.2.1 |
apptaineropenSUSE:Leap 15.5 |
before 1.3.0-bp155.3.3.2 | 1.3.0-bp155.3.3.2 |
squashfuseopenSUSE:Leap 15.5 |
before 0.5.0-bp155.2.1 | 0.5.0-bp155.2.1 |
apptaineropenSUSE:Tumbleweed |
before 1.2.1-1.1 | 1.2.1-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-38496 is a medium vulnerability (CVSS 6.1) in Apptainer, published July 25, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.26%, the 17th percentile. Fixed in github.com/apptainer/apptainer 1.2.1.
References
github.com/apptainer/apptainer/security/advisories/GHSA-mmx5-32m4-wxvx
github.com/apptainer/apptainer/pull/1523
github.com/apptainer/apptainer/pull/1578
nvd.nist.gov/vuln/detail/CVE-2023-38496
github.com/advisories/GHSA-mmx5-32m4-wxvx
github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38496.json
Left out here: the rest of 1 source description. The JSON record has them.