Skip to main content
VulnerabilityPublished Updated

CVE-2026-40342: FirebirdSQL firebird · Path Traversal

Affects FirebirdSQL firebirdSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 10.0 Critical · fixed in 5.0.4 : patch FirebirdSQL firebird as a priority.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 3.1 base score
10.0Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 52% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.0.4, 4.0.7, 3.0.14
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade firebird and firebirdsql/firebird to 5.0.4, 4.0.7 or 3.0.14.

Affected software

ProductAffectedFixed in
FirebirdSQLfirebirdAffected
  • >=5.0.0 <5.0.4
Fixed in
  • 5.0.4
FirebirdSQLfirebirdAffected
  • >=4.0.0 <4.0.7
Fixed in
  • 4.0.7
FirebirdSQLfirebirdAffected
  • <3.0.14
Fixed in
  • 3.0.14
GitHubfirebirdsql/firebirdpkg:github/firebirdsql/firebirdOther threatsAffected
  • <3.0.14
  • <4.0.7
  • <5.0.4
Fixed in
  • 3.0.14
  • 4.0.7
  • 5.0.4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

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.

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.

References

Community reviews

Loading reviews…