9

CVE-2021-41282: pfsense Injection

CVSS: 9.0v2.0HighModified
Published 01-03-2022Last modified 04-08-2024

Vulnerability summary

CVE-2021-41282 is a high (CVSS 9.0) Injection vulnerability in pfsense. EPSS estimates a 87.11% chance of exploitation in the next 30 days, higher than 99.7% of scored vulnerabilities. 3 public exploits are recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.0/10
010
High · v2.0 (NVD)
EPSS score
87.11%
0%100%
Critical · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits3reference, metasploit

Timeline

  1. 01-03-2022
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last modifiedVulnerability information updated.

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 metrics

2 scores · 1 source · 2 versions

EPSS trend

Probability

87.11%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

0.00 pp

From 87.11% on 20-09-2026

20-09-202620-10-2026
EPSS score
87.11%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

3 found
  • referenceUnverified

    Exploit Reference (shielder.it)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (packetstormsecurity.com)

    Maturity: unknown

  • MetasploitMetasploitremoteVerified

    pfSense Diag Routes Web Shell Upload

    exploit/unix/http/pfsense_diag_routes_webshell

    Maturity: weaponized

Weaknesses

CWE · root cause

Affected systems

Pfsense1 product

1 vendor · 1 product

References

4 links