CVE-2026-40342
Last modified
CVE-2026-40342 is a critical-severity vulnerability rated 9.9/10 on the CVSS scale. 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 .. EPSS estimates a 0.69% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Firebirdsql | Firebird | < 3.0.14 |
| Firebirdsql | Firebird | >= 4.0.0, < 4.0.7 |
| Firebirdsql | Firebird | >= 5.0.0, < 5.0.4 |
References
- https://github.com/FirebirdSQL/firebird/security/advisories/GHSA-7pxc-h3rv-r257Exploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-40342?
How severe is CVE-2026-40342?
How do I fix CVE-2026-40342?
Are you affected by CVE-2026-40342?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
