CVE-2022-39321

Vulnérabilité élevée dans runner (actions)

CVSS 8.8 · Élevée
EPSS 1.6%
actions•runner•Versions : >= 2.290.0, < 2.293.1, >= 2.284.0, < 2.285.2, >= 2.294.0, < 2.296.2, < 2.283.4, >= 2.286.0, < 2.289.4

Description

GitHub Actions Runner is the application that runs a job from a GitHub Actions workflow. The actions runner invokes the docker cli directly in order to run job containers, service containers, or container actions. A bug in the logic for how the environment is encoded into these docker commands was discovered in versions prior to 2.296.2, 2.293.1, 2.289.4, 2.285.2, and 2.283.4 that allows an input to escape the environment variable and modify that docker command invocation directly. Jobs that use container actions, job containers, or service containers alongside untrusted user inputs in environment variables may be vulnerable. The Actions Runner has been patched, both on `github.com` and hotfixes for GHES and GHAE customers in versions 2.296.2, 2.293.1, 2.289.4, 2.285.2, and 2.283.4. GHES and GHAE customers may want to patch their instance in order to have their runners automatically upgrade to these new runner versions. As a workaround, users may consider removing any container actions, job containers, or service containers from their jobs until they are able to upgrade their runner versions.

Gravité et risque d'exploitation

CVE-2022-39321 obtient un score CVSS de 8.8/10, soit une gravité élevée. Selon le modèle EPSS, la probabilité qu'elle soit exploitée dans les 30 prochains jours est de 1.63 %, ce qui la place devant 75.9 % des CVE référencées.

Que faire ?

  • Vérifiez si runner (versions >= 2.290.0, < 2.293.1, >= 2.284.0, < 2.285.2, >= 2.294.0, < 2.296.2, < 2.283.4, >= 2.286.0, < 2.289.4) est présent sur votre parc.
  • Appliquez le correctif ou la version corrigée indiqués dans les références de l'éditeur.
  • À défaut de correctif, limitez l'exposition (filtrage réseau, désactivation du composant).
  • Automatisez la détection : les agents CVE Heimdall (gratuits, open source) corrèlent l'inventaire de vos serveurs avec la base CVE.

Références