CVE

Babelfish TDS Exposure (CVE-2026-119923)

Map which hosts speak the Babelfish TDS protocol on port 1433 and sort endpoint versions against the AWS bulletin fixes for the prelogin heap overflow.

AuthorTrickest
100%

Notes on this workflow

Parse\nNormalizes targets into one row per (host, port), keeps inventory versions, deduplicates, drops malformed lines. Probing order randomized; database-grade rate limits.

Target\nBabelfish-enabled Aurora PostgreSQL clusters and self-managed Babelfish instances on their TDS port (default 1433). Accepts a targets JSONL or plain host lines; an optional inventory carries the extension version (4.8) or an Aurora cluster version (16.14.1) mapped per the bulletin.

How it works\nAt most 2 connections: one TCP connect to the TDS port, then at most ONE well-formed standards-compliant prelogin (the ordinary SQL Server handshake) — a single module-level constant validated structurally before sending; the equality guard refuses anything else, so malformed/oversized/truncated packets (the exploit trigger) and login sequences (0x01) are unreachable by construction. A prelogin response (type 0x04) yields the VERSION token; version gated against the advisory ranges (1.0-1.5, 2.1-2.15, 3.1-3.12, 4.0-4.8, 5.1-5.4 affected; 4.10/5.6/6.1+ fixed; unlisted minors are UNKNOWN, never safe). Babelfish-vs-genuine-SQL-Server distinction stays a build-phase verification item — the handshake alone never claims Babelfish.

Results\nfindings.jsonl carries every probe field plus enrichment: tds_exposed_affected (CRITICAL), tds_endpoint_version_unknown (HIGH), tds_exposed_fixed / not_tds / not_exposed INFO (including software-affected-but-closed rows with an upgrade-anyway note), error. CVSS 9.8, KEV no, EPSS 0.88%, consolidated NULL-deref DoS noted. Remediation: extension 4.10/5.6/6.1+ or Aurora cluster per the bulletin map; restrict TDS access to trusted networks — exposure of 1433 is the primary misconfiguration.

Overview

This workflow maps Babelfish endpoints, the TDS-compatible surface that lets PostgreSQL clusters accept SQL Server connections, and sorts them against the fixes for CVE-2026-119923. A malformed TDS prelogin packet overflows a heap buffer in the prelogin parser and can run arbitrary commands as the database process user; a NULL-pointer crash in the same parser rides along in the record. AWS disclosed it in November 2026 with no exploitation reported and no KEV listing, but the score is 9.8 and the surface is a database wire protocol, so the practical exposure question is which hosts answer on the TDS port at all. The exploit is a malformed prelogin packet, which the workflow never sends; its probe uses a well-formed, standards-compliant prelogin handshake, the ordinary bytes every SQL Server client sends. Each endpoint comes back with a verdict you can feed into exposure management.

Pipeline

  1. Read the target list and make a TCP connection to the TDS port, default 1433, on each host.
  2. Send one well-formed, standards-compliant TDS prelogin packet, the ordinary handshake a real SQL Server client sends, and read the prelogin response. No malformed packet, no oversized fields, nothing that reaches the vulnerable parser path.
  3. Distinguish the endpoint class from the handshake, but never claim Babelfish is confirmed from the response alone: the Babelfish-versus-SQL-Server distinction is still a live-verification item, so the row records the handshake version and names the out-of-band check.
  4. Classify against the extension version from the inventory where present: an affected version answers as exposed and affected, a fixed version as exposed and fixed, and no usable version stays unknown rather than clean.
  5. Reconcile one verdict per endpoint and write findings plus summary counts.

Inputs

  • Target list. Database host addresses with the TDS port that you are authorized to test. The default file ships a sample host; bind your own.

Outputs

  • findings.jsonl. One row per endpoint: target, the TDS port state, the prelogin handshake result and version, the extension version classification, verdict, and severity.
  • summary.jsonl. One line with the total, verdict counts, and the advisory metadata including the explicit KEV correction.

Integrations

  • TDS over TCP. One connect and one well-formed prelogin handshake per endpoint, the standard client behavior.

Sample output

The records below are illustrative and do not come from a real run. They show a TDS endpoint on an affected extension version, one on a fixed version, and one whose version stays unknown.

targetporttds_connectprelogin_responsehandshake_versionextension_versionverdictdetailerror
db-a.example.com1433openanswered5.45.4tds_exposed_affectedTDS endpoint answers prelogin on an affected extension version; confirm Babelfish and the cluster version out of bandnull
db-b.example.org1433openanswered6.16.1tds_exposed_fixedTDS endpoint answers on a fixed extension versionnull
db-c.example.net1433openanswerednullnulltds_endpoint_version_unknownTDS endpoint answers but no usable version; treat as unknown, not cleannull
{"cve": "CVE-2026-119923", "product": "Babelfish for PostgreSQL (TDS endpoint)", "total_targets": 3, "verdict_counts": {"tds_exposed_affected": 1, "tds_exposed_fixed": 1, "tds_endpoint_version_unknown": 1}, "kev": false, "exploited_in_the_wild": false, "exposure_note": "a refused connect is the only clean; an open endpoint without a version stays unknown"}

FAQ

Is the prelogin handshake safe to send?

Yes. It is the well-formed packet every SQL Server client sends when opening a connection, and the vulnerability fires only on malformed prelogin input, which the workflow never constructs.

Do the exposed verdicts apply to Aurora as well as self-managed Babelfish?

Both, with different blast radius. On Aurora the database process boundary limits what a compromised engine process reaches; on self-managed Babelfish the database process user is a host account. Internet exposure of port 1433 is the primary misconfiguration either way.

Which versions are affected?

The Babelfish extension fixes are 4.10, 5.6, and 6.1 or later, with Aurora PostgreSQL versions mapped in the AWS bulletin. Minor versions the advisory does not list stay unknown, because a gap in the list is never proof of safety. Where the handshake carries no version, verify the cluster or extension version out of band.

What is CVE-2026-119923?

A heap-based buffer overflow in the Babelfish TDS prelogin parser, reachable unauthenticated over the network and capable of running commands as the database process user. AWS disclosed it in November 2026.

Get a personalized demo

See Trickest in Action

A 30-minute walkthrough. We map the platform to your stack and answer pricing and deployment questions for your environment.