CVE-2026-40342

CRITICAL CVSS 3.1: 9.9 EPSS 0.70%
Updated Oct 27, 2026
Firebirdsql
Parameter Value
CVSS 9.9 (CRITICAL)
Affected Versions 4.0.0 — 5.0.4
Fixed In 3.0.14
Type CWE-94 (Code Injection), CWE-73 (External Control of File Name or Path), CWE-22 (Path Traversal), CWE-427 (Uncontrolled Search Path Element)
Vendor Firebirdsql
Public PoC No

Firebird is an open-source relational database management system. In versions prior to 5.0.4, 4.0.7 and 3.0.14, the external engine plugin loader concatenates a user-supplied engine name into a filesystem path without filtering path separators or .. components. An authenticated user with CREATE FUNCTION privileges can use a crafted ENGINE name to load an arbitrary shared library from anywhere on the filesystem via path traversal.

The library's initialization code executes immediately during loading, before Firebird validates the module, achieving code execution as the server's OS account. This issue has been fixed in versions 5.0.4, 4.0.7 and 3.0.14.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Vulnerable Products 3

Configuration From (including) Up to (excluding)
Firebirdsql Firebird
cpe:2.3:a:firebirdsql:firebird:*:*:*:*:*:*:*:*
— 3.0.14
Firebirdsql Firebird
cpe:2.3:a:firebirdsql:firebird:*:*:*:*:*:*:*:*
4.0.0 4.0.7
Firebirdsql Firebird
cpe:2.3:a:firebirdsql:firebird:*:*:*:*:*:*:*:*
5.0.0 5.0.4