IPFire CVE-2025-34318
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to IPFire web UI
-
DeliveryPOST payload to /cgi-bin/dns.cgi DNS parameter
-
ExploitMalicious value stored server-side
-
ExecutionAdmin views DNS config page
-
ImpactScript executes in victim's authenticated 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 administration interface with permission to add DNS entries via /cgi-bin/dns.cgi (PR:L). Payload execution is gated on a second user - ideally a higher-privileged admin - subsequently viewing the affected DNS configuration page (UI:P), so it is not self-triggering. Injectable fields are TLS_HOSTNAME, UPSTREAM_USER, UPSTREAM_PASSWORD, ADMIN_MAIL_ADDRESS, and ADMIN_PASSWORD. Limiting factors: valid web-UI credentials with DNS-management rights are needed, victim interaction is required, and only IPFire versions before 2.29 (Core Update 198) are affected - patched installs are not exploitable. |
| Impact | This is a genuine but low-priority issue. The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N, base 5.1) tells a consistent, self-limiting story: exploitation requires an authenticated attacker (PR:L) with access to the IPFire web admin interface, and payload execution depends on a second victim user viewing the affected DNS configuration (UI:P - passive/user interaction). The vulnerable-system impact is entirely N; only subsequent-system confidentiality and integrity are Low (SC:L/SI:L), reflecting a stored XSS that runs script in another operator's browser context rather than directly compromising the appliance. EPSS is low at 0.48% (39th percentile), there is no CISA KEV listing, and no public exploit code is referenced - signals that all align with the modest CVSS and point to no widespread automated exploitation. The one tension worth noting: the description lists ADMIN_PASSWORD and UPSTREAM_PASSWORD among the injectable parameters, and successful script execution in an admin session could in principle be chained to fuller compromise of a firewall - a consequence the base score's SC:L/SI:L does not fully capture, but which remains contingent on convincing a privileged user to view attacker-controlled DNS data. Overall: a real, patch-worthy finding, not an urgent one. |
| Exploit ScenarioDerived | An authenticated IPFire web-UI user with rights to add DNS entries submits a POST to /cgi-bin/dns.cgi with a JavaScript payload in a field such as TLS_HOSTNAME or ADMIN_MAIL_ADDRESS. The value is stored and later rendered unsanitized, so when another operator (e.g., a higher-privileged admin) views the DNS configuration page, the injected script executes in their session. No public exploit code is identified at time of analysis. |
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 IPFire versions prior to 2.29 (Core Update 198) lets an authenticated attacker holding DNS-management rights inject arbitrary JavaScript through the TLS_HOSTNAME, UPSTREAM_USER, UPSTREAM_PASSWORD, ADMIN_MAIL_ADDRESS, and ADMIN_PASSWORD parameters submitted to /cgi-bin/dns.cgi when creating a DNS entry. The unsanitised values are persisted and later rendered in the web administration interface, so the payload fires only when a second user - typically a higher-privileged administrator - subsequently views the affected DNS configuration page, meaning victim interaction is required and the flaw is not self-triggering. This is a genuine but low-priority issue: exploitation demands valid web-UI credentials with DNS permissions, patched 2.29 (Core Update 198) installs are not affected, EPSS is 0.48% (39th percentile), and no public exploit code or confirmed active exploitation has been identified at time of analysis.
RemediationAI
Upgrade to IPFire 2.29 (Core Update 198) or later, which is the vendor-released fix that removes the unsanitised rendering of the DNS-entry fields; the release announcement is at https://www.ipfire.org/blog/ipfire-2-29-core-update-198-released and the upstream bug tracking the issue is https://bugzilla.ipfire.org/show_bug.cgi?id=13893, with third-party detail at https://www.vulncheck.com/advisories/ipfire-stored-xss-via-dns-creation-proxy-cgi. Until patched, compensating controls carry trade-offs: restrict access to the web administration interface to a trusted management network or VPN so untrusted users cannot reach /cgi-bin/dns.cgi at all (this limits administrative convenience and remote management); review the DNS configuration page for stored entries containing script markup or unexpected values and remove them, since the payload persists until deleted (manual review, no guarantee of completeness); grant DNS-management permissions on the web UI only to fully trusted administrators, because the flaw requires authenticated DNS rights plus a victim who views the page (reduces exposure but does not eliminate it where multiple admins share the interface); and consider re-issuing credentials from the ADMIN_MAIL_ADDRESS and ADMIN_PASSWORD fields if they were written by an untrusted party, as those values are implicated in the injection path (administrative overhead). No public exploit code or confirmed active exploitation has been reported, so emergency patching beyond the normal update cycle is not warranted.
Affected ProductsAI
IPFire firewall/router distributions running any release before 2.29 (Core Update 198) are affected; the vulnerable code path is the DNS entry creation handler exposed at /cgi-bin/dns.cgi in the web administration interface, reached via HTTP POST with the TLS_HOSTNAME, UPSTREAM_USER, UPSTREAM_PASSWORD, ADMIN_MAIL_ADDRESS, and ADMIN_PASSWORD parameters. IPFire 2.29 (Core Update 198) and later are fixed and not exploitable. No CPE strings were supplied with the source data, so version scoping relies on the vendor release notes and the upstream bug report; the vendor advisory for the release is at https://www.ipfire.org/blog/ipfire-2-29-core-update-198-released, the tracking bug is at https://bugzilla.ipfire.org/show_bug.cgi?id=13893, and the third-party analysis is at https://www.vulncheck.com/advisories/ipfire-stored-xss-via-dns-creation-proxy-cgi.
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 is a Linux-based firewall/router distribution whose administration interface is built on CGI scripts served from /cgi-bin/, including dns.cgi, which manages DNS proxy and upstream resolver configuration. The weakness is a classic CWE-79 stored (persistent) cross-site scripting condition: user-supplied configuration fields are written into persistent storage without sanitisation and later emitted into HTML pages without output encoding or context-aware escaping, so any injected markup is interpreted by the browser of the next user who opens the DNS configuration view. The CVSS 4.0 vector 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 describes network reachability, low attack complexity, no attack requirements, low privileges, and passive user interaction, with the only impact confined to subsequent-system confidentiality and integrity (SC:L/SI:L) rather than the vulnerable component itself - consistent with script execution in a victim's authenticated session. The independent assessment maps this to CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, which matches: authenticated access to the CGI endpoint (PR:L), required victim interaction (UI:R), and scope change reflecting that the injected script runs in another user's browser context. The five injectable parameters mix proxy TLS/host settings (TLS_HOSTNAME, UPSTREAM_USER, UPSTREAM_PASSWORD) with administrative identity fields (ADMIN_MAIL_ADDRESS, ADMIN_PASSWORD), so payloads may be stored in application configuration data rather than a dedicated user-content store.
Know when the next one hits your stack
- 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), stored payload executes only when another user views the page (UI:R), and script runs in a different security context so S:C with C:L/I:L.
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 TLS_HOSTNAME, UPSTREAM_USER, UPSTREAM_PASSWORD, ADMIN_MAIL_ADDRESS, and ADMIN_PASSWORD parameters when adding a new DNS entry. When a user adds a DNS entry, the application issues an HTTP POST request to /cgi-bin/dns.cgi and these values are provided in the corresponding parameters. The values 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 DNS 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.
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB