Description
pfSense pfBlockerNG through 2.1.4_26 allows remote attackers to execute arbitrary OS commands as root via shell metacharacters in the HTTP Host header. NOTE: 3.x is unaffected.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
pfSense plugin pfBlockerNG unauthenticated RCE as root
exploit/unix/http/pfsense_pfblockerng_webshell
Exploit-DB 1
- pfBlockerNG 2.1.4_26 - Remote Code Execution (RCE) EDB-51032 · webapps · Feb 20, 2023
GitHub 9 repositories
-
Laburity/CVE-2022-31814 ★ 23 · Jul 23, 2024
Updated Exploit - pfBlockerNG <= 2.1.4_26 Unauth RCE (CVE-2022-31814)
-
EvergreenCartoons/SenselessViolence ★ 4 · Sep 18, 2022
CVE-2022-31814 Exploitation Toolkit.
-
Chocapikk/CVE-2022-31814 ★ 3 · Mar 26, 2023
pfBlockerNG <= 2.1.4_26 Unauth RCE (CVE-2022-31814)
-
drcayber/RCE ★ 2 · Mar 5, 2023
CVE-2022-31814
-
sh4den/CVE-2022-31814 ★ 1 · Jan 16, 2025
Proof of concept for CVE-2022-31814
-
dkstar11q/CVE-2022-31814 ★ 1 · Mar 26, 2023
pfBlockerNG <= 2.1.4_26 Unauth RCE (CVE-2022-31814)
-
TheUnknownSoul/CVE-2022-31814 ★ 1 · Mar 1, 2023
-
ArunHAtter/CVE-2022-31814 ★ 0 · Aug 12, 2024
This script is a proof-of-concept exploit for pfBlockerNG <= 2.1.4_26 that allows for remote code execution. It takes a single target URL or a list of URLs, tries to upload a shell using multiple pay…
-
Madliife0/CVE-2022-31814 ★ 0 · Feb 22, 2023
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- pfSense pfBlockerNG <=2.1..4_26 - OS Command Injection http/cves/2022/CVE-2022-31814.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
References
- https://docs.netgate.com/pfsense/en/latest/packages/pfblocker.html
- https://www.ihteam.net/advisory/pfblockerng-unauth-rce-vulnerability/
- http://packetstormsecurity.com/files/168743/pfSense-pfBlockerNG-2.1.4_26-Shell-Upload.html
- http://packetstormsecurity.com/files/171123/pfBlockerNG-2.1.4_26-Remote-Code-Execution.html
- https://github.com/pfsense/FreeBSD-ports/pull/1169
- https://github.com/pfsense/FreeBSD-ports/pull/1169/commits/071bdcf2d918c3e51cde11cf81fbd9b6f0379d7e