CVE-2021-41282

published 1 Mar 2022 · updated 4 Aug 2024

diag_routes.php in pfSense 2.5.2 allows sed data injection

7.0HighEPSS 87%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 87%. No fixed version is recorded.

diag_routes.php in pfSense 2.5.2 allows sed data injection. Authenticated users are intended to be able to view data about the routes set in the firewall. The data is retrieved by executing the netstat utility, and then its output is parsed via the sed utility. Although the common protection mechanisms against command injection (i.e., the usage of the escapeshellarg function for the arguments) are used, it is still possible to inject sed-specific code and write an arbitrary file in an arbitrary location.

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-41282 severity on Zeptric[![CVE-2021-41282](https://zeptric.io/badge/cve/CVE-2021-41282.svg)](https://zeptric.io/cve/CVE-2021-41282)