Impact
A heap-based buffer overflow exists in the TDS prelogin parser of Babelfish for PostgreSQL, allowing attackers to trigger arbitrary OS command execution by sending a malformed TDS prelogin packet, thereby running code as the database process user. The flaw is identified as CWE-122 and could compromise confidentiality, integrity, and availability of the affected database system.
Affected Systems
The vulnerability affects Babelfish for PostgreSQL extension versions 1.0 through 1.5, 2.1 through 2.15, 3.1 through 3.12, 4.0 through 4.8, and 5.1 through 5.4, as well as Amazon Aurora PostgreSQL with Babelfish. Any deployments using these versions are susceptible until an update is applied.
Risk and Exploitability
The CVSS score of 9.3 signifies a high severity. While the EPSS score is not available, the vulnerability is remotely exploitable via the TDS port (default 1433) and is not listed in CISA’s KEV catalog, indicating no known active exploitation. The likely attack vector is a malicious client that sends a crafted prelogin packet to the database, triggering the overflow and granting attackers code execution on the host.
OpenCVE Enrichment