{"answers":{"affected":"2 open source packages ship an affected version, including github.com/sylabs/singularity. It affects 2 products.","exploited":"There is no known exploitation of CVE-2020-25040 in the wild and no public exploit code.","fix":"Upgrade github.com/sylabs/singularity to 3.6.3 or later.","what":"CVE-2020-25040 is a high-severity vulnerability in Opensuse Leap, published on 16 Sep 2020. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-25040 and fix it if it is affected.\n\nWhat it is: CVE-2020-25040 is a high-severity vulnerability in Opensuse Leap, published on 16 Sep 2020. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2020-25040 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/sylabs/singularity (Go): affected all versions; fixed in 3.6.3\n- github.com/sylabs/singularity (Go): affected all versions; fixed in 3.6.3\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-2020-25040/ (Markdown: https://insights.sbomify.com/CVE-2020-25040/index.md)","id":"CVE-2020-25040","markdown":"https://insights.sbomify.com/CVE-2020-25040/index.md","name":"CVE-2020-25040","record":{"aliases":["GHSA-jv9c-w74q-6762","UBUNTU-CVE-2020-25040"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["privilege_escalation","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Singularity container runtime","requires_auth":"low_privilege","summary":"Insecure permissions on temporary directories in Singularity allow local attackers to modify container build operations, potentially leading to privilege escalation.","user_interaction":"not_required","vuln_class":"misconfiguration"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"leap","vendor":"opensuse"},{"product":"singularity","vendor":"sylabs"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"}],"description":"Sylabs Singularity through 3.6.2 has Insecure Permissions on temporary directories used in explicit and implicit container build operations, a different vulnerability than CVE-2020-25039.","ecosystems":["Go"],"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":"Insecure permissions on build temporary rootfs in Singularity","id":"CVE-2020-25040","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":"opensuse:leap","products":["opensuse:leap"],"type":"misconfiguration","year":"2020"},"n_packages":2,"n_references":4,"next":{"headline":"File upload in n/a","id":"CVE-2020-25042"},"packages":[{"ecosystem":"Go","fixed":["3.6.3"],"introduced":["0"],"last_affected":[],"package":"github.com/sylabs/singularity","purl":null,"source":"GHSA-jv9c-w74q-6762"},{"ecosystem":"Go","fixed":["3.6.3"],"introduced":["0"],"last_affected":[],"package":"github.com/sylabs/singularity","purl":"pkg:golang/github.com/sylabs/singularity","source":"GHSA-jv9c-w74q-6762"}],"prev":{"headline":"Insecure permissions on user namespace / fakeroot temporary rootfs in Singularity","id":"CVE-2020-25039"},"products":["n/a"],"published":"2020-09-16","related":[{"cvss_score":5.3,"headline":"Oracle Java SE Integrity Check","id":"CVE-2015-4902","kev_date_added":"2022-03-03","published":"2015-10-21"},{"cvss_score":9.9,"headline":"package builds could use directory traversal to write outside of target area","id":"CVE-2017-14804","kev_date_added":null,"published":"2018-03-01"},{"cvss_score":9.8,"headline":"Teeworlds before 0.7.4 has an integer overflow when computing a tilemap size.","id":"CVE-2019-20787","kev_date_added":null,"published":"2020-04-22"},{"cvss_score":9.8,"headline":"Code injection in n/a","id":"CVE-2019-8341","kev_date_added":null,"published":"2019-02-15"},{"cvss_score":9.8,"headline":"Other in n/a","id":"CVE-2019-6438","kev_date_added":null,"published":"2019-01-31"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2017-18215","kev_date_added":null,"published":"2018-03-05"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2017-6542","kev_date_added":null,"published":"2017-03-27"}],"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":"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Insecure permissions on temporary directories in Singularity allow local attackers to modify container build operations, potentially leading to privilege escalation.","url":"https://insights.sbomify.com/CVE-2020-25040/"}