← Vulnerability feed

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

CVE-2018-4021: pfSense CE admin interface command injection via powerd_battery_mode

Netgate · Pfsense

Netgate pfSense CE 2.4.4-RELEASE fails to sanitize the powerd_battery_mode POST parameter, allowing OS command injection. An authenticated administrator can execute arbitrary commands on the firewall, which is a high-value network device.

7.2 CVSS 3.1 High EPSS 72% · top 0.6% CWE-78 · OS command injection
7.2CVSS 3.1 base score, v2 6.5
72%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_battery_mode` POST 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 18 September 2026. Confidence: high.

high priorityRequires admin credentials but yields full command execution on a perimeter firewall, and public exploit material plus very high EPSS raise the risk.

What it is

Netgate pfSense CE 2.4.4-RELEASE fails to sanitize the powerd_battery_mode POST parameter, allowing OS command injection. An authenticated administrator can execute arbitrary commands on the firewall, which is a high-value network device.

Impact

An attacker with admin access gains arbitrary command execution on the pfSense system, enabling full compromise of the firewall and any traffic or credentials it handles.

Attack surface

Reached over the network through the administration web interface via a crafted POST request; the attacker must already hold valid admin credentials, and no user interaction is required.

Exploitation

Not listed in CISA KEV, but EPSS is very high (0.7221, 99.4th percentile) and the Talos reference is tagged Exploit, indicating public exploit material exists.

What to do

  • Upgrade pfSense CE to a release later than 2.4.4-RELEASE that fixes the powerd_battery_mode command injection.
  • Restrict access to the admin web interface to trusted management networks and disable WAN-side administration.
  • Enforce strong unique admin credentials and MFA where supported to limit credential-based reach.
  • Audit admin accounts and rotate credentials if compromise is suspected.

Detection

  • Review web server and system logs for POST requests containing powerd_battery_mode with shell metacharacters.
  • Alert on unexpected child processes spawned by the web GUI or PHP-FPM on the firewall.
  • Monitor for outbound connections or new files/accounts on pfSense hosts that deviate from baseline.

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-4021 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-4021), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.