{"id":"CVE-2026-40342","aliases":["CVE-2026-40342"],"related":[],"kind":"vulnerability","state":"published","title":"Firebird: Path Traversal + Arbitrary File Write Leads to Remote Code Execution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Firebird es un sistema de gestión de base de datos relacional de código abierto. En versiones anteriores a 5.0.4, 4.0.7 y 3.0.14, el cargador de plugin de motor externo concatena un nombre de motor proporcionado por el usuario en una ruta del sistema de archivos sin filtrar separadores de ruta o componentes .. Un usuario autenticado con privilegios CREATE FUNCTION puede usar un nombre de ENGINE manipulado para cargar una biblioteca compartida arbitraria desde cualquier lugar del sistema de archivos a través de salto de ruta. El código de inicialización de la biblioteca se ejecuta inmediatamente durante la carga, antes de que Firebird valide el módulo, logrando la ejecución de código como la cuenta del sistema operativo del servidor. Este problema ha sido solucionado en las versiones 5.0.4, 4.0.7 y 3.0.14.","source":"nvd"}],"published":"2026-04-17T19:22:46.644Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"}],"cwes":["CWE-22","CWE-73","CWE-94","CWE-427"],"affected":[{"ranges":[{"version":"< 3.0.14","status":"affected"},{"version":">= 4.0.0, < 4.0.7","status":"affected"},{"version":">= 5.0.0, < 5.0.4","status":"affected"}],"vendor":"FirebirdSQL","product":"firebird","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.0.14"},{"status":"affected","introduced":"4.0.0","fixed":"4.0.7"},{"status":"affected","introduced":"5.0.0","fixed":"5.0.4"}],"vendor":"firebirdsql","product":"firebird","cpe":"cpe:2.3:a:firebirdsql:firebird:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/FirebirdSQL/firebird/security/advisories/GHSA-7pxc-h3rv-r257","tags":["exploit","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/FirebirdSQL/firebird/releases/tag/v3.0.14","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/FirebirdSQL/firebird/releases/tag/v4.0.7","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/FirebirdSQL/firebird/releases/tag/v5.0.4","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-04-22T03:55:33.795Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40342","url":"https://www.cve.org/CVERecord?id=CVE-2026-40342","licence":"CVE Terms of Use","modified":"2026-04-22T13:56:49.927Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40342","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40342","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:18.962Z","epss":{"score":0.00705,"percentile":0.54569,"date":"2026-12-01T12:00:22.000Z"}}