Skip to content
RCE Advisory Advanced

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

The go2rtc process on Home Assistant Green fails to 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.

Viettel Cyber Security 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.

Viettel Cyber Security, 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 with access to the device's localhost interface could execute arbitrary code with root privileges.

What the attacker needed

Access to the device's localhost interface

The fix

The vulnerability 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 as a command without checking it. Because the text is not checked, an attacker can sneak in extra commands that the device then runs with the highest level of permission, called root. The attacker first needs a way to talk to the device's internal localhost interface, which is normally only reachable from the device itself.

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 Viettel Cyber Security

View all

14 more disclosed reports, 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.