Katalog CVE

CVE-2026-55158

KrytyczneCVSS 9.1
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

Conflibot przed wersją 1.2.1 buduje polecenia git checkout, git merge i git format-patch, wstawiając kontrolowaną przez atakującego wartość head.ref pull requesta do ciągów przekazywanych do exec. W konfiguracji pull_request_target atakujący może otworzyć pull request z nazwą gałęzi zawierającą metaznaki powłoki, które zostaną wykonane bez interakcji opiekuna. Problem naprawiono w wersjach 1.2.1 i 2.0.0.

Ocena ryzyka

Możliwe jest wykonanie dowolnych poleceń na runnerze z dostępem do sekretów repozytorium bazowego i tokenu GITHUB_TOKEN o zakresie zapisu, co grozi eksfiltracją sekretów, nieautoryzowanymi pushami i innym nadużyciem tokenu. Ryzyko jest wysokie w repozytoriach korzystających z pull_request_target.

Rekomendacja

Zaktualizuj Conflibot do wersji 1.2.1 lub 2.0.0. Przejrzyj konfigurację workflow pull_request_target i ogranicz uprawnienia tokenu GITHUB_TOKEN.

Powiązane podatności

Oryginalny opis (angielski, źródło NVD)

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.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS