CVE-2026-61706

my.netkarin.net
جزئیات آسیب‌پذیری
CVE-2026-61706 بالا CVSS 7.4
Infracost GitHub Action: Script injection از طریق عنوان pull request در infracost/actions/diff
Infracost GitHub Action: Script injection via pull request title in infracost/actions/diff
فروشنده: Infracost
تاریخ انتشار: 2026-12-03 22:54:45
Actions

توضیح (فارسی)

Infracost در دیدن برآوردهای هزینه ابر برای Terraform در pull requests می تواند کمک کند . از نسخه 4.0.0 تا قبل از نسخه 4.2.0 یک Script injection در action infracost/actions/diff وجود دارد . step Derive context عنوان pull request را مستقیماً به block run: bash جذب کرد . Actions ${{ ... }} را به script قبل از اجرای bash گسترش می دهد ، بنابراین عنوان PR شامل $(...) ، backticks ، یا ; به عنوان code روی runner اجرا می شود . هر کسی که می تواند یک pull request باز کند می تواند عنوان را تنظیم کند . استفاده موفق از این آسیب ، دستورات arbitrary را روی Actions runner با privileges of the workflow اجرا می کند . Impact بستگی به آنچه workflow exposes دارد : در حالت on: pull_request (تنها پیکسلی که در مستندات Infracost وجود دارد) fork pull requests بدون secrets و با token read-only اجرا می شوند ، بنابراین exposure محدود است . اگر action با pull_request_target استفاده شود ، یا توسط pull request همان repository به عنوان trigger اجرا شود ، کد نفوذی به secrets repository و GITHUB_TOKEN قابل نوشتن دست یافته و امکان theft of secrets و modification of repository را فراهم می کند . استفاده از fork pull request غیر معتبر همچنین معمولاً requires تایید workflow run توسط a maintainer . این issue در نسخه 4.2.0 اصلاح شده است .

Original description (English)

Infracost helps see cloud cost estimates for Terraform in pull requests. From version 4.0.0 to before version 4.2.0, there is a GitHub Actions script injection vulnerability in the infracost/actions/diff action. The "Derive context" step interpolated the pull request title straight into a bash run: block. Actions expands ${{ ... }} into the script before bash runs, so a PR title containing $(...), backticks, or ; executes as code on the runner. Anyone who can open a pull request can set the title. Successful exploitation runs arbitrary commands on the Actions runner with the privileges of the workflow. Impact depends on what the workflow exposes: under on: pull_request (the only configuration in Infracost's documentation) fork pull requests run without secrets and with a read-only token, so exposure is limited. If the action is used with pull_request_target, or triggered by a same-repository pull request, the injected code gains the repository's secrets and a writable GITHUB_TOKEN, enabling secret theft and repository modification. Exploiting an untrusted fork pull request also typically requires a maintainer to approve the workflow run. This issue has been patched in version 4.2.0.

7.4 امتیاز CVSS
1.0٪ احتمال بهره‌برداری (EPSS)
— تاریخ گزارش بهره‌برداری
— تاریخ ثبت در CISA