--- title: "CVE-2021-41282: diag_routes.php in pfSense 2.5.2… | CubePath" description: "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…" language: en source: https://cubepath.com/security/cve/CVE-2021-41282 --- # CVE-2021-41282: diag_routes.php in pfSense 2.5.2… | CubePath ## Description 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. Official description from the CVE record, published by mitre. Copyright © 1999-2026 The MITRE Corporation. See [/security/cve/legal](https://cubepath.com/security/cve/legal) for the CVE license. [View the record on cve.org](https://www.cve.org/CVERecord?id=CVE-2021-41282) ## Key data ### EPSS Exploit Prediction Scoring System by FIRST: an estimate of the probability that exploitation activity will be observed in the next 30 days. Score 0.87113 (87.1% probability) Percentile 99.8% Scores of Nov 10, 2026 Model v2026.06.15 ## References Links listed in the CVE record. They lead to other sites, which CubePath does not control. - [shielder.it/advisories](https://www.shielder.it/advisories/) - [shielder.it/advisories/pfsense-remote-command-execution](https://www.shielder.it/advisories/pfsense-remote-command-execution/) - [docs.netgate.com/pfsense/en/latest/releases/22-01\_2-6-0.html](https://docs.netgate.com/pfsense/en/latest/releases/22-01%5F2-6-0.html) - [packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Up…](http://packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Upload.html) ## Timeline 1. ID reserved Sep 15, 2021 2. Record published Mar 1, 2022 3. Record last updated Aug 4, 2024 ## Look up another CVE ## About CubePath CubePath is a cloud provider with data centers in Europe and the United States. It offers VPS, bare metal servers and DDoS protection. [Cloud VPS](https://cubepath.com/vps) [DDoS protection](https://cubepath.com/ddos-protection) Data from the CVE Program (MITRE), CISA KEV and FIRST EPSS. CVSS is owned by FIRST and used by permission. Not affiliated with or endorsed by MITRE, CISA or FIRST. Data as of Nov 10, 2026, 20:02 UTC. [Sources and licenses](https://cubepath.com/security/cve/legal)