Skip to content
Emerging threatsHigh

CVE-2021-41282Pfsense Vulnerability

diag_routes.php in pfSense 2.5.2 allows sed data injection.

Published Mar 1, 2022 · Updated Oct 24, 2026

Key Facts

Patch immediately
  • CVE-2021-41282 is a high-severity vulnerability (CVSS 8.8 v3.1) affecting Pfsense.
  • It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
  • EPSS estimates a 87% probability of exploitation in the next 30 days.
  • No fixed version is listed yet; check the vendor advisory for mitigations.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

Scores

CVSS v3.1

8.8

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

87%

Higher than 99.7% of all scored CVEs

Exploit maturity

Weaponized

ATLAS score

67/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Weaponized

Public exploit code

2

Proof-of-concept links

In-the-wild evidence

1

Reports of active use

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.

Affected Products

1 affected entries in total
ProductAffected versionsFixed in
PfsensePfsense2.5.2n/a

Timeline

  1. Publicly disclosed

    Mar 1, 2022

  2. Last updated

    Oct 24, 2026

Weakness Type

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component

FAQ

Common Questions.

Is CVE-2021-41282 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Dec 4, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.