CVE-2026-40342: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in FirebirdSQL firebird
CVE-2026-40342 is a critical path traversal vulnerability in FirebirdSQL firebird versions prior to 5. 0. 4, 4. 0. 7, and 3. 0. 14. It allows an authenticated user with CREATE FUNCTION privileges to craft an ENGINE name that causes the plugin loader to load an arbitrary shared library from anywhere on the filesystem. This leads to immediate code execution as the server's operating system account during library initialization. The vulnerability has been fixed in Firebird versions 5.
AI Analysis
Technical Summary
FirebirdSQL firebird's external engine plugin loader improperly concatenates a user-supplied engine name into a filesystem path without filtering path separators or '..' components. This allows an authenticated user with CREATE FUNCTION privileges to perform path traversal and load arbitrary shared libraries, resulting in code execution as the server OS user. The issue affects versions prior to 5.0.4, 4.0.7, and 3.0.14 and has been addressed in those fixed versions.
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 Firebird server's operating system account. This can lead to full system compromise, data theft, or disruption of service. The CVSS v3.1 score is 10.0 (critical), indicating high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
This vulnerability has been fixed in FirebirdSQL firebird versions 5.0.4, 4.0.7, and 3.0.14. Users should upgrade to these or later versions to remediate the issue. No official temporary workaround or mitigation is indicated in the provided data. Patch status is confirmed by the vendor's versioning information.
CVE-2026-40342: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in FirebirdSQL firebird
Description
CVE-2026-40342 is a critical path traversal vulnerability in FirebirdSQL firebird versions prior to 5. 0. 4, 4. 0. 7, and 3. 0. 14. It allows an authenticated user with CREATE FUNCTION privileges to craft an ENGINE name that causes the plugin loader to load an arbitrary shared library from anywhere on the filesystem. This leads to immediate code execution as the server's operating system account during library initialization. The vulnerability has been fixed in Firebird versions 5.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
FirebirdSQL firebird's external engine plugin loader improperly concatenates a user-supplied engine name into a filesystem path without filtering path separators or '..' components. This allows an authenticated user with CREATE FUNCTION privileges to perform path traversal and load arbitrary shared libraries, resulting in code execution as the server OS user. The issue affects versions prior to 5.0.4, 4.0.7, and 3.0.14 and has been addressed in those fixed versions.
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 Firebird server's operating system account. This can lead to full system compromise, data theft, or disruption of service. The CVSS v3.1 score is 10.0 (critical), indicating high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
This vulnerability has been fixed in FirebirdSQL firebird versions 5.0.4, 4.0.7, and 3.0.14. Users should upgrade to these or later versions to remediate the issue. No official temporary workaround or mitigation is indicated in the provided data. Patch status is confirmed by the vendor's versioning information.
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/17/2026, 8:08:09 PM
Last updated: 4/17/2026, 9:20:51 PM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.