---
title: "GHSA-phf6-hm3h-x8qp: Cromwell GitHub Actions Secrets exfiltration via `Issue_comment`"
url: https://erroneo.us/security/ghsa/GHSA-phf6-hm3h-x8qp/
description: "GHSA-phf6-hm3h-x8qp (critical, GitHub Actions): Cromwell GitHub Actions Secrets exfiltration via Issuecomment. Summary Using Issuecomment on…"
type: advisory
section: "Security Digest"
date_published: 2025-05-28
date_modified: 2025-05-28
publisher: erroneo.us
author: erroneo.us Security Desk
ghsa: "GHSA-phf6-hm3h-x8qp"
license: All rights reserved. Quote with attribution and a link.
---

# GHSA-phf6-hm3h-x8qp: Cromwell GitHub Actions Secrets exfiltration via `Issue_comment`

## Affected packages

- GitHub Actions `broadinstitute/cromwell` >= 87, < 90 → fixed: 90

## Details

Summary Using Issuecomment on .github/workflows/scalafmt-fix.yml an attacker can inject malicious code using github.event.comment.body. By exploiting the vulnerability, it is possible to exfiltrate high privileged GITHUBTOKEN which can be used to completely overtake the repo since the token has content privileges. In addition ,it is possible to exfiltrate also the secret: - BROADBOTGITHUBTOKEN Details The Issuecomment in GitHub Actions might be an injection path if the variable isn't handle as it should. In the following step it's vulnerable because it directly interpolates untrusted user input into a shell script. In this case, it is possible to exfiltrate GITHUBTOKEN and BROADBOTGITHUBTOKEN secrets. PoC To exploit the vulnerability an attacker can just drop a comment to any issue formed in the following way to exploit the vulnerability in the workflow .github/workflows/updatepylonissue.yml. To prove this is possible, we created an issue and we added a comment with the malicious code to extract the GITHUBTOKEN and BROADBOTGITHUBTOKEN secret. With the GITHUBTOKEN extracted we were able to push a new poc tag which has been deleted after a couple of minutes. Impact Usually with GITHUBTOKEN and write permissions, an attacker is able to completely overtake the repo. We also checked BROADBOTGITHUBTOKEN permission to check if we could move laterally to org level. In this case the token seems scoped to this specific repo but it gives an attacker persistence without the need of a valid GITHUBTOKEN. We suggest to rotate the BROADBOTGITHUBTOKEN token asap. Fix - Avoid directly interpolating untrusted user input into a shell script. Use GitHub Actions input context safely like: This safely passes the comment as an environment variable rather than interpolating it in-place. - Scope GIHTUBTOKEN permissions to just what the actions needs to do. In this case, if it's specific for issues: Kindly reported by @darryk10 @AlbertoPellitteri @loresuso

## Sources

- [GitHub Advisory GHSA-phf6-hm3h-x8qp](https://github.com/advisories/GHSA-phf6-hm3h-x8qp)
- [github.com](https://github.com/broadinstitute/cromwell/security/advisories/GHSA-phf6-hm3h-x8qp)
- [github.com](https://github.com/broadinstitute/cromwell/commit/dc2c26abd31149e296f73ce4e43a36c0c0317b0d)

---
Source page: https://erroneo.us/security/ghsa/GHSA-phf6-hm3h-x8qp/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
