CVE-2021-41282
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
- Pfsense
- Pfsense
- = 2.5.2
- Fix
- Available
- CVSS 2.0
- 9.0 HIGH
- CVSS 3.1
- 8.8 HIGH
- EPSS
- 87.1% (100th percentile)
- Weakness
- CWE-74
- NVD status
- Modified
- Published
- 2022-03-01
CVE-2021-41282 at NVD
3 known exploits for CVE-2021-41282
Proof-of-concept code and exploit modules indexed by Sploitus