CVE-2022-39206CWE-610

CI/CD Docker Escape in OneDev

Critical · published September 13, 2022

CVSS v3.1
9.9
EPSS
2%
Percentile
82.0
In the wild
Unconfirmed
What it is

🚨 Docker breakout alert! A sneaky vulnerability in OneDev allows regular users to hijack CI/CD jobs and control the Docker daemon, potentially granting them root access! 🔥 This is like giving a restaurant server the master key to the kitchen; they can not only serve meals but also concoct anything in the kitchen — potentially poisoning the entire establishment! An attacker could exploit this vulnerability to gain full control over the host machine, allowing them to alter builds and inject malicious code into Docker images. With root privileges, the possibilities are dangerously expansive, making it a recipe for absolute chaos in your build environment!

Put simply

This is like giving a restaurant server the master key to the kitchen; they can not only serve meals but also concoct anything in the kitchen — potentially poisoning the entire establishment! The vulnerability arises from Docker sockets being mounted into CI/CD job executors in OneDev, allowing users with project creation permissions to access and control the Docker daemon on the host system.

What to do

An attacker could exploit this vulnerability to gain full control over the host machine, allowing them to alter builds and inject malicious code into Docker images. With root privileges, the possibilities are dangerously expansive, making it a recipe for absolute chaos in your build environment! Upgrade to OneDev version 7.3.0 or higher immediately to mitigate this risk. Ensure that permissions for project creation are tightly controlled and limit access to trusted users only. 🔒 You've got this! Follow these steps to secure your OneDev instance and protect your infrastructure! 🛡️

The record
Technical detail
CVSS v3.1
9.9 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02147 · 82.0th percentile
Weakness
CWE-610 · Externally Controlled Reference to a Resource in Another Sphere
Published
2022-09-13T18:50Z
EPSS history
Timeline
  • 13 SEP 18:50Z
    CI/CD Docker Escape in OneDev
    cvelistv5