CVE Watchtower

CVE-2026-40342Firebirdsql Firebird Path Traversal

NVDCVSS scored by security-advisories@github.com

Vulnerability Summary

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 Level
CRITICAL(9.9)
Published Date
Apr 17, 2026
Last Modified
Oct 26, 2026
Exploitation Status
Public exploit available
EPSS Score (30-Day)
0.71%Probability
Root Weakness (CWE)
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory.
See the MITRE CWE entry for the full definition of this weakness.
The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended syntax or behavior.
The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.
CVSS v3.1 Base Metrics — Score 9.9 (CRITICAL)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeChanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • Firebirdsql Firebird < 3.0.14
  • Firebirdsql Firebird >= 4.0.0 and < 4.0.7
  • Firebirdsql Firebird >= 5.0.0 and < 5.0.4
Patched Versions
  • Firebirdsql Firebird 3.0.14
  • Firebirdsql Firebird 4.0.7
  • Firebirdsql Firebird 5.0.4

What to do

Prioritize this fix. Exploit code is public, so attacks can follow quickly.

  1. Check whether you run Firebirdsql Firebird and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. Review logs and exposed services for signs of earlier compromise.

Timeline

  • Apr 17, 2026Published
  • Oct 26, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Firebirdsql Firebird CVEsYou are reading CVE-2026-40342. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 19, 2026 21:40 UTC