CVE-2026-40342: Firebird - Command Injection
- Cve: CVE-2026-40342
- Name: Firebird - Command Injection
- 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.
- Impact: Authenticated users with CREATE FUNCTION privileges can execute arbitrary code as the server OS account, leading to full system compromise.
- Remediation: Update to versions 5.0.4, 4.0.7, or 3.0.14 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker must be authenticated with CREATE FUNCTION privileges
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.9
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Epss score: 0.00705
- Epss percentile: 0.54262
- Assignee: [email protected]
- Published at: 2026-04-17T20:16:35Z
- Age in days: 221
- Modified at: 2026-10-26T22:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40342
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/FirebirdSQL/firebird/security/advisories/GHSA-7pxc-h3rv-r257 | nvd | 2026-04-17 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/FirebirdSQL/firebird/security/advisories/GHSA-7pxc-h3rv-r257 | Exploit, Vendor Advisory |
| 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 |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| firebirdsql:firebird | >= 5.0.0, < 5.0.4; >= 4.0.0, < 4.0.7; < 3.0.14 | no | nvd | /v1/products/firebirdsql/firebird |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| FirebirdSQL/firebird | fix, releases, security_advisory | yes | /v1/repositories/FirebirdSQL/firebird |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-04-17
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts