7.8
HIGH
CVE-2023-30549
Apptainer Ext4 Use-After-Free Flaw
Description

Apptainer is an open source container platform for Linux. There is an ext4 use-after-free flaw that is exploitable through versions of Apptainer < 1.1.0 and installations that include apptainer-suid < 1.1.8 on older operating systems where that CVE has not been patched. That includes Red Hat Enterprise Linux 7, Debian 10 buster (unless the linux-5.10 package is installed), Ubuntu 18.04 bionic and Ubuntu 20.04 focal. Use-after-free flaws in the kernel can be used to attack the kernel for denial of service and potentially for privilege escalation. Apptainer 1.1.8 includes a patch that by default disables mounting of extfs filesystem types in setuid-root mode, while continuing to allow mounting of extfs filesystems in non-setuid "rootless" mode using fuse2fs. Some workarounds are possible. Either do not install apptainer-suid (for versions 1.1.0 through 1.1.7) or set `allow setuid = no` in apptainer.conf. This requires having unprivileged user namespaces enabled and except for apptainer 1.1.x versions will disallow mounting of sif files, extfs files, and squashfs files in addition to other, less significant impacts. (Encrypted sif files are also not supported unprivileged in apptainer 1.1.x.). Alternatively, use the `limit containers` options in apptainer.conf/singularity.conf to limit sif files to trusted users, groups, and/or paths, and set `allow container extfs = no` to disallow mounting of extfs overlay files. The latter option by itself does not disallow mounting of extfs overlay partitions inside SIF files, so that's why the former options are also needed.

INFO

Published Date :

April 25, 2023, 9:15 p.m.

Last Modified :

Nov. 21, 2024, 8 a.m.

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2023-30549 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Redhat enterprise_linux
1 Lfprojects apptainer
1 Sylabs singularity
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2023-30549.

URL Resource
https://access.redhat.com/security/cve/cve-2022-1184 Not Applicable
https://github.com/apptainer/apptainer/commit/5a4964f5ba9c8d89a0e353b97f51fd607670a9f7 Patch
https://github.com/apptainer/apptainer/releases/tag/v1.1.8 Release Notes
https://github.com/apptainer/apptainer/security/advisories/GHSA-j4rf-7357-f4cg Mitigation Vendor Advisory
https://github.com/torvalds/linux/commit/2220eaf90992c11d888fe771055d4de3303
https://github.com/torvalds/linux/commit/4f04351888a83e595571de672e0a4a8b74f
https://lwn.net/Articles/932136/
https://lwn.net/Articles/932137/
https://security-tracker.debian.org/tracker/CVE-2022-1184 Not Applicable
https://security.gentoo.org/glsa/202311-13
https://sylabs.io/2023/04/response-to-cve-2023-30549/
https://ubuntu.com/security/CVE-2022-1184 Not Applicable
https://www.suse.com/security/cve/CVE-2022-1184.html Not Applicable
https://access.redhat.com/security/cve/cve-2022-1184 Not Applicable
https://github.com/apptainer/apptainer/commit/5a4964f5ba9c8d89a0e353b97f51fd607670a9f7 Patch
https://github.com/apptainer/apptainer/releases/tag/v1.1.8 Release Notes
https://github.com/apptainer/apptainer/security/advisories/GHSA-j4rf-7357-f4cg Mitigation Vendor Advisory
https://github.com/torvalds/linux/commit/2220eaf90992c11d888fe771055d4de3303
https://github.com/torvalds/linux/commit/4f04351888a83e595571de672e0a4a8b74f
https://lwn.net/Articles/932136/
https://lwn.net/Articles/932137/
https://security-tracker.debian.org/tracker/CVE-2022-1184 Not Applicable
https://security.gentoo.org/glsa/202311-13
https://sylabs.io/2023/04/response-to-cve-2023-30549/
https://ubuntu.com/security/CVE-2022-1184 Not Applicable
https://www.suse.com/security/cve/CVE-2022-1184.html Not Applicable

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-30549 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-30549 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/security/cve/cve-2022-1184
    Added Reference https://github.com/apptainer/apptainer/commit/5a4964f5ba9c8d89a0e353b97f51fd607670a9f7
    Added Reference https://github.com/apptainer/apptainer/releases/tag/v1.1.8
    Added Reference https://github.com/apptainer/apptainer/security/advisories/GHSA-j4rf-7357-f4cg
    Added Reference https://github.com/torvalds/linux/commit/2220eaf90992c11d888fe771055d4de3303
    Added Reference https://github.com/torvalds/linux/commit/4f04351888a83e595571de672e0a4a8b74f
    Added Reference https://lwn.net/Articles/932136/
    Added Reference https://lwn.net/Articles/932137/
    Added Reference https://security.gentoo.org/glsa/202311-13
    Added Reference https://security-tracker.debian.org/tracker/CVE-2022-1184
    Added Reference https://sylabs.io/2023/04/response-to-cve-2023-30549/
    Added Reference https://ubuntu.com/security/CVE-2022-1184
    Added Reference https://www.suse.com/security/cve/CVE-2022-1184.html
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Nov. 25, 2023

    Action Type Old Value New Value
    Added Reference GitHub, Inc. https://security.gentoo.org/glsa/202311-13 [No types assigned]
  • CVE Modified by [email protected]

    Jul. 08, 2023

    Action Type Old Value New Value
    Changed Description Apptainer is an open source container platform for Linux. There is an ext4 use-after-free flaw that is exploitable through versions of Apptainer < 1.1.0, installations that include apptainer-suid < 1.1.8, and all versions of Singularity in their default configurations on older operating systems where that CVE has not been patched. That includes Red Hat Enterprise Linux 7, Debian 10 buster (unless the linux-5.10 package is installed), Ubuntu 18.04 bionic and Ubuntu 20.04 focal. Use-after-free flaws in the kernel can be used to attack the kernel for denial of service and potentially for privilege escalation. Apptainer 1.1.8 includes a patch that by default disables mounting of extfs filesystem types in setuid-root mode, while continuing to allow mounting of extfs filesystems in non-setuid "rootless" mode using fuse2fs. Some workarounds are possible. Either do not install apptainer-suid (for versions 1.1.0 through 1.1.7) or set `allow setuid = no` in apptainer.conf (or singularity.conf for singularity versions). This requires having unprivileged user namespaces enabled and except for apptainer 1.1.x versions will disallow mounting of sif files, extfs files, and squashfs files in addition to other, less significant impacts. (Encrypted sif files are also not supported unprivileged in apptainer 1.1.x.). Alternatively, use the `limit containers` options in apptainer.conf/singularity.conf to limit sif files to trusted users, groups, and/or paths, and set `allow container extfs = no` to disallow mounting of extfs overlay files. The latter option by itself does not disallow mounting of extfs overlay partitions inside SIF files, so that's why the former options are also needed. Apptainer is an open source container platform for Linux. There is an ext4 use-after-free flaw that is exploitable through versions of Apptainer < 1.1.0 and installations that include apptainer-suid < 1.1.8 on older operating systems where that CVE has not been patched. That includes Red Hat Enterprise Linux 7, Debian 10 buster (unless the linux-5.10 package is installed), Ubuntu 18.04 bionic and Ubuntu 20.04 focal. Use-after-free flaws in the kernel can be used to attack the kernel for denial of service and potentially for privilege escalation. Apptainer 1.1.8 includes a patch that by default disables mounting of extfs filesystem types in setuid-root mode, while continuing to allow mounting of extfs filesystems in non-setuid "rootless" mode using fuse2fs. Some workarounds are possible. Either do not install apptainer-suid (for versions 1.1.0 through 1.1.7) or set `allow setuid = no` in apptainer.conf. This requires having unprivileged user namespaces enabled and except for apptainer 1.1.x versions will disallow mounting of sif files, extfs files, and squashfs files in addition to other, less significant impacts. (Encrypted sif files are also not supported unprivileged in apptainer 1.1.x.). Alternatively, use the `limit containers` options in apptainer.conf/singularity.conf to limit sif files to trusted users, groups, and/or paths, and set `allow container extfs = no` to disallow mounting of extfs overlay files. The latter option by itself does not disallow mounting of extfs overlay partitions inside SIF files, so that's why the former options are also needed.
    Removed CVSS V3.1 GitHub, Inc. AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CVSS V3.1 GitHub, Inc. AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H
    Added Reference https://github.com/torvalds/linux/commit/4f04351888a83e595571de672e0a4a8b74f [No Types Assigned]
    Added Reference https://lwn.net/Articles/932136/ [No Types Assigned]
    Added Reference https://lwn.net/Articles/932137/ [No Types Assigned]
    Added Reference https://github.com/torvalds/linux/commit/2220eaf90992c11d888fe771055d4de3303 [No Types Assigned]
    Added Reference https://sylabs.io/2023/04/response-to-cve-2023-30549/ [No Types Assigned]
  • CVE Modified by [email protected]

    May. 26, 2023

    Action Type Old Value New Value
    Changed Description Apptainer is an open source container platform for Linux. There is an ext4 use-after-free flaw that is exploitable through versions of Apptainer < 1.1.0, installations that include apptainer-suid < 1.1.8, and all versions of Singularity in their default configurations on older operating systems where that CVE has not been patched. That includes Red Hat Enterprise Linux 7, Debian 10 buster (unless the linux-5.10 package is installed), Ubuntu 18.04 bionic and Ubuntu 20.04 focal. Use-after-free flaws in the kernel can be used to attack the kernel for denial of service and potentially for privilege escalation. Apptainer 1.1.8 includes a patch that by default disables mounting of extfs filesystem types in setuid-root mode, while continuing to allow mounting of extfs filesystems in non-setuid "rootless" mode using fuse2fs. Some workarounds are possible. Either do not install apptainer-suid (for versions 1.1.0 through 1.1.7) or set `allow setuid = no` in apptainer.conf (or singularity.conf for singularity versions). This requires having unprivileged user namespaces enabled and except for apptainer 1.1.x versions will disallow mounting of sif files, extfs files, and squashfs files in addition to other, less significant impacts. (Encrypted sif files are also not supported unprivileged in apptainer 1.1.x.). Alternatively, use the `limit containers` options in apptainer.conf/singularity.conf to limit sif files to trusted users, groups, and/or paths, and set `allow container extfs = no` to disallow mounting of extfs overlay files. The latter option by itself does not disallow mounting of extfs overlay partitions inside SIF files, so that's why the former options are also needed. Apptainer is an open source container platform for Linux. There is an ext4 use-after-free flaw that is exploitable through versions of Apptainer < 1.1.0, installations that include apptainer-suid < 1.1.8, and all versions of Singularity in their default configurations on older operating systems where that CVE has not been patched. That includes Red Hat Enterprise Linux 7, Debian 10 buster (unless the linux-5.10 package is installed), Ubuntu 18.04 bionic and Ubuntu 20.04 focal. Use-after-free flaws in the kernel can be used to attack the kernel for denial of service and potentially for privilege escalation. Apptainer 1.1.8 includes a patch that by default disables mounting of extfs filesystem types in setuid-root mode, while continuing to allow mounting of extfs filesystems in non-setuid "rootless" mode using fuse2fs. Some workarounds are possible. Either do not install apptainer-suid (for versions 1.1.0 through 1.1.7) or set `allow setuid = no` in apptainer.conf (or singularity.conf for singularity versions). This requires having unprivileged user namespaces enabled and except for apptainer 1.1.x versions will disallow mounting of sif files, extfs files, and squashfs files in addition to other, less significant impacts. (Encrypted sif files are also not supported unprivileged in apptainer 1.1.x.). Alternatively, use the `limit containers` options in apptainer.conf/singularity.conf to limit sif files to trusted users, groups, and/or paths, and set `allow container extfs = no` to disallow mounting of extfs overlay files. The latter option by itself does not disallow mounting of extfs overlay partitions inside SIF files, so that's why the former options are also needed.
  • CVE Modified by [email protected]

    May. 26, 2023

    Action Type Old Value New Value
    Removed CVSS V3.1 GitHub, Inc. AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H
    Added CVSS V3.1 GitHub, Inc. AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
    Removed CVSS V3.1 Reason I-No limiting factors
    Removed CVSS V3.1 Reason PR-Local attacker implies some privilege level needed
    Removed CVSS V3.1 Reason S-Unclear if Scope change occurs
    Removed CVSS V3.1 Reason C-No limiting factors
  • Initial Analysis by [email protected]

    May. 05, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://access.redhat.com/security/cve/cve-2022-1184 No Types Assigned https://access.redhat.com/security/cve/cve-2022-1184 Not Applicable
    Changed Reference Type https://github.com/apptainer/apptainer/commit/5a4964f5ba9c8d89a0e353b97f51fd607670a9f7 No Types Assigned https://github.com/apptainer/apptainer/commit/5a4964f5ba9c8d89a0e353b97f51fd607670a9f7 Patch
    Changed Reference Type https://github.com/apptainer/apptainer/releases/tag/v1.1.8 No Types Assigned https://github.com/apptainer/apptainer/releases/tag/v1.1.8 Release Notes
    Changed Reference Type https://github.com/apptainer/apptainer/security/advisories/GHSA-j4rf-7357-f4cg No Types Assigned https://github.com/apptainer/apptainer/security/advisories/GHSA-j4rf-7357-f4cg Mitigation, Vendor Advisory
    Changed Reference Type https://security-tracker.debian.org/tracker/CVE-2022-1184 No Types Assigned https://security-tracker.debian.org/tracker/CVE-2022-1184 Not Applicable
    Changed Reference Type https://ubuntu.com/security/CVE-2022-1184 No Types Assigned https://ubuntu.com/security/CVE-2022-1184 Not Applicable
    Changed Reference Type https://www.suse.com/security/cve/CVE-2022-1184.html No Types Assigned https://www.suse.com/security/cve/CVE-2022-1184.html Not Applicable
    Added CWE NIST CWE-416
    Added CPE Configuration OR *cpe:2.3:a:lfprojects:apptainer:*:*:*:*:*:go:*:* versions up to (excluding) 1.1.8
    Added CPE Configuration OR *cpe:2.3:a:sylabs:singularity:*:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-30549 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2023-30549 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.08 }} 0.02%

score

0.37831

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability