Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 65%

CVE-2026-40342: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in FirebirdSQL firebird

0
Critical
Published: Fri Apr 17 2026 (04/17/2026, 19:22:46 UTC)
Source: CVE Database V5
Vendor/Project: FirebirdSQL
Product: firebird

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.

CVSS v3.1

Score 10.0critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/25/2026, 02:40:00 UTC

Technical Analysis

FirebirdSQL firebird versions before 5.0.4, 4.0.7, and 3.0.14 contain a path traversal vulnerability in the external engine plugin loader. The loader concatenates a user-supplied engine name into a filesystem path without sanitizing path separators or '..' components. An authenticated user with CREATE FUNCTION privileges can craft an ENGINE name to traverse directories and load arbitrary shared libraries from anywhere on the filesystem. The loaded library's initialization code executes immediately with the server's OS account privileges before module validation, enabling remote code execution. This vulnerability is tracked as CVE-2026-40342 with a CVSS 3.1 base score of 10.0 (critical).

Potential Impact

Successful exploitation allows an authenticated user with CREATE FUNCTION privileges to execute arbitrary code on the server with the same privileges as the FirebirdSQL server process. This can lead to full compromise of the database server and potentially the underlying host system. The vulnerability affects versions prior to 5.0.4, 4.0.7, and 3.0.14. There are no known exploits in the wild as of the published date.

Mitigation Recommendations

This vulnerability has been fixed in FirebirdSQL versions 5.0.4, 4.0.7, and 3.0.14. Users should upgrade to these or later versions to remediate the issue. No other official remediation or temporary fixes are documented. Patch status is confirmed by the vendor's versioning information. Until upgraded, restrict CREATE FUNCTION privileges to trusted users only.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-10T22:50:01.358Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69e28fa4bdfbbecc59867cc1

Added to database: 4/17/2026, 7:53:08 PM

Last enriched: 4/25/2026, 2:40:00 AM

Last updated: 5/28/2026, 3:07:41 PM

Views: 147

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses