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.
github.com/lxc/lxd/shared
{
"severity": "HIGH",
"nvd_published_at": "2019-04-22T16:29:00Z",
"github_reviewed_at": "2023-02-07T22:39:10Z",
"github_reviewed": true,
"cwe_ids": [
"CWE-362"
]
}