GHSA-8mpq-fmr3-6jxv

Suggest an improvement
Source
https://github.com/advisories/GHSA-8mpq-fmr3-6jxv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-8mpq-fmr3-6jxv/GHSA-8mpq-fmr3-6jxv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-8mpq-fmr3-6jxv
Aliases
Published
2022-05-24T16:44:07Z
Modified
2023-11-08T03:57:49Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
LXD vulnerable to Race Condition
Details

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

Database specific
{
    "cwe_ids":  [
        "CWE-362"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2023-02-07T22:39:10Z",
    "nvd_published_at":  "2019-04-22T16:29:00Z",
    "severity":  "HIGH"
}
References

Affected packages

Go / github.com/lxc/lxd

Package

Name
github.com/lxc/lxd
View open source insights on deps.dev
Purl
pkg:golang/github.com/lxc/lxd

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.0.0-20151004155856-19c6961cc101

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-8mpq-fmr3-6jxv/GHSA-8mpq-fmr3-6jxv.json"