CVE-2021-41282

HIGH
Published Mar 1, 20224y ago · Modified Jun 17, 20262w ago
8.8 CVSS 3.1
High
Find Similar
Published Mar 1, 2022 4y ago
Last Modified Jun 17, 2026 2w ago

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.

CVSS Details

Base Score
8.8
Exploitability
2.8
Impact
5.9
Vector string
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality High
Integrity High
Availability High

Threat Intelligence

No active exploitation signals — not in CISA KEV and no EPSS score yet.

Exploit & Patch Status
Public Exploit Known
No Patch Available

Weaknesses 1

CWE-74

Affected Products 1

VendorProductVersionRange
pfsensepfsense2.5.2any

References 4

  • packetstormsecurity.com http://packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Upload.html
    ExploitThird Party AdvisoryVDB Entry
  • docs.netgate.com https://docs.netgate.com/pfsense/en/latest/releases/22-01_2-6-0.html
    Release NotesThird Party Advisory
  • shielder.it https://www.shielder.it/advisories/
    Third Party Advisory
  • shielder.it https://www.shielder.it/advisories/pfsense-remote-command-execution/
    ExploitThird Party Advisory

Remediation

No remediation data recorded yet

Check vendor advisories and the NVD entry for patch availability.