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
- Find every PostgreSQL or Aurora PostgreSQL instance that runs Babelfish. Look for anything that accepts TDS connections, by default on port 1433.
- For Aurora, note the cluster engine version and the included Babelfish version. Compare them with the lists above and the fixed list below.
- 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. - 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:
- Install the new binaries.
- Start the new server.
- From a single session on the PostgreSQL endpoint, as the extension owner, update the extensions in this order:
ALTER EXTENSION "babelfishpg_common" UPDATE;
thenALTER 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.
