IPFire
CVE-2025-34301
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to IPFire web UI
-
DeliveryPOST savelocationgrp with payload in COUNTRY_CODE
-
ExploitStore unsanitized script in location group
-
ExecutionVictim admin views group page
-
PersistScript executes in victim browser session
-
ImpactHijack session or perform admin actions
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 an authenticated session on the IPFire web management interface with the ability to create a location group - specifically submitting the HTTP POST with ACTION=savelocationgrp and a crafted COUNTRY_CODE value, which is stored and later rendered as a flag without encoding. Payload execution is NOT self-contained: it requires a second user (e.g., another administrator) to subsequently view the page displaying the malicious location group (UI:P / stored-XSS trigger). Limiting factors that reduce realistic risk: (1) attacker must already hold valid authenticated access to the firewall admin UI (PR:L), a normally privileged boundary; (2) impact depends on a victim viewing the affected page; (3) no impact to the IPFire host itself - only the victim's browser context within the web application. Affected: IPFire versions prior to 2.29 Core Update 198; fixed in Core Update 198. |
| Impact | This is a moderate-severity stored XSS (CVSS 4.0 base 5.1, CWE-79) whose real-world priority is bounded by its prerequisites rather than inflated by them. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P) confirms network-reachable but AUTHENTICATED exploitation (PR:L) that additionally requires a victim to passively view the affected page (UI:P), and impact is limited to the subsequent system (victim's browser session): SC:L/SI:L with no confidentiality/integrity/availability impact to the IPFire host itself (VC:N/VI:N/VA:N). Signals partly conflict: EPSS is 5.32% yet sits in the 93rd percentile, which sounds alarming but reflects how low absolute EPSS values are across the corpus - this is NOT evidence of imminent mass exploitation, and the high percentile should not be read as high probability. There is no CISA KEV listing and no public exploit identified at time of analysis. Net: a genuine but second-tier issue - it requires an already-authenticated attacker on the firewall's admin interface, which is normally a trusted/privileged boundary, so the practical risk is privilege escalation or cross-admin session abuse within an already-compromised or multi-admin trust context, not opportunistic internet-wide exploitation. Treat as routine-patch priority unless the IPFire web UI is exposed to semi-trusted or numerous operators. |
| Exploit ScenarioDerived | An authenticated IPFire web-interface user with access to create location groups submits a POST request (ACTION=savelocationgrp) containing malicious JavaScript in the COUNTRY_CODE parameter, which is stored without sanitization. When another administrator later opens the page that renders the group's flag, the script executes in their browser session, enabling session/CSRF-token theft or actions in the victim admin's context. No public exploit code was identified at time of analysis, though the attack is straightforward given the documented parameter and action. |
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 web management interface (versions prior to 2.29 Core Update 198) lets an authenticated user with permission to create location groups inject JavaScript via the COUNTRY_CODE field, which executes in another user's browser when the malicious location group is displayed. Exploitation requires a valid admin session and a victim who views the affected page; no public exploit code or confirmed active exploitation was identified at time of analysis, although EPSS is 5.32% (93rd percentile). The issue is fixed in IPFire 2.29 Core Update 198.
RemediationAI
Upgrade IPFire to 2.29 Core Update 198 or later; the vendor release announcement is at https://www.ipfire.org/blog/ipfire-2-29-core-update-198-released and the bug tracker entry is https://bugzilla.ipfire.org/show_bug.cgi?id=13876. Until the upgrade can be applied, restrict access to the IPFire web management interface to trusted management networks and limit accounts that can create or edit location groups; this reduces exposure but does not remove stored payloads, so any suspicious existing location groups should be reviewed and deleted. Administrators should also avoid viewing untrusted location-group content in a privileged browser session, recognizing that this is a compensatory control rather than a fix.
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 flaw is a CWE-79 stored cross-site scripting issue in IPFire's web-based firewall management interface. When an administrator creates a location group, the application sends an HTTP POST with ACTION=savelocationgrp, and the COUNTRY_CODE parameter is used to select and render a country flag. IPFire stores that value and later renders it in the web interface without proper output encoding or sanitization, so a crafted COUNTRY_CODE payload is persisted and executed in the browser of any user who views the location group. The provided CPE data lists IPFire as affected generally (cpe:2.3:a:ipfire:ipfire:*:*:*:*:*:*:*:*) and enumerates IPFire 2.29 Core Updates 183 through 191; the independent assessment identifies versions prior to 2.29 Core Update 198 as affected. The impact is confined to the victim's browser session within the IPFire web application and does not by itself compromise the IPFire host; CVSS 4.0 base score is 5.1, and the assessed CVSS 3.1 vector is AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, reflecting the authenticated prerequisite and required user interaction.
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 UI access needed (PR:L); stored payload requires a victim to view the page (UI:R); script runs in victim browser crossing to a different security scope (S:C) with limited C/I impact 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 into the COUNTRY_CODE parameter when creating a location group. When a user adds a new location group, the application issues an HTTP POST request with the ACTION parameter set to savelocationgrp, and the value of the COUNTRY_CODE parameter determines the flag displayed for that group. The value of this parameter is stored and later rendered in the web interface without proper sanitization or encoding, allowing malicious scripts to be executed in the context of other users viewing the affected page.
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