Description
Path traversal in the CLI client image export and copy functionality in Canonical LXD from 4.0.2 before 4.0.14, 5.0.10, 5.21.8, and 6.10 on all platforms allows a remote malicious or machine-in-the-middle image server to overwrite arbitrary local files and execute code on the client system via a crafted Content-Disposition header filename parameter during unified image export or copy operations into a local directory target.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Canonical | LXD | 4.0.2 – < 4.0.14, 5.0.0 – < 5.0.10, 5.21.0 – < 5.21.8, 6.0 – < 6.10 | 4.0.14 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 13 | lxd | No fix yet | — |
| Debian 12 | lxd | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | lxd | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | lxd | No fix yet | — |
| Ubuntu Pro 16.04 LTS | lxd | No fix yet | — |
References
- https://github.com/canonical/lxd/security/advisories/GHSA-g4cm-f533-78hq vendor-advisory issue-tracking
- https://github.com/canonical/lxd/pull/18977 patch
- https://github.com/canonical/lxd/pull/18976 patch
- https://github.com/canonical/lxd/pull/18974 patch
- https://github.com/canonical/lxd/pull/18975 patch
- https://github.com/canonical/lxd/pull/18940 patch