CVE-2026-40342Firebirdsql Firebird Path Traversal
NVDCVSS scored by security-advisories@github.com
Vulnerability 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.
CVSS v3.1 Base Metrics — Score 9.9 (CRITICAL)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeChanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- Firebirdsql Firebird < 3.0.14
- Firebirdsql Firebird >= 4.0.0 and < 4.0.7
- Firebirdsql Firebird >= 5.0.0 and < 5.0.4
- Firebirdsql Firebird 3.0.14
- Firebirdsql Firebird 4.0.7
- Firebirdsql Firebird 5.0.4
What to do
Prioritize this fix. Exploit code is public, so attacks can follow quickly.
- Check whether you run Firebirdsql Firebird and which version.
- Update to a patched version listed above, then confirm the new version.
- Review logs and exposed services for signs of earlier compromise.
Timeline
- Apr 17, 2026Published
- Oct 26, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Firebirdsql Firebird CVEsYou are reading CVE-2026-40342. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsRelated Coverage
External References
Data last checked: Nov 19, 2026 21:40 UTC