CVE-2021-41282Pfsense Vulnerability
diag_routes.php in pfSense 2.5.2 allows sed data injection.
Published Mar 1, 2022 · Updated Oct 24, 2026
Key Facts
Patch immediately- CVE-2021-41282 is a high-severity vulnerability (CVSS 8.8 v3.1) affecting Pfsense.
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 87% probability of exploitation in the next 30 days.
- No fixed version is listed yet; check the vendor advisory for mitigations.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
87%
Higher than 99.7% of all scored CVEs
Exploit maturity
Weaponized
ATLAS score
67/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Weaponized
Public exploit code
2
Proof-of-concept links
In-the-wild evidence
1
Reports of active use
Advisories And Exploit References
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
1 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| PfsensePfsense | 2.5.2 | n/a |
Timeline
Publicly disclosed
Mar 1, 2022
Last updated
Oct 24, 2026
Weakness Type
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
References
- advisorydocs.netgate.com · 22-01_2-6-0.html
- advisoryshielder.it · advisories
- exploitpacketstormsecurity.com · pfSense-2.5.2-Shell-Upload.html
- exploitMSF pfsense_diag_routes_webshell.rb
- exploitshielder.it · pfsense-remote-command-execution
FAQ
Common Questions.
diag_routes.php in pfSense 2.5.2 allows sed data injection.
Affected: Pfsense versions 2.5.2. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
No fixed version is listed yet; check the vendor advisory for mitigations.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2021-41282 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo