CVE-2021-41282

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:pfsense:pfsense:2.5.2:*:*:*:*:*:*:*

History

12 Jul 2022, 17:42

Type Values Removed Values Added
CWE CWE-94 CWE-74

09 Mar 2022, 15:16

Type Values Removed Values Added
CPE cpe:2.3:a:pfsense:pfsense:2.5.2:*:*:*:*:*:*:*
CWE CWE-94
CVSS v2 : unknown
v3 : unknown
v2 : 9.0
v3 : 8.8
References (MISC) https://www.shielder.it/advisories/pfsense-remote-command-execution/ - (MISC) https://www.shielder.it/advisories/pfsense-remote-command-execution/ - Exploit, Third Party Advisory
References (MISC) https://www.shielder.it/advisories/ - (MISC) https://www.shielder.it/advisories/ - Third Party Advisory
References (MISC) https://docs.netgate.com/pfsense/en/latest/releases/22-01_2-6-0.html - (MISC) https://docs.netgate.com/pfsense/en/latest/releases/22-01_2-6-0.html - Release Notes, Third Party Advisory
References (MISC) http://packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Upload.html - (MISC) http://packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Upload.html - Exploit, Third Party Advisory, VDB Entry

04 Mar 2022, 19:15

Type Values Removed Values Added
References
  • (MISC) http://packetstormsecurity.com/files/166208/pfSense-2.5.2-Shell-Upload.html -

01 Mar 2022, 23:15

Type Values Removed Values Added
New CVE

Information

Published : 2022-03-01 23:15

Updated : 2024-02-04 22:29


NVD link : CVE-2021-41282

Mitre link : CVE-2021-41282

CVE.ORG link : CVE-2021-41282


JSON object : View

Products Affected

pfsense

  • pfsense
CWE
CWE-74

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')