Skip to content
RCE Advisory Advanced

(Pwn2Own) Home Assistant Green go2rtc Command Injection Remote Code Execution Vulnerability

The go2rtc process on Home Assistant Green did not properly validate a user-supplied string before using it in a system call, allowing command injection. An attacker who can reach the device's localhost interface could execute arbitrary code as root.

Stephen Fewer Follow

Originally disclosed on Zero Day Initiative

High 7.5 View original

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Home Assistant Green. An attacker must first obtain the ability to access the device's localhost interface.

Stephen Fewer (Rapid7), on the Zero Day Initiative

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

Impact

An attacker able to access the localhost interface could execute arbitrary code as root on the device.

What the attacker needed

Access to the device's localhost interface; network-adjacent position

The fix

It was fixed in go2rtc v1.9.14 and Home Assistant.

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 program on the device takes text from a user and passes it to the operating system to run as a command, without checking what the text contains. By crafting that text, an attacker can make the device run their own commands. Because the program runs with the highest privileges, the attacker effectively controls the whole device.

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 Stephen Fewer

View all

1 more disclosed report, best first.

More from Zero Day Initiative

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.