Skip to main content
← All vulnerabilities
CVE-2021-41282

diag_routes.php in pfSense 2.5.2 allows sed data injection.

Published
Last modified
published
Not listed in CISA KEV
1 Metasploit module, 1 Nuclei template

Summary

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.

Timeline

  1. CVE published
  2. Record last updated
  3. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a n/a

    Version range not reported

References 6

shielder.it

docs.netgate.com

packetstormsecurity.com

GitHub · rapid7/metasploit-framework

GitHub · projectdiscovery/nuclei-templates