Skip to main content

IPFire CVE-2025-34304

HIGH
SQL Injection (CWE-89)
2025-10-28 disclosure@vulncheck.com
7.1
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to IPFire web UI
  2. Exploit
    Submit crafted CONNECTION_NAME in POST to ovpnclients.dat
  3. Execution
    Inject SQL into unsanitized WHERE clause
  4. Impact
    Disclose sensitive database records

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

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) and an IPFire instance where OpenVPN is deployed so that the connection-log viewer is reachable; the attacker triggers it by sending an HTTP POST to /cgi-bin/logs.cgi/ovpnclients.dat with a malicious CONNECTION_NAME value injected into the WHERE clause. Exploitation is LIMITED by the authentication requirement (a valid management-UI account is needed, not anonymous access) and by the fact that the IPFire administrative interface is typically restricted to internal/management networks rather than exposed publicly; impact is further limited to information disclosure, as the flaw does not provide write/modify capability in the described behavior.

Impact

This is a CWE-89 SQL injection in IPFire's OpenVPN connection-log viewer (CONNECTION_NAME parameter) carrying a vendor/VulnCheck CVSS 4.0 score of 7.1 (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N). The vector signals network-reachable, low-complexity exploitation requiring only low privileges (PR:L) with no user interaction, but impact is confined to confidentiality (VC:H) - integrity and availability are untouched, consistent with a read-only information-disclosure injection. No EPSS score, no KEV listing, and no POC indicator are present in the input, so there is no public exploit identified at time of analysis and no evidence of active exploitation. The real-world priority is moderate rather than urgent: exploitation is gated behind an authenticated web-interface session (PR:L), which bounds the attacker population to users who already hold valid IPFire management credentials, and the firewall's administrative UI is normally not exposed to the open internet. Treat this as a defense-in-depth patch - meaningful because the leaked data can include sensitive firewall/VPN information, but not a drop-everything issue absent any exploitation or POC signal. No signals are in direct conflict; the main missing data points are EPSS and independent POC status.

Exploit ScenarioDerived

An attacker with a valid but low-privileged IPFire web-interface account browses to the OpenVPN connection-log view and submits a crafted CONNECTION_NAME value in the HTTP POST to /cgi-bin/logs.cgi/ovpnclients.dat. Because the value is concatenated directly into the SQL WHERE clause, the attacker alters the query to read and exfiltrate sensitive records from the backend database. No public exploit code is identified in the provided data, and low attack complexity (AC:L) means the injection is straightforward once authenticated.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 19, 2026

Authenticated SQL injection in IPFire's OpenVPN connection-log viewer allows a management-UI user to alter the SQL query behind the CONNECTION_NAME parameter and disclose sensitive database contents. Affected builds are IPFire 2.29 Core Update 183 through 197; the issue is fixed in Core Update 198. Exploitation requires a valid IPFire web-management account and an OpenVPN deployment that makes the connection-log viewer reachable; no public exploit code has been identified at time of analysis, and the vendor/VulnCheck CVSS 4.0 score is 7.1 while our assessed CVSS 3.1 vector is AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N, reflecting information disclosure rather than modification.

RemediationAI

Upgrade IPFire to 2.29 Core Update 198 or later, which contains the vendor fix; apply the update through the normal IPFire package update mechanism and confirm the installed core update level afterward, using the release announcement at https://www.ipfire.org/blog/ipfire-2-29-core-update-198-released and Bugzilla entry https://bugzilla.ipfire.org/show_bug.cgi?id=13879 as references. If immediate upgrading is not possible, reduce exposure by restricting the IPFire web management interface to trusted management networks and specific administrative source addresses, which limits who can reach /cgi-bin/logs.cgi/ovpnclients.dat but does not fix the underlying injection. Also remove or disable unused management-UI accounts and avoid granting log-viewing access to untrusted users, since exploitation requires an authenticated session; these controls reduce the attack surface but do not remediate the flaw for accounts that retain access to the OpenVPN connection-log viewer.

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 CWE-89 SQL injection in IPFire's CGI-based log viewer. When an administrator views a range of OpenVPN connection logs, the application issues an HTTP POST to /cgi-bin/logs.cgi/ovpnclients.dat and places the user-supplied CONNECTION_NAME value directly into the WHERE clause of the SQL query used to retrieve connection records, without sanitization or parameterization. An authenticated attacker who can reach that endpoint can therefore change the query's logic and read data the query was not intended to return. IPFire is a Linux-based firewall/router distribution with a web management interface, and the vulnerable component is the OpenVPN client-connection logging view; the advisory and CPE data scope affected builds to IPFire 2.29 Core Update 183 through 197, with the fix arriving in Core Update 198. The disclosed behavior is information disclosure only; the described vector does not provide write or modification capability.

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

Vendor (vulncheck) PRIMARY 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

Network-reachable UI endpoint with low complexity, but a valid management account is required so PR:L; disclosure-only SQLi gives C:H with I:N/A:N and no scope change.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

IPFire versions prior to 2.29 (Core Update 198) contain a SQL injection vulnerability that allows an authenticated attacker to manipulate the SQL query used when viewing OpenVPN connection logs via the CONNECTION_NAME parameter. When viewing a range of OpenVPN connection logs, the application issues an HTTP POST request to the Request-URI /cgi-bin/logs.cgi/ovpnclients.dat and inserts the value of the CONNECTION_NAME parameter directly into the WHERE clause without proper sanitization or parameterization. The unsanitized value can alter the executed query and be used to disclose sensitive information from the database.

Executive ViewAI

Why It Matters

IPFire 2.29 Core Updates 183 through 197 contain an authenticated SQL injection in the OpenVPN connection-log viewer that can expose sensitive database contents to a management-UI user. The risk is concentrated in organizations that expose the IPFire web management interface and OpenVPN logging to administrators, where a compromised or malicious privileged account could read data beyond its intended scope. Leadership should prioritize inventory and upgrade because the issue is fixed in Core Update 198 and no public exploit has been identified, but the exposure is real for unpatched, reachable deployments.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Low
niche open-source firewall distro, limited enterprise footprint
Data Quality
2 sources
Confidence: Low

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Affected Products (CPE)CVE.org

cpe:2.3:a:ipfire:ipfire:*:*:*:*:*:*:*:*
cpe:2.3:a:ipfire:ipfire:2.29:core_update183:*:*:*:*:*:*
cpe:2.3:a:ipfire:ipfire:2.29:core_update184:*:*:*:*:*:*
cpe:2.3:a:ipfire:ipfire:2.29:core_update185:*:*:*:*:*:*
cpe:2.3:a:ipfire:ipfire:2.29:core_update186:*:*:*:*:*:*
cpe:2.3:a:ipfire:ipfire:2.29:core_update187:*:*:*:*:*:*
cpe:2.3:a:ipfire:ipfire:2.29:core_update188:*:*:*:*:*:*
cpe:2.3:a:ipfire:ipfire:2.29:core_update189:*:*:*:*:*:*
cpe:2.3:a:ipfire:ipfire:2.29:core_update190:*:*:*:*:*:*
cpe:2.3:a:ipfire:ipfire:2.29:core_update191:*:*:*:*:*:*
cpe:2.3:a:ipfire:ipfire:2.29:core_update192:*:*:*:*:*:*
cpe:2.3:a:ipfire:ipfire:2.29:core_update193:*:*:*:*:*:*
cpe:2.3:a:ipfire:ipfire:2.29:core_update194:*:*:*:*:*:*
cpe:2.3:a:ipfire:ipfire:2.29:core_update195:*:*:*:*:*:*
cpe:2.3:a:ipfire:ipfire:2.29:core_update196:*:*:*:*:*:*
cpe:2.3:a:ipfire:ipfire:2.29:core_update197:*:*:*:*:*:*

More in Ipfire

View all
CVE-2017-9757 HIGH POC
8.8 Jun 19

IPFire 2.19 has a Remote Command Injection vulnerability in ids.cgi via the OINKCODE parameter, which is mishandled by a

CVE-2021-33393 HIGH POC
8.8 Jun 09

lfs/backup in IPFire 2.25-core155 does not ensure that /var/ipfire/backup/bin/backup.pl is owned by the root account. Ra

CVE-2018-16232 HIGH POC
8.8 Oct 17

An authenticated command injection vulnerability exists in IPFire Firewall before 2.21 Core Update 124 in backup.cgi. Ra

CVE-2019-25399 MEDIUM POC
6.4 Feb 18

IPFire 2.21 Core Update 127 contains multiple stored cross-site scripting vulnerabilities in the extrahd.cgi script that

CVE-2019-25398 MEDIUM POC
6.1 Feb 18

IPFire 2.21 Core Update 127 contains multiple cross-site scripting vulnerabilities in the ovpnmain.cgi script that allow

CVE-2019-25397 MEDIUM POC
6.1 Feb 18

IPFire 2.21 Core Update 127 contains multiple reflected cross-site scripting vulnerabilities in the hosts.cgi script tha

CVE-2019-25396 MEDIUM POC
6.1 Feb 18

IPFire 2.21 Core Update 127 contains a reflected cross-site scripting vulnerability in the updatexlrator.cgi script that

CVE-2019-25400 MEDIUM POC
5.4 Feb 18

IPFire 2.21 Core Update 127 contains multiple reflected cross-site scripting vulnerabilities in the fwhosts.cgi script t

CVE-2025-34312 HIGH
8.7 Oct 28

Command injection in the IPFire URL filter allows an authenticated administrator to execute arbitrary shell commands as

CVE-2025-34311 HIGH
8.7 Oct 28

Authenticated command injection in the IPFire firewall distribution prior to 2.29 (Core Update 198) lets a low-privilege

CVE-2025-34309 MEDIUM
5.1 Oct 28

Stored cross-site scripting in IPFire before 2.29 (Core Update 198) allows an authenticated Dynamic DNS administrator to

CVE-2025-34301 MEDIUM
5.1 Oct 28

Stored cross-site scripting in IPFire's web management interface (versions prior to 2.29 Core Update 198) lets an authen

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy