HIGH 8.1 Go

LXD vulnerable to Race Condition

GHSA-8mpq-fmr3-6jxv · CVE-2015-1340 · GO-2021-0071

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Specific Go Packages Affected

github.com/lxc/lxd/shared

Ready to move

Start Securing

Free, no credit card | First findings in minutes