{"id":"CVE-2021-41282","url":"https://www.cyber-defence.io/tools/cve/CVE-2021-41282","generatedAt":"2026-11-05T00:35:56.728Z","title":"diag_routes.php in pfSense 2.5.2 allows sed data injection.","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.","published":"2022-03-01T23:15:08.000Z","lastModified":"2026-06-17T04:08:14.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.1","score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-74"],"affected":["pfsense/pfsense"],"epss":{"score":0.87113,"percentile":0.99749,"date":"2026-11-03","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 87.1%, higher than 100% of all known CVEs. Patch or mitigate before the next change window."},"changes":[],"references":[{"url":"http://packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Upload.html","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"cve@mitre.org"},{"url":"https://docs.netgate.com/pfsense/en/latest/releases/22-01_2-6-0.html","tags":["Release Notes","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://www.shielder.it/advisories/","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://www.shielder.it/advisories/pfsense-remote-command-execution/","tags":["Exploit","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"http://packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Upload.html","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://docs.netgate.com/pfsense/en/latest/releases/22-01_2-6-0.html","tags":["Release Notes","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.shielder.it/advisories/","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.shielder.it/advisories/pfsense-remote-command-execution/","tags":["Exploit","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-41282","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}