IPFire
CVE-2025-34307
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to IPFire web UI
-
DeliveryInject JavaScript via pienumber parameter
-
ExploitPayload stored in country search defaults
-
ExecutionScript executes when operator views settings
-
ImpactHijack session / act as victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires (1) an authenticated session on the IPFire web administration interface (PR:L), and (2) the ability to submit the HTTP POST to /cgi-bin/logs.cgi/firewalllogcountry.dat that sets the firewall country search default via the pienumber parameter. Execution of the injected script is not automatic: a second user must subsequently view the firewall country search settings page where the stored value is rendered without sanitization/encoding (UI:P / passive interaction). Limiting factors: the web interface is an administrative console normally restricted to trusted operators and not exposed to anonymous internet users, so a valid low-privilege account is a hard prerequisite, and impact is confined to the browser context of users who open the affected settings view. |
| Impact | This is a genuinely moderate, not high-priority, issue and the signals are consistent rather than conflicting. The CVSS 4.0 vector (AV:N/AC:L/PR:L/UI:P) confirms it is a network-reachable but authenticated flaw requiring passive victim interaction, with no confidentiality/integrity/availability impact on the vulnerable system itself (VC:N/VI:N/VA:N) and only limited subsequent-system impact (SC:L/SI:L) - the base score of 5.1 (Medium) accurately reflects a stored XSS confined to the web UI. EPSS reinforces low urgency at 0.48% (40th percentile), indicating no meaningful exploitation pressure. The CVE is NOT in CISA KEV and no public exploit code is referenced, so exploitation status is 'no public exploit identified at time of analysis.' The main gating factor is PR:L: an attacker must already hold an authenticated session on the IPFire web interface, which is an administrative appliance normally exposed only to trusted operators - this substantially limits the realistic attacker population. No key data is missing or contradictory here; CVSS, EPSS, and the absence of KEV/POC all point to a low-to-moderate real-world risk best handled on a normal patch cycle rather than as an emergency. |
| Exploit ScenarioDerived | An attacker with valid but low-privileged access to the IPFire web interface submits a POST to /cgi-bin/logs.cgi/firewalllogcountry.dat with a malicious pienumber value containing JavaScript. The payload is stored and later executes in the browser of any other operator - potentially a higher-privileged administrator - who opens the firewall country search settings, enabling session hijacking or actions in that user's context. No public proof-of-concept is referenced, and exploitation requires the victim to view the affected settings page (UI:P). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 19, 2026
Stored cross-site scripting in IPFire's firewall country search settings lets an authenticated user with access to the web administration interface inject JavaScript through the pienumber parameter, which is persisted and later rendered to other users viewing those settings. The flaw affects IPFire releases prior to 2.29 Core Update 198 and requires a valid web-admin session plus a victim opening the affected page; EPSS is 0.48% (40th percentile), with no CISA KEV entry and no public exploit identified at time of analysis. Assessed severity is moderate (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).
RemediationAI
Upgrade to IPFire 2.29 Core Update 198 or later; vendor-released patch: 2.29 Core Update 198. Until upgraded, restrict the web administration interface to trusted management networks or VPN access and avoid exposing it to untrusted users, which reduces both the authenticated POST prerequisite and victim exposure but does not remove stored payloads already saved. After upgrading, review and clear any stored firewall country search defaults tied to pienumber to remove persisted script, and restrict access to /cgi-bin/logs.cgi/firewalllogcountry.dat and the country search settings page to trusted administrators; restricting those endpoints may interfere with legitimate firewall log filtering. Refer to https://www.ipfire.org/blog/ipfire-2-29-core-update-198-released and https://bugzilla.ipfire.org/show_bug.cgi?id=13882 for vendor details.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The issue is CWE-79 (improper neutralization of input during web page generation) in IPFire's CGI-backed web administration interface. When an authenticated user updates the firewall country search defaults, the application sends an HTTP POST to /cgi-bin/logs.cgi/firewalllogcountry.dat with the display count supplied in the pienumber parameter; that value is stored and later included in the firewall country search settings page without proper sanitization or output encoding. CPE records map affected builds to IPFire 2.29 Core Updates 183 through 191 and earlier unversioned installs, all before Core Update 198. Exploitation is constrained because the interface is an administrative console normally restricted to trusted operators, a low-privilege authenticated session is required, and a second user must view the poisoned settings view for script execution.
Know when Ipfire gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Authenticated web access gives PR:L; stored payload needs a victim to view the page (UI:R); script executing in another user's browser crosses a trust boundary (S:C) with limited C/I and no availability impact.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
IPFire versions prior to 2.29 (Core Update 198) contain a stored cross-site scripting (XSS) vulnerability that allows an authenticated attacker to inject arbitrary JavaScript code through the pienumber parameter when updating the firewall country search defaults. When a user updates the default values for the firewall country search, the application issues an HTTP POST request to /cgi-bin/logs.cgi/firewalllogcountry.dat and the default number of countries to display is provided in the pienumber parameter. The value of this parameter is stored and later rendered in the web interface without proper sanitation or encoding, allowing injected scripts to execute in the context of other users who view the affected firewall country search settings.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Affected Products (CPE)CVE.org
IPFire 2.19 has a Remote Command Injection vulnerability in ids.cgi via the OINKCODE parameter, which is mishandled by a
lfs/backup in IPFire 2.25-core155 does not ensure that /var/ipfire/backup/bin/backup.pl is owned by the root account. Ra
An authenticated command injection vulnerability exists in IPFire Firewall before 2.21 Core Update 124 in backup.cgi. Ra
IPFire 2.21 Core Update 127 contains multiple stored cross-site scripting vulnerabilities in the extrahd.cgi script that
IPFire 2.21 Core Update 127 contains multiple cross-site scripting vulnerabilities in the ovpnmain.cgi script that allow
IPFire 2.21 Core Update 127 contains multiple reflected cross-site scripting vulnerabilities in the hosts.cgi script tha
IPFire 2.21 Core Update 127 contains a reflected cross-site scripting vulnerability in the updatexlrator.cgi script that
IPFire 2.21 Core Update 127 contains multiple reflected cross-site scripting vulnerabilities in the fwhosts.cgi script t
Command injection in the IPFire URL filter allows an authenticated administrator to execute arbitrary shell commands as
Authenticated command injection in the IPFire firewall distribution prior to 2.29 (Core Update 198) lets a low-privilege
Authenticated SQL injection in IPFire's OpenVPN connection-log viewer allows a management-UI user to alter the SQL query
Stored cross-site scripting in IPFire before 2.29 (Core Update 198) allows an authenticated Dynamic DNS administrator to
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB