← Vulnerability feed

Vulnerability record · CVE-2018-4020 · published 3 December 2018

CVE-2018-4020: pfSense CE admin interface command injection via powerd_ac_mode parameter

Netgate · Pfsense

Netgate pfSense CE 2.4.4-RELEASE fails to sanitize the powerd_ac_mode POST parameter, allowing OS command injection. An attacker who can send authenticated POST requests to the administration web interface can run arbitrary commands on the firewall. Because pfSense is typically a perimeter device, successful exploitation can compromise network security controls.

7.2 CVSS 3.1 High EPSS 49% · top 1.2% CWE-78 · OS command injection
7.2CVSS 3.1 base score, v2 6.5
49%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

An exploitable command injection vulnerability exists in the way Netgate pfSense CE 2.4.4-RELEASE processes the parameters of a specific POST request. The attacker can exploit this and gain the ability to execute arbitrary commands on the system. An attacker needs to be able to send authenticated POST requests to the administration web interface. Command injection is possible in the `powerd_ac_mode` POST parameter parameter.

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: high.

high priorityAuthenticated remote command execution on a perimeter firewall with a high EPSS score and public exploit detail, though exploitation requires valid admin credentials.

What it is

Netgate pfSense CE 2.4.4-RELEASE fails to sanitize the powerd_ac_mode POST parameter, allowing OS command injection. An attacker who can send authenticated POST requests to the administration web interface can run arbitrary commands on the firewall. Because pfSense is typically a perimeter device, successful exploitation can compromise network security controls.

Impact

An attacker with admin web credentials gains arbitrary command execution as the web interface user, enabling full control of the firewall host, data theft, and use as a pivot into protected networks.

Attack surface

Reachable over the network through the pfSense administration web interface via a crafted POST request; the CVSS vector (AV:N/PR:H/UI:N) indicates valid administrative authentication is required and no user interaction is needed.

Exploitation

Not listed in CISA KEV, but EPSS is high (0.487 probability, 98.8th percentile) and the only references are Talos advisories tagged Exploit, indicating public exploit detail exists. No ransomware group use is documented.

What to do

  • Upgrade pfSense CE to a release later than 2.4.4-RELEASE that fixes the powerd_ac_mode command injection.
  • Restrict access to the administration web interface to trusted management networks or VPN, never expose it to the internet.
  • Enforce strong unique admin credentials and multi-factor authentication where supported to limit abuse of authenticated attack paths.
  • Audit and remove unnecessary admin accounts and review web interface access logs for anomalous POST requests.
  • Monitor vendor advisories for pfSense updates and apply them promptly.

Detection

  • Search web server or pfSense logs for POST requests containing powerd_ac_mode with shell metacharacters or unexpected values.
  • Alert on child processes spawned by the web interface (e.g., shell, sh, or powerd-related commands) with unusual arguments.
  • Monitor for outbound connections or new processes on the firewall host that do not match normal administrative activity.
  • Correlate admin login events with subsequent command execution or configuration changes on the device.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2018-4020 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2019-16915Netgate pfsense path traversal vulnerabilityAn issue was discovered in pfSense through 2.4.4-p3. widgets/widgets/picture.widget.php uses the widgetkey parameter directly without sanitization (e…EPSS 3.7%9.8CVE-2019-12585Apcupsd os command injection vulnerabilityApcupsd 0.3.91_5, as used in pfSense through 2.4.4-RELEASE-p3 and other products, has an Arbitrary Command Execution issue in apcupsd_status.php.EPSS 5.0%9.6CVE-2020-21487Netgate pfsense cross-site scripting vulnerabilityCross Site Scripting vulnerability found in Netgate pfSense 2.4.4 and ACME package v.0.6.3 allows attackers to execute arbitrary code via the RootFol…EPSS 0.67%8.8CVE-2023-48123pfSense web GUI packet_capture.php remote code executionpfSense Plus 23.05.1 and earlier and pfSense CE 2.7.0 allow a remote attacker to execute arbitrary code through a crafted request to packet_capture.p…EPSS 68%analysed8.8CVE-2023-42326pfSense WebGUI GIF/GRE Interface Command InjectionNetgate pfSense 2.7.0 contains a command injection flaw in the interfaces_gif_edit.php and interfaces_gre_edit.php WebGUI components. A remote attack…EPSS 64%analysed8.8CVE-2023-27253pfSense restore_rrddata() command injection via crafted XML configNetgate pfSense 2.7.0 contains a command injection flaw in the restore_rrddata() function. An authenticated attacker can supply a crafted XML file to…EPSS 90%analysed8.8CVE-2022-24299Netgate pfsense improper input validation vulnerabilityImproper input validation vulnerability in pfSense CE and pfSense Plus (pfSense CE software versions prior to 2.6.0 and pfSense Plus software version…EPSS 1.9%8.8CVE-2022-26019Netgate pfsense path traversal vulnerabilityImproper access control vulnerability in pfSense CE and pfSense Plus (pfSense CE software versions prior to 2.6.0 and pfSense Plus software versions …EPSS 4.5%

Source: NIST National Vulnerability Database (record CVE-2018-4020), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.