CVE-2026-55158
Vulnérabilité critique dans conflibot (wktk)
Description
Conflibot warns in advance when merging a pull request will cause conflicts in other open pull requests. Prior to 1.2.1, src/index.ts builds git checkout, git merge, and git format-patch commands by interpolating the attacker-controlled pull request head.ref value into strings passed to exec. In the documented pull_request_target configuration, an attacker can open a pull request, including from a fork, whose branch name contains shell metacharacters, and the workflow automatically interprets those characters as commands without maintainer interaction. The commands execute on a runner with base-repository secrets and a write-scoped GITHUB_TOKEN, allowing arbitrary command execution, secret or token exfiltration, unauthorized pushes, and other token abuse. The fixed implementations in src/index.ts and src/conflibot.ts use execFile or spawn argument arrays, and the v2 line also uses numeric pull-request refs rather than branch names. This issue is fixed in versions 1.2.1 and 2.0.0.
Gravité et risque d'exploitation
CVE-2026-55158 obtient un score CVSS de 9.1/10, soit une gravité critique. Selon le modèle EPSS, la probabilité qu'elle soit exploitée dans les 30 prochains jours est de 0.80 %, ce qui la place devant 56.0 % des CVE référencées.
Que faire ?
- Vérifiez si conflibot (versions < 1.2.1) 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
- https://github.com/wktk/conflibot/security/advisories/GHSA-2qvg-qr73-mqxp
- https://github.com/wktk/conflibot/pull/329
- https://github.com/wktk/conflibot/commit/0107ac6a4575ea200d0b92287ea58f975be9505d
- https://github.com/wktk/conflibot/commit/59e255c49c920fd6b67471ab9ef3bf194439a3f2
- https://github.com/wktk/conflibot/releases/tag/v1.2.1
- https://github.com/wktk/conflibot/releases/tag/v2.0.0
