Skip to content
RCE Advisory Intermediate

GHSL-2023-086_GHSL-2023-087: Expression injection in a GitHub Actions workflow of Airbyte

A GitHub Actions workflow in the Airbyte repository directly interpolated the body of a pull request comment into a shell command, allowing an attacker to inject arbitrary commands. Because the workflow had write permissions, an attacker could modify the repository.

ghsecuritylab Follow

Originally disclosed on GitHub Security Lab

Potential injection from the github.event.comment.body context, which may be controlled by an external user.

ghsecuritylab, on GitHub Security Lab

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

What the attacker needed

Ability to comment on a pull request

The fix

The workflow was disabled on the day the report was sent, as confirmed by Airbyte.

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 something happens on GitHub, like a comment on a pull request. Here, the workflow took the text of the comment and inserted it directly into a command that runs on a server. That means someone could write a comment that includes extra commands, and those commands would run on the server with the workflow's permissions, potentially letting them change the code.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by ghsecuritylab

View all

132 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.