SQL injection in Exim - CVE-2025-26794

 

SQL injection in Exim - CVE-2025-26794

Published: February 21, 2025 / Updated: October 31, 2025


Vulnerability identifier: #VU104137
CSH Severity: Medium
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-26794
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary SQL queries in application's database.

The vulnerability exists due to insufficient sanitization of user-supplied data. A remote attacker can send a specially crafted email to the affected server and execute arbitrary SQL commands within the application's database.

Note, the vulnerability exists only when the build time option _USE_SQLITE_ was set (it enables the use of SQLite for the hints databases), runtime config enables ETRN and enforces ETRN serialization.


Affected software

Exim
Fedora
exim

How to mitigate CVE-2025-26794

Install updates from vendor's website.

Exim - update to 4.98.1
exim - addressed in versions 4.98.1-1.el8, 4.98.1-1.el9, 4.98.1-1.fc40, 4.98.1-1.fc41, 4.98.1-1.fc42, 4.98.2-1.fc42

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins