---
title: "CVE-2021-4120"
canonical_url: "https://pkgseek.com/security/CVE-2021-4120"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2021-4120

snapd 2.54.2 fails to perform sufficient validation of snap content interface and layout paths, resulting in the ability for snaps to inject arbitrary AppArmor policy rules via malformed content interface and layout declarations and hence escape strict snap confinement. Fixed in snapd versions 2.54.3+18.04, 2.54.3+20.04 and 2.54.3+21.10.1

CVE-2021-4120 严重级别为 HIGH (8.2)，共索引 4 条受影响软件包构建记录，涉及 1 个发行版。

- **级别 / 评分**: HIGH (8.2)
- **受影响构建数**: 4
- **涉及发行版**: 1
- **已标明修复版本发行版**: Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Ubuntu | focal | golang-github-snapcore-snapd-dev | 2.44.3+20.04 | 2.54.3+20.04 |
| Ubuntu | focal | golang-github-ubuntu-core-snappy-dev | 2.44.3+20.04 | 2.54.3+20.04 |
| Ubuntu | focal | snapd | 2.44.3+20.04 | 2.54.3+20.04 |
| Ubuntu | focal | ubuntu-core-snapd-units | 2.44.3+20.04 | 2.54.3+20.04 |
