{"id":"CVE-2026-40342","published":"2026-04-17T19:22:46Z","modified":"2026-04-22T13:56:49Z","title":"Firebird: Path Traversal + Arbitrary File Write Leads to Remote Code Execution","vendor":"FirebirdSQL","product":"firebird","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00705,"percentile":0.5424,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-427","name":"Uncontrolled Search Path Element"},{"id":"CWE-73","name":"External Control of File Name or Path"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/FirebirdSQL/firebird/security/advisories/GHSA-7pxc-h3rv-r257","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/FirebirdSQL/firebird/releases/tag/v3.0.14","tags":["x_refsource_MISC"]},{"url":"https://github.com/FirebirdSQL/firebird/releases/tag/v4.0.7","tags":["x_refsource_MISC"]},{"url":"https://github.com/FirebirdSQL/firebird/releases/tag/v5.0.4","tags":["x_refsource_MISC"]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":10.85},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"firebirdsql","affectedVersions":[{"vendor":"FirebirdSQL","product":"firebird","versions":["< 3.0.14",">= 4.0.0, < 4.0.7",">= 5.0.0, < 5.0.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-22T03:55:33.795186Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-23496","exploited":false,"provenance":"source"}}