CVE-2021-41282
highpriority · attend · 75EPSS 0.871 · 100 %ileexploit · weaponizedEUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
- exploit/unix/http/pfsense_diag_routes_webshellpfSense Diag Routes Web Shell Uploadweaponized · metasploit
affected products (2)
Products and version ranges known to be affected.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (15)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2021-41282/cnnvd
- https://cxsecurity.com/issue/WLB-2022030023cnnvd
- https://docs.netgate.com/pfsense/en/latest/releases/22-01_2-6-0.htmlcnnvd
- https://packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Upload.htmlcnnvd
- https://vigilance.fr/vulnerability/pfSense-code-execution-via-diag-routes-php-37559cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2022022310cnnvd
- https://www.shielder.it/advisories/pfsense-remote-command-execution/cnnvd
- http://packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Upload.htmlenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan