cve.bz

CVE-2026-40342 firebirdsql firebird: Path traversal

9.9 criticalExploit referenceEPSS 0.7%

Critical (9.9) in firebirdsql firebird. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.9 critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 54th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-73 External Control of File Name or Path
CWE-94 Improper Control of Generation of Code (Code Injection)
CWE-427 Uncontrolled Search Path Element
OWASP Top 10
A01:2025 Broken Access Control, A05:2025 Injection, A06:2025 Insecure Design, A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40342 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40342?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40342?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40342 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-40342

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-40342](https://cve.bz/cve/badge/CVE-2026-40342.svg)](https://cve.bz/cve/CVE-2026-40342)

HTML:

<a href="https://cve.bz/cve/CVE-2026-40342"><img src="https://cve.bz/cve/badge/CVE-2026-40342.svg" alt="CVE-2026-40342"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
firebirdsql:firebirdbefore 3.0.14
firebirdsql:firebirdfrom 4.0.0 before 4.0.7
firebirdsql:firebirdfrom 5.0.0 before 5.0.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12firebird3.0no fix listedDEBIAN-CVE-2026-40342
Debian13firebird3.0, firebird4.0no fix listedDEBIAN-CVE-2026-40342
Debian14firebird3.03.0.14.ds7-1DEBIAN-CVE-2026-40342
Debian14firebird4.04.0.7.3271.ds6-1DEBIAN-CVE-2026-40342
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 1 morefirebird3.0no fix listedUBUNTU-CVE-2026-40342
Ubuntu25.10, 26.04:LTS, 26.10firebird3.0, firebird4.0no fix listedUBUNTU-CVE-2026-40342

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-38 Leveraging/Manipulating Configuration File Search Paths Likelihood: High · Severity: Very High
  • CAPEC-471 Search Order Hijacking Severity: Medium
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-73.

References

Check your stackJSON