{"answers":{"affected":"3 open source packages ship an affected version, including github.com/lxc/lxd. It affects 1 product.","exploited":"There is no known exploitation of CVE-2015-1340 in the wild and no public exploit code.","fix":"Upgrade github.com/lxc/lxd to 0.0.0-20151004155856-19c6961cc101 or later.","what":"CVE-2015-1340 is a high-severity vulnerability in Ubuntu LXD, published on 22 Apr 2019. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2015-1340 and fix it if it is affected.\n\nWhat it is: CVE-2015-1340 is a high-severity vulnerability in Ubuntu LXD, published on 22 Apr 2019. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2015-1340 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/lxc/lxd (Go): affected all versions; fixed in 0.0.0-20151004155856-19c6961cc101\n- github.com/lxc/lxd (Go): affected all versions; fixed in 0.0.0-20151004155856-19c6961cc101\n- github.com/lxc/lxd (Go): affected all versions; fixed in 0.0.0-20151004155856-19c6961cc101\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-2015-1340/ (Markdown: https://insights.sbomify.com/CVE-2015-1340/index.md)","id":"CVE-2015-1340","markdown":"https://insights.sbomify.com/CVE-2015-1340/index.md","name":"CVE-2015-1340","record":{"aliases":["GHSA-8mpq-fmr3-6jxv","GO-2021-0071"],"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":"LXD container manager","requires_auth":"low_privilege","summary":"A race condition in LXD allows attackers to change file permissions on the host system via symbolic links, potentially leading to privilege escalation.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"canonical","cpe":[{"product":"lxd","vendor":"linuxcontainers"}],"cvss":{"score":7,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"description":"LXD before version 0.19-0ubuntu5 doUidshiftIntoContainer() has an unsafe Chmod() call that races against the stat in the Filepath.Walk() function. A symbolic link created in that window could cause any file on the system to have any mode of the attacker's choice.","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":"chmod race in doUidshiftIntoContainer","id":"CVE-2015-1340","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"race_condition","year":"2015"},"n_packages":3,"n_references":1,"next":{"headline":"Apport privilege escalation through Python module imports","id":"CVE-2015-1341"},"packages":[{"ecosystem":"Go","fixed":["0.0.0-20151004155856-19c6961cc101"],"introduced":["0"],"last_affected":[],"package":"github.com/lxc/lxd","purl":null,"source":"GHSA-8mpq-fmr3-6jxv"},{"ecosystem":"Go","fixed":["0.0.0-20151004155856-19c6961cc101"],"introduced":["0"],"last_affected":[],"package":"github.com/lxc/lxd","purl":"pkg:golang/github.com/lxc/lxd","source":"GHSA-8mpq-fmr3-6jxv"},{"ecosystem":"Go","fixed":["0.0.0-20151004155856-19c6961cc101"],"introduced":["0"],"last_affected":[],"package":"github.com/lxc/lxd","purl":"pkg:golang/github.com/lxc/lxd","source":"GO-2021-0071"}],"prev":{"headline":"Denial of service in n/a","id":"CVE-2015-1339"},"products":["LXD"],"published":"2019-04-22","related":[],"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":"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-09-17","vendors":["Ubuntu"]},"summary":"A race condition in LXD allows attackers to change file permissions on the host system via symbolic links, potentially leading to privilege escalation.","url":"https://insights.sbomify.com/CVE-2015-1340/"}