conda/infrastructure CIで任意コード実行の恐れ、修正済み
Summary
conda の開発用リポジトリで使われる GitHub Actions のワークフロー update.yml に、外部から送られた Pull Request の内容が、強い権限を持つトークン付きで処理されてしまう欠陥がありました。コミット 9c0f238 で修正済みです。同じ仕組みを自組織のリポジトリで使っている場合は、ワークフローの有無を確認し、修正を取り込んでください。
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
conda の開発用リポジトリで使われる GitHub Actions のワークフロー update.yml に、外部から送られた Pull Request の内容が、強い権限を持つトークン付きで処理されてしまう欠陥がありました。コミット 9c0f238 で修正済みです。同じ仕組みを自組織のリポジトリで使っている場合は、ワークフローの有無を確認し、修正を取り込んでください。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| conda | infrastructure | — | — |
Original description The description as published by the source.
Conda Organization Infrastructure is a centralized location for infrastructure codes. Prior to commit 9c0f238, a GitHub Actions Pwn Request vulnerability appears to remain present in conda/conda. The affected workflow is .github/workflows/update.yml. It is triggered by issue_comment events containing @conda-bot render or @conda-bot recreate. For the render path, the workflow obtains the pull request head repository and branch from the PR API, checks out that PR-controlled repository/ref using secrets.SYNC_TOKEN, and then runs conda/actions/template-files@7f6830b1428a9bd47f0b068892c77eae95207037. The external template-files action reads its default configuration and templates from the checked-out working directory. In the confirmed finding, that action uses an unsandboxed Jinja2 environment to render attacker-controlled template content. This creates a Pwn Request chain in which an untrusted PR/comment path can reach template rendering in a privileged token context. This issue has been patched via commit 9c0f238.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com