# CVE-2026-40342: Firebird: Path Traversal + Arbitrary File Write Leads to Remote Code Execution

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-17T19:22:46.644Z
- Modified: 2026-10-26T22:10:00.163Z
- Weaknesses: CWE-22, CWE-73, CWE-94, CWE-427
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- FirebirdSQL firebird: < 3.0.14; >= 4.0.0, < 4.0.7; >= 5.0.0, < 5.0.4; before 3.0.14; from 4.0.0 before 4.0.7; from 5.0.0 before 5.0.4

## References

- <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)

## Sources

- CVE List: [CVE-2026-40342](https://www.cve.org/CVERecord?id=CVE-2026-40342), CVE Terms of Use, modified 2026-04-22
- NVD: [CVE-2026-40342](https://nvd.nist.gov/vuln/detail/CVE-2026-40342), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40342 · Whole record: https://cve.day/CVE-2026-40342.json · Rebuilt by cve.day 2026-11-25T22:59:18.962Z
