CVE-2025-24975
📋 TL;DR
Firebird database servers with external connection pooling enabled (ExtConnPoolSize not set to 0) are vulnerable to a segmentation fault that can crash the server process. This affects encrypted databases accessed via execute statements and may also impact unencrypted databases. Organizations running vulnerable Firebird versions with external connection pooling configured are at risk.
💻 Affected Systems
- Firebird SQL Database Server
📦 What is this software?
Firebird by Firebirdsql
Firebird by Firebirdsql
⚠️ Risk & Real-World Impact
Worst Case
Server process crashes (segfault) leading to denial of service, potentially disrupting database availability and affecting dependent applications.
Likely Case
Database server crashes when specific conditions involving encrypted databases and execute statements are met, causing service disruption.
If Mitigated
With ExtConnPoolSize=0 or patched versions, no impact - the vulnerability is completely mitigated.
🎯 Exploit Status
Exploitation requires specific conditions: external connection pooling enabled, encrypted databases, and execute statement operations. No public exploit code has been identified.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 4.0.6.3183, 5.0.2.1610, 6.0.0.609 or point releases 4.0.6 and 5.0.2
Vendor Advisory: https://github.com/FirebirdSQL/firebird/security/advisories/GHSA-fx9r-rj68-7p69
Restart Required: Yes
Instructions:
1. Download patched version from Firebird website. 2. Backup databases and configuration. 3. Stop Firebird service. 4. Install updated version. 5. Restart Firebird service. 6. Verify version with isql -z.
🔧 Temporary Workarounds
Disable External Connection Pooling
allSet ExtConnPoolSize to 0 to disable the vulnerable feature
Edit firebird.conf and set: ExtConnPoolSize = 0
Restart Firebird service
🧯 If You Can't Patch
- Set ExtConnPoolSize = 0 in firebird.conf configuration file
- Monitor for server crashes and segfaults in system logs
🔍 How to Verify
Check if Vulnerable:
Check firebird.conf for ExtConnPoolSize setting (if not 0, vulnerable) and verify Firebird version is below patched versions
Check Version:
isql -z (on Linux/Unix) or fbsvcmgr info_server_version (on Windows)
Verify Fix Applied:
Confirm ExtConnPoolSize=0 in firebird.conf OR verify Firebird version is 4.0.6.3183+, 5.0.2.1610+, or 6.0.0.609+
📡 Detection & Monitoring
Log Indicators:
- Segmentation fault errors in Firebird logs
- Server crash/restart events
- Error messages related to CryptCallback interface
Network Indicators:
- Unexpected database connection drops
- Application errors due to database unavailability
SIEM Query:
source="firebird.log" AND ("segfault" OR "segmentation fault" OR "cryptcallback")
🔗 References
- https://github.com/FirebirdSQL/firebird/commit/658abd20449f72097fbbce57e8e6ae42ff837fb6
- https://github.com/FirebirdSQL/firebird/issues/8429
- https://github.com/FirebirdSQL/firebird/security/advisories/GHSA-fx9r-rj68-7p69
- https://www.vicarius.io/vsociety/posts/cve-2025-24975-detect-vulnerable-firebird
- https://www.vicarius.io/vsociety/posts/cve-2025-24975-mitigate-firebird-vulnerability