CVE-2021-41282: diag_routes.php in pfSense 2.5.2 allows sed data injection.

CVE-2021-41282 affects 1 listed version of Netgate pfSense CE in the Dawnsentry catalogue.

8.8CVSS high
Attack tool publicexploitation
87%EPSS (next 30 days)
1 March 2022published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Netgate pfSense CE

1 of 48 listed versions are affected. No fixed release is named. The newest release, 2.9.2, is not affected.

2.5.2

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by MITRE on 1 March 2022. Last changed 17 June 2026. Exploit code is public (Metasploit or Nuclei).

Sources

Check one version you run: look CVE-2021-41282 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.