CVE-2026-40342
Firebird: Path Traversal + Arbitrary File Write Leads to Remote Code Execution
Description
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.
INFO
Published Date :
April 17, 2026, 8:16 p.m.
Last Modified :
April 27, 2026, 2:28 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | CRITICAL | [email protected] |
Solution
- Update Firebird to version 5.0.4, 4.0.7, or 3.0.14.
- Ensure user input for engine names is properly sanitized.
- Restrict CREATE FUNCTION privileges to trusted users.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-40342.
| URL | Resource |
|---|---|
| https://github.com/FirebirdSQL/firebird/releases/tag/v3.0.14 | Release Notes |
| https://github.com/FirebirdSQL/firebird/releases/tag/v4.0.7 | Release Notes |
| https://github.com/FirebirdSQL/firebird/releases/tag/v5.0.4 | Release Notes |
| https://github.com/FirebirdSQL/firebird/security/advisories/GHSA-7pxc-h3rv-r257 | Vendor Advisory Exploit |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-40342 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-40342
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-40342 vulnerability anywhere in the article.
-
Daily CyberSecurity
GitLab Security Update: High-Severity Vulnerabilities Patched in April Release
GitLab has released a vital set of security updates for both Community Edition (CE) and Enterprise Edition (EE) to address a range of vulnerabilities, including high-severity flaws that could allow un ... Read more
-
Daily CyberSecurity
CVE-2026-40342: CVSS 10.0 Path Traversal to RCE in Firebird Database
Researchers have disclosed a critical-severity vulnerability in Firebird, the long-standing relational database with roots dating back to 1981, that allows attackers to execute arbitrary code with the ... Read more
The following table lists the changes that have been made to the
CVE-2026-40342 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Apr. 27, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:firebirdsql:firebird:*:*:*:*:*:*:*:* versions up to (excluding) 3.0.14 *cpe:2.3:a:firebirdsql:firebird:*:*:*:*:*:*:*:* versions from (including) 4.0.0 up to (excluding) 4.0.7 *cpe:2.3:a:firebirdsql:firebird:*:*:*:*:*:*:*:* versions from (including) 5.0.0 up to (excluding) 5.0.4 Added Reference Type GitHub, Inc.: https://github.com/FirebirdSQL/firebird/releases/tag/v3.0.14 Types: Release Notes Added Reference Type GitHub, Inc.: https://github.com/FirebirdSQL/firebird/releases/tag/v4.0.7 Types: Release Notes Added Reference Type GitHub, Inc.: https://github.com/FirebirdSQL/firebird/releases/tag/v5.0.4 Types: Release Notes Added Reference Type GitHub, Inc.: https://github.com/FirebirdSQL/firebird/security/advisories/GHSA-7pxc-h3rv-r257 Types: Exploit, Vendor Advisory -
New CVE Received by [email protected]
Apr. 17, 2026
Action Type Old Value New Value Added Description 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. Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H Added CWE CWE-22 Added CWE CWE-94 Added CWE CWE-427 Added CWE CWE-73 Added Reference https://github.com/FirebirdSQL/firebird/releases/tag/v3.0.14 Added Reference https://github.com/FirebirdSQL/firebird/releases/tag/v4.0.7 Added Reference https://github.com/FirebirdSQL/firebird/releases/tag/v5.0.4 Added Reference https://github.com/FirebirdSQL/firebird/security/advisories/GHSA-7pxc-h3rv-r257