{"api_version":"1","generated_at":"2026-04-18T00:47:01+00:00","cve":"CVE-2026-40342","urls":{"html":"https://cve.report/CVE-2026-40342","api":"https://cve.report/api/cve/CVE-2026-40342.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-40342","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-40342"},"summary":{"title":"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.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-04-17 20:16:35","updated_at":"2026-04-17 20:16:35"},"problem_types":["CWE-22","CWE-73","CWE-94","CWE-427","CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","CWE-427 CWE-427: Uncontrolled Search Path Element","CWE-73 CWE-73: External Control of File Name or Path","CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","score":"9.9","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","baseScore":9.9,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"10","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":10,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://github.com/FirebirdSQL/firebird/releases/tag/v5.0.4","name":"https://github.com/FirebirdSQL/firebird/releases/tag/v5.0.4","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/FirebirdSQL/firebird/releases/tag/v4.0.7","name":"https://github.com/FirebirdSQL/firebird/releases/tag/v4.0.7","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/FirebirdSQL/firebird/releases/tag/v3.0.14","name":"https://github.com/FirebirdSQL/firebird/releases/tag/v3.0.14","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/FirebirdSQL/firebird/security/advisories/GHSA-7pxc-h3rv-r257","name":"https://github.com/FirebirdSQL/firebird/security/advisories/GHSA-7pxc-h3rv-r257","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-40342","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40342","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"FirebirdSQL","product":"firebird","version":"affected < 3.0.14","platforms":[]},{"source":"CNA","vendor":"FirebirdSQL","product":"firebird","version":"affected >= 4.0.0, < 4.0.7","platforms":[]},{"source":"CNA","vendor":"FirebirdSQL","product":"firebird","version":"affected >= 5.0.0, < 5.0.4","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"product":"firebird","vendor":"FirebirdSQL","versions":[{"status":"affected","version":"< 3.0.14"},{"status":"affected","version":">= 4.0.0, < 4.0.7"},{"status":"affected","version":">= 5.0.0, < 5.0.4"}]}],"descriptions":[{"lang":"en","value":"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":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":10,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-427","description":"CWE-427: Uncontrolled Search Path Element","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-73","description":"CWE-73: External Control of File Name or Path","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-04-17T19:22:46.644Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/FirebirdSQL/firebird/security/advisories/GHSA-7pxc-h3rv-r257","tags":["x_refsource_CONFIRM"],"url":"https://github.com/FirebirdSQL/firebird/security/advisories/GHSA-7pxc-h3rv-r257"},{"name":"https://github.com/FirebirdSQL/firebird/releases/tag/v3.0.14","tags":["x_refsource_MISC"],"url":"https://github.com/FirebirdSQL/firebird/releases/tag/v3.0.14"},{"name":"https://github.com/FirebirdSQL/firebird/releases/tag/v4.0.7","tags":["x_refsource_MISC"],"url":"https://github.com/FirebirdSQL/firebird/releases/tag/v4.0.7"},{"name":"https://github.com/FirebirdSQL/firebird/releases/tag/v5.0.4","tags":["x_refsource_MISC"],"url":"https://github.com/FirebirdSQL/firebird/releases/tag/v5.0.4"}],"source":{"advisory":"GHSA-7pxc-h3rv-r257","discovery":"UNKNOWN"},"title":"Firebird: Path Traversal + Arbitrary File Write Leads to Remote Code Execution"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-40342","datePublished":"2026-04-17T19:22:46.644Z","dateReserved":"2026-04-10T22:50:01.358Z","dateUpdated":"2026-04-17T19:22:46.644Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-04-17 20:16:35","lastModifiedDate":"2026-04-17 20:16:35","problem_types":["CWE-22","CWE-73","CWE-94","CWE-427","CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","CWE-427 CWE-427: Uncontrolled Search Path Element","CWE-73 CWE-73: External Control of File Name or Path","CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","baseScore":9.9,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.1,"impactScore":6}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"40342","Ordinal":"1","Title":"Firebird: Path Traversal + Arbitrary File Write Leads to Remote ","CVE":"CVE-2026-40342","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"40342","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Firebird: Path Traversal + Arbitrary File Write Leads to Remote "}]}}}