Vulnerability · Published Mar 1, 2022 · Assigned by mitre
CVE-2021-41282
High 8.8
In plain English
A high-severity security flaw in the affected software. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 87.1% (higher than 99.8% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, Nuclei.
Official 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 (as reported)
References
- https://www.shielder.it/advisories/ x_refsource_MISC
- https://www.shielder.it/advisories/pfsense-remote-command-execution/ x_refsource_MISC
- https://docs.netgate.com/pfsense/en/latest/releases/22-01_2-6-0.html x_refsource_MISC
- http://packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Upload.html x_refsource_MISC