IPFire
CVE-2025-34305
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to IPFire web UI
-
DeliverySubmit script payload in comment/remark field
-
ExploitPayload stored unsanitized via broken cleanhtml()
-
ExecutionAdmin views affected config page
-
ImpactScript executes in admin's session context
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 web-UI session (PR:L) with write access to at least one affected endpoint - specifically the comment/remark fields of /cgi-bin/wakeonlan.cgi (CLIENT_COMMENT), /cgi-bin/dhcp.cgi (ADVOPT_DATA, FIX_REMARK, FIX_FILENAME, FIX_ROOTPATH), /cgi-bin/connscheduler.cgi (ACTION_COMMENT), /cgi-bin/dnsforward.cgi (REMARK), /cgi-bin/vpnmain.cgi (REMARK), or /cgi-bin/dns.cgi (REMARK) - on IPFire prior to 2.29 Core Update 198. The payload only fires when a second user (typically an administrator) subsequently views the stored entry, so success depends on victim interaction (UI:P) and on that viewer having a more privileged session worth hijacking. Limiting factors: the attacker must already hold valid web-interface credentials, the flaw yields no direct access to the underlying firewall OS, and impact is scoped to the victim's browser session rather than the appliance itself. |
| Impact | This is a medium-severity (CVSS 4.0 base 5.1) set of stored XSS flaws that signals convincingly as a low-to-moderate real-world priority rather than an urgent one. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P) shows network reach but requires an authenticated session (PR:L) and victim interaction (UI:P, a user must view the poisoned entry), and impact is confined to the subsequent system (SC:L/SI:L) - i.e. the browser/session of another web-UI user - with no direct confidentiality/integrity/availability impact on the firewall itself (VC/VI/VA:N). EPSS is low at 0.48% (40th percentile), there is no CISA KEV listing, and no public exploit identified at time of analysis, all of which align: no signal points to active or imminent widespread exploitation. The signals are therefore consistent rather than conflicting - a genuine, well-documented code-level bug, but gated behind authentication and user interaction with only session-scoped impact. The practical concern is privilege escalation/lateral movement within the admin interface: a lower-privileged authenticated user poisoning a field that a higher-privileged admin later views. No SSVC decision record was provided in the input, so exploitation-automatability cannot be assessed from source; it is inferred as non-automatable given the UI:P requirement. |
| Exploit ScenarioDerived | A low-privileged but authenticated IPFire web-UI user submits a crafted script payload into a free-text field such as a Wake-on-LAN client comment, a DHCP fixed-lease remark, or a DNS forward remark. Because cleanhtml() computes the encoded value but never assigns it back, the raw payload is stored and later rendered unsanitized when an administrator opens the corresponding configuration page, executing the attacker's JavaScript in the admin's authenticated session. No public exploit code was identified, but the flaw is simple and reliably triggerable once an account is obtained. |
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 interface (versions prior to 2.29 Core Update 198) allows an authenticated user to inject script into comment and remark fields that then executes in another user's browser when the stored entry is viewed. The root cause is that cleanhtml() in /var/ipfire/header.pl calls escape() and HTML::Entities::encode_entities() but never assigns the sanitized result back, so the original unsanitized value is persisted and later rendered. No public exploit code or active exploitation has been identified at time of analysis, and EPSS is low (0.48%, 40th percentile); the independent assessment rates this medium severity (CVSS 3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N), with impact confined to the victim's browser session and the attacker requiring existing web-UI credentials (PR:L) plus victim interaction (UI:R).
RemediationAI
Upgrade to IPFire 2.29 Core Update 198 or later, which is the vendor-released patch that corrects the cleanhtml() assignment bug. Until the upgrade can be applied, restrict access to the web interface to trusted administrators and avoid granting accounts write access to the affected comment and remark fields (CLIENT_COMMENT in wakeonlan.cgi; ADVOPT_DATA, FIX_REMARK, FIX_FILENAME and FIX_ROOTPATH in dhcp.cgi; ACTION_COMMENT in connscheduler.cgi; REMARK in dnsforward.cgi, vpnmain.cgi and dns.cgi); this only reduces exposure and does not remove payloads already stored, so reviewing existing entries for injected script is advisable. Because exploitation requires an authenticated session and victim interaction, enforcing least privilege and good session hygiene on administrator accounts lowers risk. Vendor details are at https://www.ipfire.org/blog/ipfire-2-29-core-update-198-released, https://bugzilla.ipfire.org/show_bug.cgi?id=13880 and https://www.vulncheck.com/advisories/ipfire-stored-xss-via-multiple-methods-in-cleanhtml.
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
IPFire's administrative web interface is implemented as a set of Perl CGI scripts that share helper routines in /var/ipfire/header.pl, including cleanhtml(). That function is intended to sanitize user-supplied text by calling escape() and HTML::Entities::encode_entities(), but the code discards the returned encoded value instead of assigning it back to the output variable. As a result, the raw input is written to configuration and later emitted into HTML pages without entity encoding, which is the classic CWE-79 failure mode of improper neutralization during web page generation. Because cleanhtml() is used across multiple CGI endpoints, the same defect exposes several fields: CLIENT_COMMENT in wakeonlan.cgi, ADVOPT_DATA, FIX_REMARK, FIX_FILENAME and FIX_ROOTPATH in dhcp.cgi, ACTION_COMMENT in connscheduler.cgi, and REMARK in dnsforward.cgi, vpnmain.cgi and dns.cgi. This is stored rather than reflected XSS: the payload persists in the appliance's configuration and fires only when a second user, typically an administrator, views the affected entry. The independent CVSS 3.1 assessment (S:C, C:L/I:L/A:N) reflects that exploitation is scoped to the victim's browser session; the flaw does not by itself grant access to the underlying firewall operating system.
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 submitter (PR:L) and victim must view the entry (UI:R); stored XSS executes in another user's browser so scope changes (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 multiple stored cross-site scripting (XSS) vulnerabilities caused by a bug in the cleanhtml() function (/var/ipfire/header.pl) that fails to apply HTML-entity encoding to user input. When an authenticated user submits data to affected endpoints - for example, POST /cgi-bin/wakeonlan.cgi (CLIENT_COMMENT), /cgi-bin/dhcp.cgi (ADVOPT_DATA, FIX_REMARK, FIX_FILENAME, FIX_ROOTPATH), /cgi-bin/connscheduler.cgi (ACTION_COMMENT), /cgi-bin/dnsforward.cgi (REMARK), /cgi-bin/vpnmain.cgi (REMARK), or /cgi-bin/dns.cgi (REMARK) - the application calls escape() and HTML::Entities::encode_entities() but never assigns the sanitized result back to the output variable. The original unsanitized value is therefore 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 entries.
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