Arbitrary file read in Arista EOS via eAPI path traversal

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-121371?

CVE-2026-121371 is a vulnerability classified as Improper Limitation of a Pathname to a Restricted Directory, affecting EOS (affected versions: 4.36.0F – ≤ 4.36.3M, 4.35.0F – ≤ 4.35.7M, and other affected versions). This vulnerability is rated High, with a CVSS score of 8.7. Current sources do not report this vulnerability as exploited.

Overview

Original source data

On affected EOS versions with the eAPI service enabled, a specially crafted HTTP request can allow an unauthenticated, remote attacker to read arbitrary files, including sensitive credentials from the switch filesystem.

Affected products and scope

Multiple release branches of Arista EOS are affected. The vulnerability applies only when the eAPI service is enabled on the switch. Devices that do not run eAPI are not vulnerable. A patch is available from Arista for the affected versions.

Technical details

The weakness is a path traversal (CWE-22) in the eAPI HTTP service. eAPI exposes the EOS management interface over HTTP. When an attacker sends an HTTP request containing a path that escapes the intended directory, the service returns the contents of an arbitrary file from the switch filesystem. No authentication is required to reach the vulnerable endpoint. The eAPI service must be enabled for the vulnerability to be reachable.

Exploitability

The attack is network-based, requires no authentication, no user interaction, and has low complexity. The eAPI service must be enabled on the target switch. No public exploit has been reported and there is no confirmed in-the-wild exploitation.

Technical impact

An attacker who can reach the eAPI HTTP endpoint gains read access to any file on the switch, including credential files and configuration data. The vulnerability does not allow modification of files or disruption of service. It is a confidentiality-only issue.

Business impact

Organisations running Arista switches with eAPI enabled risk exposure of switch credentials and other sensitive files stored on the device. If an attacker obtains credentials from the switch, they may be able to authenticate to other systems or gain administrative access to the network. The severity depends on what credentials and configuration data the affected switches hold. Network operations and security teams should verify whether eAPI is enabled on their Arista hardware.

Remediation

Apply the vendor patch. If eAPI is not required, disable the service. If eAPI must remain enabled and patching is not immediately possible, restrict network access to the eAPI HTTP endpoint to trusted management networks only.

Detection

Check whether the eAPI service is enabled on Arista EOS switches. Review HTTP access logs on management interfaces for requests that contain path traversal sequences, such as patterns that navigate up directory levels beyond the expected API root. Monitor for unusual file access on the switch filesystem.

Sources (6)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.