InfraRunBook
    Back to articles

    CVE-2026-119923: AWS Babelfish for PostgreSQL TDS prelogin heap buffer overflow - affected versions and fix

    CVE Advisories
    Published: Nov 6, 2026
    Updated: Nov 6, 2026

    CVE-2026-119923 is a critical heap-based buffer overflow in the TDS prelogin parser of Babelfish for PostgreSQL and Amazon Aurora PostgreSQL with Babelfish. An unauthenticated remote attacker could run OS commands as the database process user. Upgrade, and restrict the TDS port until you do.

    CVE-2026-119923: AWS Babelfish for PostgreSQL TDS prelogin heap buffer overflow - affected versions and fix

    At a glance

    • CVE ID(s): CVE-2026-119923
    • Severity: CVSS 3.1 score 9.8 (CRITICAL), vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. CVSS 4.0 score 9.3 (CRITICAL), vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N. Both scores come from AMZN.
    • Vendor / product: AWS Babelfish for PostgreSQL extension, and Amazon Aurora PostgreSQL with Babelfish
    • Affected versions: Babelfish for PostgreSQL extension 1.0-1.5, 2.1-2.15, 3.1-3.12, 4.0-4.8 and 5.1-5.4. Aurora PostgreSQL with Babelfish: many builds across the 1.x to 6.x lines, listed under Who is affected.
    • Fixed / patched versions: Babelfish extension 4.10, 5.6, 6.1 or later. Aurora: a fixed Aurora PostgreSQL release, listed under How to fix and recover.
    • Exploited in the wild: No known exploitation (not listed in CISA KEV)
    • Attack vector: Network. No authentication needed. No user interaction.
    • Published by: AMZN (Amazon), 2026-11-06
    • Official advisory: AWS Security Bulletin 2026-166-AWS

    What is this vulnerability?

    Babelfish lets PostgreSQL understand the SQL Server wire protocol, called TDS. That lets SQL Server applications connect without changing drivers.

    CVE-2026-119923 is a heap-based buffer overflow (CWE-122) in the TDS prelogin parser. Prelogin is the first exchange in a TDS connection. It happens before any login. A specially crafted, malformed prelogin packet sent to the TDS port can trigger the overflow.

    The CVE record says this could let a remote attacker execute arbitrary OS commands as the database process user. The record also says it consolidates a related NULL-pointer-dereference finding in the same parser.

    The AWS bulletin describes the flaw more generally. It calls it a memory-safety issue in TDS connection-handshake handling. It says this could affect the confidentiality, integrity and availability of the database process.

    The same bulletin also covers CVE-2026-119924, a separate issue in TDS remote-procedure-call handling. The bulletin describes it as needing an authenticated actor. This article covers only CVE-2026-119923. Read the bulletin for the other CVE.

    How does it affect you?

    The attack needs only network reach to the TDS port. The default port is 1433. It needs no credentials and no user action. The attack complexity is low. That is why both CVSS scores are critical.

    If an attacker succeeds, they run commands as the database process user. From there they could read or change data and take the database down. What else they could reach depends on that user's permissions and on your network layout.

    Realistic risk depends on exposure:

    • A TDS port reachable from the internet is the worst case.
    • A TDS port reachable from a large internal network is still serious. Any compromised host on that network could attack it.
    • A TDS port limited to a few known application servers lowers the risk a lot. It does not remove it.

    The advisory does not report exploitation in the wild. The CVE is not listed in CISA KEV. Treat this as a patch-now item anyway, because the bug is unauthenticated and the bulletin is public.

    Who is affected?

    You are affected if you run Babelfish for PostgreSQL, or Aurora PostgreSQL with Babelfish enabled, on an affected version.

    Babelfish for PostgreSQL extension:

    • 1.0-1.5
    • 2.1-2.15
    • 3.1-3.12
    • 4.0-4.8
    • 5.1-5.4

    Amazon Aurora PostgreSQL with Babelfish (Babelfish version), as listed in the AWS bulletin:

    • 1.x: below 1.5.5; 1.6.0 up to below 1.17.2
    • 2.x: below 2.3.5; 2.4.0 up to below 2.12.4; 2.13.0 up to below 2.13.3; 2.14.0 up to below 2.14.2; 2.15.0 up to below 2.15.2; 2.16.0 up to below 2.16.1
    • 3.x: below 3.8.4; 3.9.0 up to below 3.9.4; 3.10.0 up to below 3.10.3; 3.11.0 up to below 3.11.2; 3.12.0 up to below 3.12.2; 3.13.0 up to below 3.13.1
    • 4.x: below 4.5.5; 4.6.0 up to below 4.6.3; 4.7.0 up to below 4.7.2; 4.8.0 up to below 4.8.2; 4.9.0 up to below 4.9.1
    • 5.x: below 5.1.4; 5.2.0 up to below 5.2.3; 5.3.0 up to below 5.3.2; 5.4.0 up to below 5.4.2; 5.5.0
    • 6.x: 6.0.0 up to below 6.0.2

    You are not affected if Babelfish is not installed or enabled. The advisory marks other products as unaffected by default.

    How to check if you are vulnerable

    1. Find every PostgreSQL or Aurora PostgreSQL instance that runs Babelfish. Look for anything that accepts TDS connections, by default on port 1433.
    2. For Aurora, note the cluster engine version and the included Babelfish version. Compare them with the lists above and the fixed list below.
    3. For self-managed Babelfish, connect to the PostgreSQL endpoint of the Babelfish database and run
      \dx
      . The output shows the installed versions of the babelfishpg_common and babelfishpg_tsql extensions. Compare them with the affected ranges.
    4. Check who can reach the TDS port. Review VPC security groups, firewalls and routing. An affected version with a wide-open TDS port is your top priority.
    \dx
    

    Run that from the PostgreSQL port, not the TDS port.

    How to fix and recover

    Self-managed Babelfish for PostgreSQL: upgrade to extension version 4.10, 5.6 or 6.1 or later. Pick the line that matches your PostgreSQL major version. The fixed releases are:

    • Babelfish 4.10.0 for PostgreSQL 16.14
    • Babelfish 5.6.0 for PostgreSQL 17.10
    • Babelfish 6.1.0 for PostgreSQL 18.4

    For a minor upgrade within the same line, the release notes give these steps:

    1. Install the new binaries.
    2. Start the new server.
    3. From a single session on the PostgreSQL endpoint, as the extension owner, update the extensions in this order:
      ALTER EXTENSION "babelfishpg_common" UPDATE;
      then
      ALTER EXTENSION "babelfishpg_tsql" UPDATE;

    The release notes say a dump and restore is not needed for these minor upgrades. Moving across major versions uses the pg_upgrade module. Read the release notes first. The 4.10.0 and 5.6.0 release notes list many fixes. They do not call out this CVE by name, so rely on the AWS bulletin for the security link.

    Amazon Aurora PostgreSQL with Babelfish: upgrade the cluster to one of these Aurora PostgreSQL versions (Babelfish version in parentheses) or later. Then apply any pending maintenance so you are on the latest patch.

    13.9.16 (1.5.5), 13.23.3 (1.17.2)
    14.6.16 (2.3.5), 14.17.8 (2.12.4), 14.18.6 (2.13.3), 14.19.5 (2.14.2),
    14.20.5 (2.15.2), 14.22.3 (2.16.1), 14.23.1 (2.17.0)
    15.10.8 (3.8.4), 15.12.8 (3.9.4), 15.13.6 (3.10.3), 15.14.5 (3.11.2),
    15.15.5 (3.12.2), 15.17.3 (3.13.1), 15.18.1 (3.14.0)
    16.8.8 (4.5.5), 16.9.6 (4.6.3), 16.10.5 (4.7.2), 16.11.5 (4.8.2),
    16.13.3 (4.9.1), 16.14.1 (4.10.0)
    17.4.8 (5.1.4), 17.5.6 (5.2.3), 17.6.5 (5.3.2), 17.7.5 (5.4.2),
    17.9.3 (5.5.1), 17.10.1 (5.6.0)
    18.3.4 (6.0.2), 18.4.1 (6.1.0)
    

    After patching:

    • Confirm the Aurora engine and Babelfish versions, or the output of
      \dx
      , match a fixed version.
    • Confirm applications still connect over TDS.

    If you think the port was exposed: the advisory reports no exploitation, but nothing in it rules out an attempt. Because the impact is OS command execution as the database user, take these steps:

    • Review database, OS and network logs for the period the TDS port was reachable.
    • Look for unexpected crashes, restarts, new processes, new files or outbound connections from the database host.
    • Rotate database credentials and any secrets stored on or reachable from the host if you find signs of compromise.
    • Rebuild or restore the host from a known-good state if you find signs of compromise.

    Workarounds and mitigations

    The advisory gives one workaround: restrict network access to the TDS port (default 1433). On AWS, use VPC security groups to allow only trusted sources until the upgrade is applied.

    • Remove any rule that opens the TDS port to the internet or to broad ranges.
    • Allow only the application servers and admin hosts that need TDS.
    • If you use host firewalls or network ACLs, apply the same limits there.

    This reduces who can reach the parser. It does not fix the flaw. Hosts you still allow can still send the packet. Upgrade as soon as you can.

    What to monitor

    • Connections to the TDS port from sources outside your approved list.
    • Many short or failed TDS connections that never reach login. They could mean probing of the prelogin stage.
    • Unexpected restarts or crashes of the database process. The bulletin notes the flaw can affect availability.
    • New or unusual child processes, files or outbound connections from the database host.
    • Changes to security group or firewall rules around the TDS port.
    • The AWS bulletin and the CISA KEV catalog for updates on exploitation.

    References

    Frequently Asked Questions

    Does CVE-2026-119923 need a login to exploit?

    No. The CVSS vector shows no privileges and no user interaction. The flaw is in the prelogin parser, which runs before authentication. Any host that can reach the TDS port could send the malformed packet.

    Is CVE-2026-119923 being exploited in the wild?

    There is no known exploitation. The CVE is not listed in CISA's Known Exploited Vulnerabilities catalog. Patch anyway, because it is a critical, unauthenticated flaw.

    Which Babelfish versions fix CVE-2026-119923?

    For the Babelfish for PostgreSQL extension, upgrade to 4.10, 5.6, 6.1 or later. For Aurora PostgreSQL with Babelfish, upgrade the cluster to a fixed Aurora release listed in the AWS bulletin, such as 16.14.1 (4.10.0), 17.10.1 (5.6.0) or 18.4.1 (6.1.0), or later. Apply any pending maintenance too.

    What can I do if I cannot patch right away?

    Restrict network access to the TDS port (default 1433) to trusted sources. On AWS, use VPC security groups. This lowers exposure but does not remove the flaw.

    Does this bulletin cover other CVEs?

    Yes. AWS bulletin 2026-166-AWS also covers CVE-2026-119924, a memory-safety issue in TDS remote-procedure-call handling that the bulletin says needs an authenticated actor. Read the bulletin for its details.

    Related Articles

    CVE-2026-123903: VMware vCenter Server authentication bypass - affected versions and fix

    CVE-2026-123903 is a critical (CVSS 9.8) authentication bypass in the VMware Directory Service used by VMware vCenter Server. Broadcom lists fixed releases for vCenter 9.1, 9.0 and 8.0, VMware Cloud Foundation 5.x and the Telco Cloud products.

    CVE-2026-123910, CVE-2026-123911, CVE-2026-123912: VMware ESX critical I/O filter and XHCI flaws - affected versions and fix

    Broadcom disclosed three critical VMware ESX flaws: two in the I/O filter service (CVSS 9.8, network-reachable, no authentication) and one in the XHCI USB controller (CVSS 9.3). Fixed builds are available for ESX 9.1, 9.0 and 8.0, VCF 5.x and Telco Cloud Platform.

    CVE-2026-136412: OpenResty stream-lua-nginx-module use-after-free via receiveuntil() - affected versions and fix

    CVE-2026-136412 is a use-after-free in OpenResty stream-lua-nginx-module before 0.0.20rc4. A garbage-collected receiveuntil() iterator can leave a stale pointer that crashes or corrupts the nginx worker. Upgrade to 0.0.20rc4 or later.

    CVE-2026-123172: SolarWinds Serv-U privilege escalation to root on Linux - affected versions and fix

    CVE-2026-123172 is a privilege escalation flaw in SolarWinds Serv-U 2026.3 and earlier. It can lead to root on Linux installs, and the risk is lower on Windows. SolarWinds fixed it in Serv-U 2026.4.

    CVE-2026-82321 and 7 more: SolarWinds Serv-U privilege escalation flaws - affected 2026.3 and below, fixed in 2026.4

    SolarWinds disclosed eight privilege escalation flaws in Serv-U 2026.3 and earlier. Each lets a domain administrator or higher gain more access. SolarWinds fixed all eight in Serv-U 2026.4. No exploitation is known.

    CVE-2026-134624: N-able MailAssure (SpamExperts) SSRF in relay LDAP sync check - affected versions and fix

    CVE-2026-134624 is a server-side request forgery flaw in N-able MailAssure (SpamExperts) before 20261121.1943. An authenticated API user can make the server probe internal hosts and ports and send crafted data to internal services. It is listed in CISA KEV.

    CVE-2026-119923: AWS Babelfish for PostgreSQL TDS prelogin heap buffer