CVEBrief

Home / elixir-ecto / postgrex / CVE-2026-32687

CVE-2026-32687: is it exploited, and which versions of elixir-ecto postgrex are affected and fixed?

CVE-2026-32687 is a SQL injection vulnerability in elixir-ecto postgrex. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: postgrex from 0.16.0 before 0.22.2 (GitHub advisory GHSA-r73h-97w8-m54h). Fixed in 0.22.2 (GitHub advisory GHSA-r73h-97w8-m54h). Severity: High (7.5, CVSS 4.0, from EEF).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 20, 2026, 05:19 UTC and NVD November 20, 2026, 07:04 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 12:38 UTC
Affected
postgrex from 0.16.0 before 0.22.2
GitHub advisory GHSA-r73h-97w8-m54h
Fixed in
0.22.2
GitHub advisory GHSA-r73h-97w8-m54h
Severity
High 7.5
CVSS 4.0 from EEF
Exploit odds (EPSS)
0.20% in 30 days
higher than 10% of CVEs; FIRST, December 2, 2026

What is CVE-2026-32687?

SQL injection via channel name in Postgrex.Notifications.listen/3 and unlisten/3

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in elixir-ecto postgrex (Postgrex.Notifications module) allows SQL Injection. The channel argument passed to Postgrex.Notifications.listen/3 and Postgrex.Notifications.unlisten/3 is interpolated directly into LISTEN "..." / UNLISTEN "..." SQL statements without escaping the " character. An attacker who can influence the channel name can inject a " to break out of the quoted identifier and append arbitrary SQL. Because the notifications connection uses the PostgreSQL simple query protocol, multi-statement payloads are accepted, allowing DDL and DML commands to be chained (e.g. ; DROP TABLE ...; --). The same unsanitized interpolation also occurs in handle_connect/1 when replaying LISTEN commands after a reconnect. This vulnerability is associated with program file lib/postgrex/notifications.ex and program routines Postgrex.Notifications.listen/3, Postgrex.Notifications.unlisten/3, Postgrex.Notifications.handle_connect/1. This issue affects postgrex: from 0.16.0 before 0.22.2.

From the CVE record by EEF, last updated November 20, 2026, 05:14 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
elixir-ectopostgrexfrom 0.16.0 before 0.22.20.22.2
elixir-ectopostgrex elixir-ecto/postgrexnot stated

As the CVE record by EEF states it, last updated November 20, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
Hexpostgrex>= 0.16.0, < 0.22.20.22.2GHSA-r73h-97w8-m54h

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 18, 2026. Summary: Postgrex: Channel-name SQL injection in `Postgrex.Notifications.listen/3`.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
elixir-ectopostgrexfrom 0.16.0 before 0.22.0application

NVD analysis (status Modified), last modified November 20, 2026, 06:17 UTC.

How severe is CVE-2026-32687?

ScoreVersionVectorSource
High 7.5CVSS 4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NEEF
High 7.8CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2026-32687 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: total (CISA ADP, May 12, 2026)
EPSS
0.20% probability of exploitation activity in the next 30 days, percentile 10.1 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

Who found and reported it?

As published in the CVE record; contact details are removed.

When was it published, and where is the official record?

Reserved
March 13, 2026
Published
May 12, 2026, 14:18 UTC
CVE record updated
November 20, 2026, 05:14 UTC by EEF
NVD
Modified, last modified November 20, 2026, 06:17 UTC
Last checked
CVE list November 20, 2026, 05:19 UTC; NVD November 20, 2026, 07:04 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect postgrex?

Every CVE in postgrex

Questions about CVE-2026-32687

Is CVE-2026-32687 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.20% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of elixir-ecto postgrex are affected by CVE-2026-32687?

postgrex from 0.16.0 before 0.22.2, per the GitHub advisory GHSA-r73h-97w8-m54h. The tables above give every range the sources list.

Which version fixes CVE-2026-32687?

0.22.2, per the GitHub advisory GHSA-r73h-97w8-m54h. Check the vendor's advisory before you rely on it.

How severe is CVE-2026-32687?

High (7.5, CVSS 4.0, from EEF). The severity table above shows each score with its source.

Where is the official record of CVE-2026-32687?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.