# GHSA-4WG8-VHJG-JQ8P: Local privilege escalation in apptainer-suid with --cdi-dirs

- Database: GitHub
- Severity: CVSS 7.8 (High)
- Published: 2026-09-22
- Modified: 2026-09-22

## Affected versions

- apptainer (Go): fixed in 1.5.4

## Description

### Impact

There is a local privilege escalation to root in apptainer-suid versions >= 1.5.0 due to a vulnerability in the `--cdi-dirs` option.  

### Patches

The issue is patched in apptainer 1.5.4.

### Workarounds

The most sure workaround is to remove the apptainer-suid package and use only the unprivileged apptainer package, if that is an option.  An equivalent workaround is to set `allow setuid = no` in apptainer.conf. 

The known exploit utilizes the deprecated `--underlay` option so another mitigation may be to set `enable underlay = no` in apptainer.conf.

### Credit

gogi (@dmskhs0912), assisted by OpenAI Codex.

## References

- https://github.com/apptainer/apptainer/security/advisories/GHSA-4wg8-vhjg-jq8p

Page: https://cve.now/GHSA-4WG8-VHJG-JQ8P

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
