Patch Ticker

Babelfish for PostgreSQL TDS prelogin parser heap overflow allows remote command execution

A PostgreSQL database add-on has a flaw that lets remote attackers take over the server!

Summary

A heap-based buffer overflow in the TDS prelogin parser of the Babelfish for PostgreSQL extension and Amazon Aurora PostgreSQL with Babelfish lets a remote attacker run OS commands as the database process user. Several earlier versions are affected.

Affected when

  • Babelfish for PostgreSQL extension in use
  • TDS port (default 1433) reachable over the network

What to do

Update to Babelfish 4.10.0, 5.6.0, or 6.1.0 or later. Aurora clusters should move to the listed release for their line and apply pending maintenance. Until then, restrict network access to the TDS port (default 1433).

Update to at least the version for your product:

  • babelfish-for-postgresql 4.x 4.10.0 or later
  • babelfish-for-postgresql 5.x 5.6.0 or later
  • babelfish-for-postgresql 6.x 6.1.0 or later

Products and platforms

  • Amazon Aurora PostgreSQL with Babelfish
  • babelfish-for-postgresql

CVE IDs

Sources

Times

First published

First seen