CVE-2021-41282
CVE-2021-41282 is a high-severity vulnerability in Pfsense with a CVSS 3.x base score of 8.8. Its EPSS exploit-prediction score of 87% places it in the 100th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-74.
Key facts
- Severity: High (CVSS 3.x base score 8.8)
- CVSS v2: 9.0
- EPSS exploit prediction: 87% (100th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-74
- Affected product: Pfsense
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2021-41282?
- CVE-2021-41282 has a CVSS 3.x base score of 8.8, rated high severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2021-41282 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 87% (100th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-41282?
- CVE-2021-41282 affects Pfsense. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-41282?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2021-41282 published?
- CVE-2021-41282 was published on 2022-03-01 and last updated on 2026-06-17.
References
- http://packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Upload.html
- https://docs.netgate.com/pfsense/en/latest/releases/22-01_2-6-0.html
- https://www.shielder.it/advisories/
- https://www.shielder.it/advisories/pfsense-remote-command-execution/
Affected products (1)
- cpe:2.3:a:pfsense:pfsense:2.5.2:*:*:*:*:*:*:*
More vulnerabilities in Pfsense
- CVE-2025-69691 — Critical (CVSS 9.9): Netgate pfSense CE 2.8.0 allows code execution in the XMLRPC API via pfsense.exec_php. NOTE: the Supplier disputes this…
- CVE-2023-29974 — Critical (CVSS 9.8): An issue discovered in Pfsense CE version 2.6.0 allows attackers to compromise user accounts via weak password…
- CVE-2023-27100 — Critical (CVSS 9.8): Improper restriction of excessive authentication attempts in the SSHGuard component of Netgate pfSense Plus software…
- CVE-2025-69690 — Critical (CVSS 9.1): Netgate pfSense CE 2.7.2 allows code execution by using the module installer with a backup file with a serialized PHP…
- CVE-2016-10709 — High (CVSS 8.8): pfSense before 2.3 allows remote authenticated users to execute arbitrary OS commands via a '|' character in the…
- CVE-2020-19678 — High (CVSS 7.5): Directory Traversal vulnerability found in Pfsense v.2.1.3 and Pfsense Suricata v.1.4.6 pkg v.1.0.1 allows a remote…
Other CWE-74 (Improper Neutralization of Special Elements (Injection)) vulnerabilities
- CVE-2026-25586 — Critical (CVSS 10.0): SandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, a sandbox escape is possible by shadowing hasOwnProperty…
- CVE-2026-25520 — Critical (CVSS 10.0): SandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, The return values of functions aren't wrapped.…
- CVE-2025-20265 — Critical (CVSS 10.0): A vulnerability in the RADIUS subsystem implementation of Cisco Secure Firewall Management Center (FMC) Software could…
- CVE-2025-20337 — Critical (CVSS 10.0): A vulnerability in a specific API of Cisco ISE and Cisco ISE-PIC could allow an unauthenticated, remote attacker to…
- CVE-2025-20281 — Critical (CVSS 10.0): A vulnerability in a specific API of Cisco ISE and Cisco ISE-PIC could allow an unauthenticated, remote attacker to…
- CVE-2024-42472 — Critical (CVSS 10.0): Flatpak is a Linux application sandboxing and distribution framework. Prior to versions 1.14.0 and 1.15.10, a malicious…
Browse all CWE-74 (Improper Neutralization of Special Elements (Injection)) vulnerabilities →