diag_routes.php in pfSense 2.5.2 allows sed data injection.
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2021-41282
- 2026-10-03 Alias added: GHSA-px3p-5c29-4jxr
References
More Pfsense vulnerabilities
- TI-2023-11923 Improper restriction of excessive authentication attempts in the SSHGuard component of… CVSS 3.1CRITICAL 9.8
- TI-2025-42916 Netgate pfSense CE 2.8.0 allows code execution in the XMLRPC API via pfsense.exec_php. CVSS 3.1CRITICAL 9.9
- TI-2025-42915 Netgate pfSense CE 2.7.2 allows code execution by using the module installer with a… CVSS 3.1CRITICAL 9.1
- TI-2026-74961 OS command injection in Netgate pfSense CE traffic shaper limiters CVSS 4.0HIGH 8.6
- TI-2026-74960 OS command injection in Netgate pfSense CE via CARP VHID CVSS 4.0HIGH 8.6
- TI-2026-74959 OS command injection in Netgate pfSense CE via gateway Monitor IP CVSS 4.0HIGH 8.6
Sources
- CVE-2021-41282 · CVE Program
- CVE-2021-41282 · NVD
- FIRST EPSS
- GHSA-px3p-5c29-4jxr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences