IPFire
CVE-2025-34316
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to IPFire web UI
-
DeliveryPOST XSS payload to /cgi-bin/mail.cgi mail fields
-
ExploitPayload stored in mail config
-
ExecutionSecond admin views mail settings
-
ImpactScript executes in their session
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 | Requires an authenticated session on the IPFire web management interface (PR:L) with access to the mail-server settings form, plus a second privileged user subsequently viewing the affected mail configuration page (UI:P) for the stored script to fire. Payload is delivered via the txt_mailuser/txt_mailpass parameters of the POST to /cgi-bin/mail.cgi. Limiting factors: no unauthenticated path, impact confined to the victim's browser context (no direct server compromise), and affects only IPFire versions before 2.29 Core Update 198. |
| Impact | This is a genuinely low-priority issue despite the network attack vector. The CVSS 4.0 base score of 5.1 (vendor/VulnCheck-assigned) accurately reflects a stored XSS with no vulnerable-system impact (VC:N/VI:N/VA:N) and only limited subsequent-system impact (SC:L/SI:L) in the victim's browser session. Exploitation requires prior authentication (PR:L) to the IPFire web interface AND passive user interaction (UI:P) - an admin or operator must subsequently view the poisoned mail-configuration page. EPSS is low at 0.45% (37th percentile), there is no CISA KEV listing, and no public exploit code is identified in the provided data (the VulnCheck reference is a vendor advisory, not a weaponized PoC). All signals align consistently: a real-but-minor self-XSS-adjacent flaw requiring an authenticated foothold on the admin panel of a firewall - by the time an attacker can reach /cgi-bin/mail.cgi they already have privileged web access, which caps the practical value of the XSS. Treat as routine patch hygiene, not an emergency. |
| Exploit ScenarioDerived | An authenticated IPFire administrator (or an attacker who has obtained web-UI credentials) submits a POST to /cgi-bin/mail.cgi with a JavaScript payload in the txt_mailuser or txt_mailpass field. The malicious value is stored and later rendered unsanitized, so when another administrator opens the mail-server settings page the injected script executes in their browser session. No public exploit code is identified at time of analysis; complexity is low but exploitation is gated by authentication and by a second user viewing the page. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 26, 2026
Stored cross-site scripting in the IPFire firewall distribution (versions before 2.29 Core Update 198) lets an authenticated administrator inject arbitrary JavaScript through the txt_mailuser and txt_mailpass fields of the mail-server settings form, which is posted to /cgi-bin/mail.cgi. Because those values are persisted and later rendered in the web UI without sanitisation or encoding, the script executes in the browser session of any other user who opens the affected mail configuration page, enabling session theft or privileged actions in that user's context. Authentication is required (CVSS 4.0 vector shows PR:L) and the victim must view the page (UI:P), so exploitation is a two-party, low-privilege-to-privileged chain; EPSS is 0.45% (37th percentile), no public exploit code is known, and the issue is fixed in Core Update 198.
RemediationAI
Upgrade to IPFire 2.29 Core Update 198 or later, the vendor-released fix for CVE-2025-34316; the update is distributed through the normal IPFire package system (Pakfire), and the advisory and release notes are at https://www.ipfire.org/blog/ipfire-2-29-core-update-198-released and https://bugzilla.ipfire.org/show_bug.cgi?id=13891. Because the injected script persists in stored configuration, patching alone does not remove an existing payload: after upgrading, open the mail server configuration page, clear and re-save the mail username and password fields (or re-enter the correct credentials from a known-good source) so any previously stored JavaScript is overwritten, and review the mail settings and any log/notification mailboxes for evidence of tampering. As a compensating control on systems that cannot be updated immediately, restrict access to the web management interface (TCP 444/81 or the configured admin port) to a trusted management VLAN or VPN and avoid exposing it to the internet, which removes the network reachability required by the AV:N vector; the trade-off is loss of remote administration. Note that the practical risk is limited: exploitation requires an authenticated session on the admin UI plus a second user viewing the affected page, the impact is confined to the victim's browser session, and there is no public exploit code and only a 0.45% EPSS score, so remediation should be scheduled rather than treated as an emergency.
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 classic CWE-79 (Improper Neutralization of Input During Web Page Generation) stored/persistent XSS in the IPFire web management interface, which is built on CGI scripts served by a web server on the firewall appliance. The mail notification/relay configuration page issues an HTTP POST to /cgi-bin/mail.cgi carrying the SMTP account username and password as the txt_mailuser and txt_mailpass parameters; these values are written to configuration storage and subsequently echoed back into the HTML of the mail settings page. Missing output encoding means attacker-controlled markup is interpreted as script by the browser rather than displayed as text, and because the payload is persisted server-side it fires for every user who later loads that page - the defining difference between stored XSS and reflected XSS. The impact stays within the victim's browser origin (session cookies, CSRF tokens, ability to drive authenticated UI actions) and does not by itself yield code execution or privilege escalation on the firewall host. CPE data pins the affected build as the IPFire 2.29 tree at Core Updates 183 through 197, with the vendor's cumulative 'ipfire:ipfire:*' range covering all earlier releases.
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-UI access needed (PR:L) and a victim must view the page (UI:R); stored XSS crosses into the victim browser context (S:C) with limited C/I impact and no availability effect.
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 txt_mailuser and txt_mailpass parameters when updating the mail server settings. When a user updates the mail server, the application issues an HTTP POST request to /cgi-bin/mail.cgi and the username and password are provided in the txt_mailuser and txt_mailpass parameters. The values of these parameters are 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 mail configuration.
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
VulDB
GitHub PoC
Exploit-DB