{"id":"CVE-2015-1340","state":"PUBLISHED","title":"chmod race in doUidshiftIntoContainer","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.","publishedAt":"2019-04-22T15:35:59.288Z","updatedAt":"2024-09-17T01:10:47.579Z","severity":{"score":7,"label":"High","version":"3.0","vector":"CVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"canonical"},"assigner":"canonical","products":["Ubuntu LXD"],"affected":[{"vendor":"Ubuntu","product":"LXD","versions":[{"version":"unspecified","status":"affected","lessThan":"0.19-0ubuntu5","versionType":"custom"}]}],"references":["https://github.com/lxc/lxd/commit/19c6961cc1012c8a529f20807328a9357f5034f4"],"weaknesses":[],"ingestedAt":"2026-10-29T19:41:58.179Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2015/1xxx/CVE-2015-1340.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2015-1340","state":"PUBLISHED","datePublished":"2019-04-22T15:35:59.288Z","dateUpdated":"2024-09-17T01:10:47.579Z","assignerShortName":"canonical","assignerOrgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateReserved":"2015-01-22T00:00:00.000Z"},"containers":{"cna":{"title":"chmod race in doUidshiftIntoContainer","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Ubuntu","product":"LXD","versions":[{"version":"unspecified","status":"affected","lessThan":"0.19-0ubuntu5","versionType":"custom"}]}],"references":[{"url":"https://github.com/lxc/lxd/commit/19c6961cc1012c8a529f20807328a9357f5034f4","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_0":{"attackComplexity":"HIGH","attackVector":"PHYSICAL","availabilityImpact":"HIGH","baseScore":7,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.0"}}],"problemTypes":[{"descriptions":[{"description":"Race condition.","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"canonical","dateUpdated":"2019-04-22T15:35:59.000Z","orgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc"},"datePublic":"2015-10-02T00:00:00.000Z","source":{"defect":["https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1502270"],"discovery":"INTERNAL"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@ubuntu.com","DATE_PUBLIC":"2015-10-02T00:00:00.000Z","ID":"CVE-2015-1340","STATE":"PUBLIC","TITLE":"chmod race in doUidshiftIntoContainer"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"LXD","version":{"version_data":[{"affected":"<","version_affected":"<","version_value":"0.19-0ubuntu5"}]}}]},"vendor_name":"Ubuntu"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"PHYSICAL","availabilityImpact":"HIGH","baseScore":7,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:P/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.0"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Race condition."}]}]},"references":{"reference_data":[{"name":"https://github.com/lxc/lxd/commit/19c6961cc1012c8a529f20807328a9357f5034f4","refsource":"MISC","url":"https://github.com/lxc/lxd/commit/19c6961cc1012c8a529f20807328a9357f5034f4"}]},"source":{"defect":["https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1502270"],"discovery":"INTERNAL"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/lxc/lxd/commit/19c6961cc1012c8a529f20807328a9357f5034f4","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-06T04:40:18.497Z"}}]}}}