CVE-2021-41282: pfsense Injection
Vulnerability summary
CVE-2021-41282 is a high (CVSS 9.0) Injection vulnerability in pfsense. EPSS estimates a 87.11% chance of exploitation in the next 30 days, higher than 99.7% of scored vulnerabilities. 3 public exploits are recorded.
Timeline
- 01-03-2022PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 1 source · 2 versionsEPSS trend
Probability
87.11%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
0.00 pp
From 87.11% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
3 foundExploit Reference (shielder.it)
Maturity: unknown
Exploit Reference (packetstormsecurity.com)
Maturity: unknown
pfSense Diag Routes Web Shell Upload
exploit/unix/http/pfsense_diag_routes_webshell
Maturity: weaponized
Weaknesses
CWE · root causeAffected systems
Pfsense1 product
- pfsense2.5.2
1 vendor · 1 product
References
4 links- www.shielder.it/advisories/pfsense-remote-command-execution/X Refsource MISCExploitThird Party Advisory
- docs.netgate.com/pfsense/en/latest/releases/22-01_2-6-0.htmlX Refsource MISCRelease NotesThird Party Advisory
- packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Upload.htmlX Refsource MISCExploitThird Party AdvisoryVDB Entry