CVE-2021-41282Pfsense
High 8.8 High EPSS
Follow: this CVE · Pfsense · Pfsense We alert you by email or Slack (account required).
- Priority
- 62
- CVSS 3.1
- 8.8
- EPSS
- 87.1% probability of exploitation in 30 days · percentile 100
- Auth required
- Yes
- Published
- Mar 1, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-74
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Pfsense.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pfsense | pfsense | 2.5.2 |
Official sources
References
Links published by the sources. Open them with care.
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- docs.netgate.com Release Notes Third Party Advisory
- www.shielder.it Third Party Advisory
- www.shielder.it Exploit Third Party Advisory