Skip to content

LXD vulnerable to Race Condition

High severity GitHub Reviewed Published May 24, 2022 to the GitHub Advisory Database • Updated Sep 29, 2023

Package

gomod github.com/lxc/lxd (Go)

Affected versions

< 0.0.0-20151004155856-19c6961cc101

Patched versions

0.0.0-20151004155856-19c6961cc101

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

References

Published by the National Vulnerability Database Apr 22, 2019
Published to the GitHub Advisory Database May 24, 2022
Reviewed Feb 7, 2023
Last updated Sep 29, 2023

Severity

High
8.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2015-1340

GHSA ID

GHSA-8mpq-fmr3-6jxv

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.