{"answers":{"affected":"3 open source packages ship an affected version, including github.com/apptainer/apptainer. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-38496 in the wild and no public exploit code.","fix":"Upgrade github.com/apptainer/apptainer to 1.2.1 or later.","what":"CVE-2023-38496 is a medium-severity vulnerability in apptainer, published on 25 Jul 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-38496 and fix it if it is affected.\n\nWhat it is: CVE-2023-38496 is a medium-severity vulnerability in apptainer, published on 25 Jul 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-38496 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/apptainer/apptainer (Go): affected from 1.2.0; fixed in 1.2.1\n- github.com/apptainer/apptainer (Go): affected from 1.2.0; fixed in 1.2.1\n- github.com/apptainer/apptainer (Go): affected from 1.2.0; fixed in 1.2.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-38496/ (Markdown: https://insights.sbomify.com/CVE-2023-38496/index.md)","id":"CVE-2023-38496","markdown":"https://insights.sbomify.com/CVE-2023-38496/index.md","name":"CVE-2023-38496","record":{"aliases":["GHSA-mmx5-32m4-wxvx","GO-2023-1965","openSUSE-SU-2024:13073-1"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["privilege_escalation","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Apptainer container platform","requires_auth":"none","summary":"An attacker can craft a starter config to delete host directories due to ineffective privilege dropping during network setup in Apptainer.","user_interaction":"required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"apptainer","vendor":"lfprojects"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H","version":"3.1"},"cwes":[{"id":"CWE-271","name":"Privilege Dropping / Lowering Errors"},{"id":"CWE-269","name":"Improper Privilege Management"}],"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.","ecosystems":["Go","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apptainer's ineffective privileges drop when requesting container network","id":"CVE-2023-38496","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"privilege_escalation","year":"2023"},"n_packages":4,"n_references":3,"next":{"headline":"Cargo not respecting umask when extracting crate archives","id":"CVE-2023-38497"},"packages":[{"ecosystem":"Go","fixed":["1.2.1"],"introduced":["1.2.0"],"last_affected":[],"package":"github.com/apptainer/apptainer","purl":null,"source":"GHSA-mmx5-32m4-wxvx"},{"ecosystem":"Go","fixed":["1.2.1"],"introduced":["1.2.0"],"last_affected":[],"package":"github.com/apptainer/apptainer","purl":"pkg:golang/github.com/apptainer/apptainer","source":"GHSA-mmx5-32m4-wxvx"},{"ecosystem":"Go","fixed":["1.2.1"],"introduced":["1.2.0"],"last_affected":[],"package":"github.com/apptainer/apptainer","purl":"pkg:golang/github.com/apptainer/apptainer","source":"GO-2023-1965"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.2.1-1.1"],"introduced":["0"],"last_affected":[],"package":"apptainer","purl":"pkg:rpm/opensuse/apptainer\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13073-1"}],"prev":{"headline":"Crossplane vulnerable to possible image tampering from missing image validation for Packages","id":"CVE-2023-38495"},"products":["apptainer"],"published":"2023-07-25","related":[{"cvss_score":7.1,"headline":"Unpatched extfs vulnerabilities are exploitable through suid-mode Apptainer","id":"CVE-2023-30549","kev_date_added":null,"published":"2023-04-25"},{"cvss_score":4.5,"headline":"Apptainer ineffective application of selinux and apparmor --security options","id":"CVE-2025-65105","kev_date_added":null,"published":"2025-12-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-10","vendors":["apptainer"]},"summary":"An attacker can craft a starter config to delete host directories due to ineffective privilege dropping during network setup in Apptainer.","url":"https://insights.sbomify.com/CVE-2023-38496/"}