CVE-2025-34304 IPFire < v2.29 SQL Injection via OpenVPN Connection Logs
An authenticated attacker can exploit SQL injection in OpenVPN log viewing to disclose sensitive database information in IPFire.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-34304?
CVE-2025-34304 is a high-severity SQL injection vulnerability in IPFire.org IPFire, published on 28 Oct 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Weakness: CWE-89
Which versions are affected by CVE-2025-34304?
It affects 1 product.
Products include Ipfire Ipfire.
How do I fix CVE-2025-34304?
No fix has been published for CVE-2025-34304 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2025-34304 being exploited?
There is no known exploitation of CVE-2025-34304 in the wild and no public exploit code.
Other vulnerabilities in IPFire.org IPFire
Sources
Also known as GHSA-2hwv-ff5w-xmw9.