CVE-2024-12830 Arista NG Firewall custom_handler Directory Traversal Remote Code Execution Vulnerability

High 8.1 Published Updated

Remote attackers can execute arbitrary code on Arista NG Firewall via directory traversal in custom_handler without authentication.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-12830?

CVE-2024-12830 is a high-severity path traversal vulnerability in Arista NG Firewall, published on 20 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Arista NG Firewall custom_handler Directory Traversal Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Arista NG Firewall. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the implementation of the custom_handler method. The issue results from the lack of proper validation of a user-supplied path prior to using it in file operations. An attacker can leverage this vulnerability to execute code in the context of the www-data user. Was ZDI-CAN-24019.

Weakness: CWE-22

Which versions are affected by CVE-2024-12830?

It affects 1 product.

Products include Arista Ng Firewall.

How do I fix CVE-2024-12830?

No fix has been published for CVE-2024-12830 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-12830 being exploited?

There is no known exploitation of CVE-2024-12830 in the wild and no public exploit code.

Sources

Also known as GHSA-g2qv-6658-vpj8.

Is CVE-2024-12830 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free