ubuntu-cve-2026-40342
Vulnerability from osv_ubuntu
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.
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "firebird3.0-common",
"binary_version": "3.0.2.32703.ds4-11ubuntu2"
},
{
"binary_name": "firebird3.0-examples",
"binary_version": "3.0.2.32703.ds4-11ubuntu2"
},
{
"binary_name": "firebird3.0-server",
"binary_version": "3.0.2.32703.ds4-11ubuntu2"
},
{
"binary_name": "firebird3.0-server-core",
"binary_version": "3.0.2.32703.ds4-11ubuntu2"
},
{
"binary_name": "firebird3.0-utils",
"binary_version": "3.0.2.32703.ds4-11ubuntu2"
},
{
"binary_name": "libfbclient2",
"binary_version": "3.0.2.32703.ds4-11ubuntu2"
},
{
"binary_name": "libib-util",
"binary_version": "3.0.2.32703.ds4-11ubuntu2"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "firebird3.0",
"purl": "pkg:deb/ubuntu/firebird3.0@3.0.2.32703.ds4-11ubuntu2?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.0.2.32703.ds4-9",
"3.0.2.32703.ds4-11ubuntu1",
"3.0.2.32703.ds4-11ubuntu2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "firebird3.0-common",
"binary_version": "3.0.5.33220.ds4-1build2"
},
{
"binary_name": "firebird3.0-examples",
"binary_version": "3.0.5.33220.ds4-1build2"
},
{
"binary_name": "firebird3.0-server",
"binary_version": "3.0.5.33220.ds4-1build2"
},
{
"binary_name": "firebird3.0-server-core",
"binary_version": "3.0.5.33220.ds4-1build2"
},
{
"binary_name": "firebird3.0-utils",
"binary_version": "3.0.5.33220.ds4-1build2"
},
{
"binary_name": "libfbclient2",
"binary_version": "3.0.5.33220.ds4-1build2"
},
{
"binary_name": "libib-util",
"binary_version": "3.0.5.33220.ds4-1build2"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "firebird3.0",
"purl": "pkg:deb/ubuntu/firebird3.0@3.0.5.33220.ds4-1build2?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.0.5.33100.ds4-3",
"3.0.5.33189.ds4-1",
"3.0.5.33209.ds4-1",
"3.0.5.33220.ds4-1",
"3.0.5.33220.ds4-1build1",
"3.0.5.33220.ds4-1build2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "firebird3.0-common",
"binary_version": "3.0.8.33535.ds4-1ubuntu2"
},
{
"binary_name": "firebird3.0-examples",
"binary_version": "3.0.8.33535.ds4-1ubuntu2"
},
{
"binary_name": "firebird3.0-server",
"binary_version": "3.0.8.33535.ds4-1ubuntu2"
},
{
"binary_name": "firebird3.0-server-core",
"binary_version": "3.0.8.33535.ds4-1ubuntu2"
},
{
"binary_name": "firebird3.0-utils",
"binary_version": "3.0.8.33535.ds4-1ubuntu2"
},
{
"binary_name": "libfbclient2",
"binary_version": "3.0.8.33535.ds4-1ubuntu2"
},
{
"binary_name": "libib-util",
"binary_version": "3.0.8.33535.ds4-1ubuntu2"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "firebird3.0",
"purl": "pkg:deb/ubuntu/firebird3.0@3.0.8.33535.ds4-1ubuntu2?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.0.7.33374.ds4-2",
"3.0.8.33535.ds4-1ubuntu1",
"3.0.8.33535.ds4-1ubuntu2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "firebird3.0-common",
"binary_version": "3.0.11.33703.ds4-2ubuntu2"
},
{
"binary_name": "firebird3.0-examples",
"binary_version": "3.0.11.33703.ds4-2ubuntu2"
},
{
"binary_name": "firebird3.0-server",
"binary_version": "3.0.11.33703.ds4-2ubuntu2"
},
{
"binary_name": "firebird3.0-server-core",
"binary_version": "3.0.11.33703.ds4-2ubuntu2"
},
{
"binary_name": "firebird3.0-utils",
"binary_version": "3.0.11.33703.ds4-2ubuntu2"
},
{
"binary_name": "libfbclient2",
"binary_version": "3.0.11.33703.ds4-2ubuntu2"
},
{
"binary_name": "libib-util",
"binary_version": "3.0.11.33703.ds4-2ubuntu2"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "firebird3.0",
"purl": "pkg:deb/ubuntu/firebird3.0@3.0.11.33703.ds4-2ubuntu2?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.0.11.33637.ds4-2ubuntu1",
"3.0.11.33637.ds4-2ubuntu2",
"3.0.11.33703.ds4-2ubuntu1",
"3.0.11.33703.ds4-2ubuntu2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "firebird3.0-common",
"binary_version": "3.0.12.ds7-12"
},
{
"binary_name": "firebird3.0-examples",
"binary_version": "3.0.12.ds7-12"
},
{
"binary_name": "firebird3.0-server",
"binary_version": "3.0.12.ds7-12"
},
{
"binary_name": "firebird3.0-server-core",
"binary_version": "3.0.12.ds7-12"
},
{
"binary_name": "firebird3.0-utils",
"binary_version": "3.0.12.ds7-12"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "firebird3.0",
"purl": "pkg:deb/ubuntu/firebird3.0@3.0.12.ds7-12?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.0.12.ds7-12"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "firebird-utils",
"binary_version": "4.0.6.3221.ds6-2"
},
{
"binary_name": "firebird4.0-common",
"binary_version": "4.0.6.3221.ds6-2"
},
{
"binary_name": "firebird4.0-examples",
"binary_version": "4.0.6.3221.ds6-2"
},
{
"binary_name": "firebird4.0-server",
"binary_version": "4.0.6.3221.ds6-2"
},
{
"binary_name": "firebird4.0-server-core",
"binary_version": "4.0.6.3221.ds6-2"
},
{
"binary_name": "firebird4.0-utils",
"binary_version": "4.0.6.3221.ds6-2"
},
{
"binary_name": "libfbclient2",
"binary_version": "4.0.6.3221.ds6-2"
},
{
"binary_name": "libib-util",
"binary_version": "4.0.6.3221.ds6-2"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "firebird4.0",
"purl": "pkg:deb/ubuntu/firebird4.0@4.0.6.3221.ds6-2?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.0.5.3140.ds6-16",
"4.0.5.3140.ds6-17",
"4.0.6.3221.ds6-2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "firebird3.0-common",
"binary_version": "3.0.13.ds7-2build1"
},
{
"binary_name": "firebird3.0-examples",
"binary_version": "3.0.13.ds7-2build1"
},
{
"binary_name": "firebird3.0-server",
"binary_version": "3.0.13.ds7-2build1"
},
{
"binary_name": "firebird3.0-server-core",
"binary_version": "3.0.13.ds7-2build1"
},
{
"binary_name": "firebird3.0-utils",
"binary_version": "3.0.13.ds7-2build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "firebird3.0",
"purl": "pkg:deb/ubuntu/firebird3.0@3.0.13.ds7-2build1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.0.12.ds7-12",
"3.0.13.ds7-2",
"3.0.13.ds7-2build1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "firebird-utils",
"binary_version": "4.0.6.3221.ds6-2build2"
},
{
"binary_name": "firebird4.0-common",
"binary_version": "4.0.6.3221.ds6-2build2"
},
{
"binary_name": "firebird4.0-examples",
"binary_version": "4.0.6.3221.ds6-2build2"
},
{
"binary_name": "firebird4.0-server",
"binary_version": "4.0.6.3221.ds6-2build2"
},
{
"binary_name": "firebird4.0-server-core",
"binary_version": "4.0.6.3221.ds6-2build2"
},
{
"binary_name": "firebird4.0-utils",
"binary_version": "4.0.6.3221.ds6-2build2"
},
{
"binary_name": "libfbclient2",
"binary_version": "4.0.6.3221.ds6-2build2"
},
{
"binary_name": "libib-util",
"binary_version": "4.0.6.3221.ds6-2build2"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "firebird4.0",
"purl": "pkg:deb/ubuntu/firebird4.0@4.0.6.3221.ds6-2build2?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.0.6.3221.ds6-2",
"4.0.6.3221.ds6-2build1",
"4.0.6.3221.ds6-2build2"
]
}
],
"aliases": [],
"details": "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\u0027s initialization code executes immediately during loading, before Firebird validates the module, achieving code execution as the server\u0027s OS account. This issue has been fixed in versions 5.0.4, 4.0.7 and 3.0.14.",
"id": "UBUNTU-CVE-2026-40342",
"modified": "2026-05-20T15:27:26Z",
"published": "2026-04-17T20:16:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-40342"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-40342"
},
{
"type": "REPORT",
"url": "https://github.com/FirebirdSQL/firebird/security/advisories/GHSA-7pxc-h3rv-r257"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-40342"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.