Skip to content

Arbitrary code execution in .github/workflows/close_low_effort_issues.yml

High
mr-wewlad published GHSA-32gr-rm34-5j4v Dec 20, 2023

Package

actions close_low_effort_issues.yml (GitHub Actions)

Affected versions

older than commit 78873fa, inclusive

Patched versions

None

Description

Summary

Unquoted variable in the bash code used to close issues can let anyone execute arbitrary code on Github Action servers.

Details

This line has an unquoted variable inside of an if [...], and the variable is actually assigned by people, as it is the issue title. Unquoted variables in Bash might expand to something you don't want to.

PoC

  1. Create an issue
  2. Set its title to export ISSUE_TITLE='-v x[$(your-command-here)] -o false'
  3. Save it
  4. Observe as the low effort issues handler runs your-command-here on Github servers!

Impact

Github might not like random people running arbitrary code on their servers on your behalf.

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

CVE ID

No known CVE

Weaknesses

No CWEs

Credits