Skip to content
XSS Advisory Advanced CVE-2025-2767

(0Day) Arista NG Firewall User-Agent Cross-Site Scripting Remote Code Execution Vulnerability

The User-Agent HTTP header was not properly validated, allowing an attacker to inject an arbitrary script. An attacker could leverage this to execute code with root privileges on affected Arista NG Firewall installations.

Gereon Huppertz Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Arista NG Firewall. Minimal user interaction is required to exploit this vulnerability.

Gereon Huppertz, 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

Root cause

Likely the application inserted the User-Agent header value into a page or command context without sanitising or escaping it.

Impact

An attacker could execute arbitrary code as root on affected installations, with only minimal user interaction required.

What the attacker needed

Affected Arista NG Firewall install; minimal user interaction

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 firewall appliance reads the User-Agent header, which is a short label a browser sends to say what software it is. The appliance failed to clean this text before using it, so a crafted header could smuggle in a script. Because the appliance runs with high privileges, that script could run as the root user, the most powerful account on the system.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by Gereon Huppertz

View all

4 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.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.