GHSL-2025-006: Potential code execution in privileged runner in Home Assistant PowerCalc
The validate-lut-files.yml workflow checks out code from a pull request branch and then runs a composite action from that same branch, allowing a malicious PR to execute arbitrary code in a privileged runner. An attacker could gain pull-requests write access and exfiltrate secrets such as IMGUR_CLIENT_ID.
Checking out of untrusted code in validate-lut-files.yml workflow may lead to code execution in privileged runner
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The workflow checked out untrusted code from a pull request branch and then executed a composite action from that branch, so the action definition could be modified by the attacker.
Impact
This may lead to code execution in the runner with pull-requests write privilege and exfiltration of secrets.
What the attacker needed
Ability to open a pull request
The fix
The issue was fixed by the maintainer.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A GitHub Actions workflow is an automated script that runs when someone opens a pull request. This workflow downloaded the pull request's code and then ran a helper script from that same code, so an attacker could put their own commands in the helper script and have them run with extra permissions and access to secret values.