CVEfocus › CVE database › CVE-2026-40342

CVE-2026-40342Firebird: Path Traversal + Arbitrary File Write Leads to Remote Code Execution

CVSS 10.0 CriticalEPSS 0.7% (higher than 54% of CVEs)Published 2026-04-17Updated 2026-04-22Assigner: GitHub_M

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.

CWE-22CWE-427CWE-73CWE-94

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
10Fix pending
1Under investigation
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10firebird3.0Fix pendingUBUNTU-CVE-2026-40342
Ubuntu 26.10firebird4.0Fix pendingUBUNTU-CVE-2026-40342
Ubuntu 26.04firebird3.0Fix pendingUBUNTU-CVE-2026-40342
Ubuntu 26.04firebird4.0Fix pendingUBUNTU-CVE-2026-40342
Ubuntu 25.10firebird3.0Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-40342
Ubuntu 25.10firebird4.0Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-40342
Ubuntu 24.04firebird3.0Fix pendingUBUNTU-CVE-2026-40342
Ubuntu 22.04firebird3.0Under investigationUBUNTU-CVE-2026-40342
Ubuntu 20.04firebird3.0Fix pendingUBUNTU-CVE-2026-40342
Ubuntu 18.04firebird3.0Fix pendingUBUNTU-CVE-2026-40342
Debian 14firebird3.0Fixed3.0.14.ds7-1DEBIAN-CVE-2026-40342
Debian 14firebird4.0Fixed4.0.7.3271.ds6-1DEBIAN-CVE-2026-40342
Debian 13firebird3.0Fix pendingDEBIAN-CVE-2026-40342
Debian 13firebird4.0Fix pendingDEBIAN-CVE-2026-40342
Debian 12firebird3.0Fix pendingDEBIAN-CVE-2026-40342

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.