CVE-2021-41282 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Upload.html | CVE | ExploitThird Party AdvisoryVDB Entry |
| https://docs.netgate.com/pfsense/en/latest/releases/22-01_2-6-0.html | CVE | Release NotesThird Party Advisory |
| https://www.shielder.it/advisories/ | CVE | Third Party Advisory |
| https://www.shielder.it/advisories/pfsense-remote-command-execution/ | CVE | ExploitThird Party Advisory |
| http://packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Upload.html | [email protected] | ExploitThird Party AdvisoryVDB Entry |
| https://docs.netgate.com/pfsense/en/latest/releases/22-01_2-6-0.html | [email protected] | Release NotesThird Party Advisory |
| https://www.shielder.it/advisories/ | [email protected] | Third Party Advisory |
| https://www.shielder.it/advisories/pfsense-remote-command-execution/ | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pfsense pfsense | 2.5.2 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Jul 12, 2022 | CWE Remap | [email protected] |
| Mar 9, 2022 | Initial Analysis | [email protected] |
| Mar 4, 2022 | CVE Modified | [email protected] |