{"schemaVersion":3,"id":"CVE-2015-1340","aliases":["GHSA-8mpq-fmr3-6jxv","GO-2021-0071"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2019-04-22T15:35:59.288Z","modified":"2024-09-17T01:10:47.579Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":7,"severity":"high","vector":"CVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Go","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":5.6,"impact":9.8,"computed":true}]},"epss":{"probability":0.00896,"percentile":0.58893,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00896},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00896,"percentile":0.58893}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00896,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00896,"percentile":0.58893}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')","description":"The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/362.html"}],"affected":[{"vendor":"github.com/lxc","product":"lxd","name":"github.com/lxc/lxd","label":"lxd","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/lxc/lxd","purlType":"golang","versions":[{"text":"< 0.0.0-20151004155856-19c6961cc101","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.0-20151004155856-19c6961cc101","eol":null,"hubHref":null},{"vendor":"linuxcontainers","product":"lxd","name":"lxd","label":"lxd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/linuxcontainers/lxd"},{"vendor":"ubuntu","product":"lxd","name":"LXD","label":"lxd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, < 0.19-0ubuntu5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, < 0.19-0ubuntu5","eol":null,"hubHref":"/vendor/ubuntu/lxd"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/lxc/lxd/commit/19c6961cc1012c8a529f20807328a9357f5034f4","label":"github.com/lxc/lxd/commit/19c6961cc1012c8a529f20807328a9357f5034f4","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory","WEB","FIX"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-1340","label":"nvd.nist.gov/vuln/detail/CVE-2015-1340","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/lxc/lxd/pull/1189","label":"github.com/lxc/lxd/pull/1189","hostname":"github.com","tags":["WEB"]},{"url":"https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1502270","label":"bugs.launchpad.net/ubuntu/+source/lxd/+bug/1502270","hostname":"bugs.launchpad.net","tags":["WEB"]},{"url":"https://github.com/lxc/lxd","label":"github.com/lxc/lxd","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0071","label":"pkg.go.dev/vuln/GO-2021-0071","hostname":"pkg.go.dev","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2019-04-22T15:35:59.288Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-17T01:10:47.579Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":33,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T21:24:03.422Z","stale":false,"partial":false}}