Miggo Logo

CVE-2022-24769: Moby (Docker Engine) started with non-empty inheritable Linux process capabilities

5.9

CVSS Score
3.1

Basic Information

EPSS Score
0.25367%
Published
4/22/2024
Updated
4/22/2024
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/moby/mobygo< 20.10.1420.10.14
github.com/docker/dockergo< 20.10.1420.10.14

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from containers starting with non-empty inheritable capabilities. The patch modifies three key functions:

  1. In exec_linux.go, privileged containers previously set all capability sets (including inheritable) to full capabilities.
  2. In defaults.go, the default spec included inheritable capabilities.
  3. In oci.go, SetCapabilities populated inheritable capabilities even for non-root users. The patches explicitly remove inheritable capability assignments in these locations, confirming their role in the vulnerability.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Imp**t * *u* w*s *oun* in Mo*y (*o*k*r *n*in*) w**r* *ont*in*rs w*r* in*orr**tly st*rt** wit* non-*mpty in**rit**l* Linux pro**ss **p**iliti*s, *r**tin* *n *typi**l Linux *nvironm*nt *n* *n**lin* pro*r*ms wit* in**rit**l* *il* **p**iliti*s to *l

Reasoning

T** vuln*r**ility st*ms *rom *ont*in*rs st*rtin* wit* non-*mpty in**rit**l* **p**iliti*s. T** p*t** mo*i*i*s t*r** k*y *un*tions: *. In *x**_linux.*o, privil**** *ont*in*rs pr*viously s*t *ll **p**ility s*ts (in*lu*in* in**rit**l*) to *ull **p**ilit