# CVE-2021-43784: Overflow in netlink bytemsg length field allows attacker to override netlink-based container configuration

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.0
- **CVSS:** 6.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.79% (percentile 79, 2026-11-26)
- **CWE:** CWE-190
- **Aliases:** GHSA-v95c-p5hm-xq8f, GO-2022-0274
- **Published:** 2021-12-06T00:00:00.000Z
- **Modified:** 2026-09-10T03:49:10.478Z

## Who should check

- Projects that depend on Go package github.com/opencontainers/runc (\< 1.0.3)
- Anyone running opencontainers runc \< 1.0.3

## Description

runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. In runc, netlink is used internally as a serialization system for specifying the relevant container configuration to the \`C\` portion of the code (responsible for the based namespace setup of containers). In all versions of runc prior to 1.0.3, the encoder did not handle the possibility of an integer overflow in the 16-bit length field for the byte array attribute type, meaning that a large enough malicious byte array attribute could result in the length overflowing and the attribute contents being parsed as netlink messages for container configuration. This vulnerability requires the attacker to have some control over the configuration of the container and would allow the attacker to bypass the namespace restrictions of the container by simply adding their own netlink payload which disables all namespaces. The main users impacted are those who allow untrusted images with untrusted configurations to run on their machines (such as with shared cloud infrastructure). runc version 1.0.3 contains a fix for this bug. As a workaround, one may try disallowing untrusted namespace paths from your container. It should be noted that untrusted namespace paths would allow the attacker to disable namespace protections entirely even in the absence of this bug.

## Affected and fixed versions

- Go `github.com/opencontainers/runc`: affected \< 1.0.3; fixed 1.0.3, 1.1.0 (osv)
- opencontainers runc: \< 1.0.3 (cvelist)

## Mitigation

- Upgrade github.com/opencontainers/runc to one of 1.0.3, 1.1.0 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-43784. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-43784.md
Affected: github.com/opencontainers/runc < 1.0.3
Fixed in: 1.0.3, 1.1.0

Steps:
1. Search this machine and project for github.com/opencontainers/runc (Go), opencontainers runc: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-43784 being exploited?

There is no confirmed exploitation: CVE-2021-43784 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.79% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-43784?

Medium: CVSS 6.0 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2021-43784?

github.com/opencontainers/runc \< 1.0.3.

### Is there a fix for CVE-2021-43784?

Yes. Fixed in 1.0.3, 1.1.0. Upgrade github.com/opencontainers/runc to one of 1.0.3, 1.1.0 (or later in the same release line).

### How do I check if I'm affected by CVE-2021-43784?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/opencontainers/runc/security/advisories/GHSA-v95c-p5hm-xq8f>
- vendor: <https://lists.debian.org/debian-lts-announce/2021/12/msg00005.html>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-43784>
- patch: <https://github.com/opencontainers/runc/commit/9c444070ec7bb83995dbc0185da68284da71c554>
- patch: <https://github.com/opencontainers/runc/commit/d72d057ba794164c3cce9451a00b72a78b25e1ae>
- patch: <https://github.com/opencontainers/runc/commit/f50369af4b571e358f20b139eea52d612eb55eed>
- patch: <https://github.com/opencontainers/runc/commit/dde509df4e28cec33b3c99c6cda3d4fd5beafc77>
- exploit: <https://bugs.chromium.org/p/project-zero/issues/detail?id=2241>
- other: <https://lists.debian.org/debian-lts-announce/2024/02/msg00005.html>
- other: <https://github.com/opencontainers/runc>
- other: <https://pkg.go.dev/vuln/GO-2022-0274>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-43784>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-v95c-p5hm-xq8f> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2022-0274> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-43784> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-43784>
