CVE details
CVE-2026-40342
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.
Affected ports (4)
| Port | Package | Version | Status | Maintainer |
|---|---|---|---|---|
| databases/firebird30-client | firebird30-client | 3.0.12 | unaddressed | acm@FreeBSD.org |
| databases/firebird30-server | firebird30-server | 3.0.12 | unaddressed | acm@FreeBSD.org |
| databases/firebird40-client | firebird40-client | 4.0.5_2 | unaddressed | acm@FreeBSD.org |
| databases/firebird40-server | firebird40-server | 4.0.5_2 | unaddressed | acm@FreeBSD.org |
Template for a VuXML entry
Range taken from the CVE record, check it before committing. make newentry in security/vuxml creates the vid.
<vuln vid="FIXME (make newentry)">
<topic>FIXME -- FIXME</topic>
<affects>
<package>
<name>firebird30-client</name>
<range><lt>3.0.14</lt></range>
</package>
<package>
<name>firebird30-server</name>
<range><lt>3.0.14</lt></range>
</package>
<package>
<name>firebird40-client</name>
<range><lt>3.0.14</lt></range>
</package>
<package>
<name>firebird40-server</name>
<range><lt>3.0.14</lt></range>
</package>
</affects>
<description>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>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.</p>
</body>
</description>
<references>
<cvename>CVE-2026-40342</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2026-40342</url>
</references>
<dates>
<discovery>2026-04-17</discovery>
<entry>2026-10-25</entry>
</dates>
</vuln>