CVE-2026-40342 in Firebirdsql Firebird
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 c...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Firebirdsql | Firebird | < 3.0.14 ≥ 4.0.0, < 4.0.7 ≥ 5.0.0, < 5.0.4 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-40342 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-152244-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| Published | 2026-04-17 |
| Last modified | 2026-10-26 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-22: Path Traversal
Attacker manipulates file path inputs to access files outside the intended directory.
CWE-73: CWE-73
CWE-94: Code Injection
Attacker injects arbitrary code that is executed by the application process.
CWE-427: CWE-427
Related attack patterns (CAPEC)
CAPEC-13 Subverting Environment Variable Values via CWE-73
CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-94
CAPEC-38 Leveraging/Manipulating Configuration File Search Paths via CWE-427
CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-22, CWE-73
CAPEC-72 URL Encoding via CWE-73
Show all 14
CAPEC-76 Manipulating Web Input to File System Calls via CWE-22, CWE-73
CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-22, CWE-73
CAPEC-79 Using Slashes in Alternate Encoding via CWE-22, CWE-73
CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic via CWE-73
CAPEC-471 Search Order Hijacking via CWE-427
CAPEC-77 Manipulating User-Controlled Variables via CWE-94
CAPEC-126 Path Traversal via CWE-22
CAPEC-267 Leverage Alternate Encoding via CWE-73
CAPEC-242 Code Injection via CWE-94
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Firebird versions prior to 5.0.4, 4.0.7, and 3.0.14 are vulnerable to a path traversal vulnerability in the external engine plugin loader, allowing authenticated users with CREATE FUNCTION privileges to load arbitrary shared libraries.
An attacker with CREATE FUNCTION privileges can exploit this vulnerability by crafting a malicious ENGINE name that includes path traversal sequences (such as '..') to load a shared library from an arbitrary location on the filesystem.
Questions
What is CVE-2026-40342?
Firebird versions prior to 5.0.4, 4.0.7, and 3.0.14 are vulnerable to a path traversal vulnerability in the external engine plugin loader, allowing authenticated users with CREATE FUNCTION privileges to load arbitrary shared libraries.
What is the CVSS score for CVE-2026-40342?
CVE-2026-40342 has CVSS 9.9 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. EPSS: 0.9%.
Is CVE-2026-40342 actively exploited?
No confirmed active exploitation of CVE-2026-40342 as of 2026-11-03.
How do I remediate CVE-2026-40342?
Priority: IMMEDIATE.
What systems are affected by CVE-2026-40342?
CVE-2026-40342 affects Firebirdsql Firebird.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Firebirdsql","product":"Firebird","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-26.