CVE-2021-41282: pfSense: diag_routes.php in pfSense 2.5.2 allows sed data injection
This pfSense advisory covers CVE-2021-41282. Related products: pfSense.
- CVE-2021-41282
Key facts
- Vendor rating
- High, CVSS 8.8
- EPSS
- 87.1% chance of exploitation in the next 30 days (99th percentile). FIRST EPSS, .
- CISA KEV
- Not listed (catalogue checked )
- Source published
- Source revised
- Listed by VulniPulse
- Record changed
Compiled by VulniPulse from the linked sources. How records are collected and checked.
Related products & platforms
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.
Text from the source record.
CVE-2021-41282 questions
Is CVE-2021-41282 being exploited?
CISA does not list it in its Known Exploited Vulnerabilities catalog (checked ), and the pfSense advisory does not report exploitation. That is not proof it is unexploited.
How likely is CVE-2021-41282 to be exploited?
FIRST's EPSS model gives it a 87.1% chance of exploitation in the next 30 days (99th percentile among scored CVEs, model date ). It is a forecast, not a report of attacks.
How serious is CVE-2021-41282?
pfSense rates it high, CVSS 8.8 out of 10.
More Netgate pfSense advisories
CVE-2026-92182Nov 17, 2026Netgate pfSense CE XMLRPC Incorrect Authorization Remote Code Execution VulnerabilityCVE-2026-113779Oct 21, 2026The pfSense REST API package is an unofficial, open-source REST and GraphQL APICVE-2023-48123Dec 6, 2023issue in Netgate pfSense Plus v.23.05.1CVE-2023-27253Mar 17, 2023command injection vulnerability in the function restore_rrddata of Netgate pfSense v2.7.0CVE-2021-20729Mar 31, 2022Cross-site scripting vulnerability in pfSense CE and pfSense PlusCVE-2019-12584Jun 3, 2019Apcupsd 0.3.91_5, as used in pfSense through 2.4.4-RELEASE-p3 and other products
Netgate pfSense advisories, March 2022All Netgate pfSense advisories
Get an email when pfSense publishes the next one.
See pfSense's last 90 days first. Live alerts for one product are free for life; every vendor is US$5 a month with Pro (first month US$1).