What’s Vulnerable › Vulnerabilities
CVE-2021-41282
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 87.1% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-03-01 · updated 2026-06-17
- Weakness: CWE-74
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.
Affected products
- Netgate pfSense CE: 2.5.2
References
- http://packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Upload.html
- https://docs.netgate.com/pfsense/en/latest/releases/22-01_2-6-0.html
- https://www.shielder.it/advisories/
- https://www.shielder.it/advisories/pfsense-remote-command-execution/
- http://packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Upload.html
- https://docs.netgate.com/pfsense/en/latest/releases/22-01_2-6-0.html
- https://www.shielder.it/advisories/
- https://www.shielder.it/advisories/pfsense-remote-command-execution/
Get alerted when CVE-2021-41282 or the next vulnerability affects your stack