CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2021 · Pfsense

CVE-2021-41282
Pfsense vulnerability

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

Pfsense. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Pfsense runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Set the orderSystems that can be reached from the internet come first, then the rest.

References

More vulnerabilities in Pfsense products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.