PT-2026-40034 · Hexpm · Postgrex

Peter Ullrich

·

Published

2026-05-12

·

Updated

2026-05-18

·

CVE-2026-32687

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions postgrex versions 0.16.0 through 0.22.1
Description An SQL Injection issue exists in the Elixir.Postgrex.Notifications module. The channel argument passed to the functions listen/3() and unlisten/3() is interpolated directly into SQL statements without escaping the double quote character. This allows an attacker who can influence the channel name to break out of the quoted identifier and append arbitrary SQL. Since the notifications connection utilizes the PostgreSQL simple query protocol, multi-statement payloads are accepted, enabling the chaining of Data Definition Language (DDL) and Data Manipulation Language (DML) commands. This unsanitized interpolation also occurs in the handle connect/1() function during the replay of commands after a reconnection.
Recommendations Update to version 0.22.2.

Fix

SQL injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-32687
GHSA-R73H-97W8-M54H

Affected Products

Postgrex