8.8

CVE-2026-6477: postgresql Use of Inherently Dangerous Function

CVSS: 8.8v3.1HighModified
AliasesALPINE-CVE-2026-6477RHSA-2026:44308RHSA-2026:44391
Published 14-05-2026Last modified 25-08-2026

Vulnerability summary

CVE-2026-6477 is a high (CVSS 8.8) Use of Inherently Dangerous Function vulnerability in postgresql. EPSS estimates a 0.45% chance of exploitation in the next 30 days, higher than 38.3% of scored vulnerabilities.

Overall risk
35/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.45%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 47 · Related 15

Timeline

  1. 14-05-2026
    PublishedVulnerability first disclosed.
  2. 25-08-2026
    Last modifiedVulnerability information updated.

Description

Use of inherently dangerous function PQfn(..., result_is_int=0, ...) in PostgreSQL libpq lo_export(), lo_read(), lo_lseek64(), and lo_tell64() functions allows the server superuser to overwrite a client stack buffer with an arbitrarily-large response. Like gets(), PQfn(..., result_is_int=0, ...) stores arbitrary-length, server-determined data into a buffer of unspecified size. Because both the \lo_export command in psql and pg_dump call lo_read(), the server superuser can overwrite pg_dump or psql stack memory. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.

CVSS metrics

6 scores · 6 sources · 1 version

EPSS trend

Probability

0.45%

Chance of exploitation in the next 30 days

Percentile

38%

Versus all other CVEs

30-day change

0.00 pp

From 0.45% on 21-09-2026

21-09-202621-10-2026
EPSS score
0.45%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Ubuntu8 products
  • postgresql-10All versions (No fix recorded)
  • postgresql-12All versions (No fix recorded)
  • postgresql-14< 14.23-0ubuntu0.22.04.1
  • postgresql-16< 16.14-0ubuntu0.24.04.1
  • postgresql-17< 17.10-0ubuntu0.25.10.1
Redhat5 products
  • libpq< 0:13.23-3.el9_8 | < 0:16.14-1.el10_2 | < 0:13.23-1.el8_6.1 | < 0:13.23-1.el9_2.1 | < 0:13.23-1.el9_4.1 | < 0:13.23-1.el9_6.1 | < 0:16.14-0.el10_0.1
  • libpq-debuginfo< 0:13.23-3.el9_8 | < 0:16.14-1.el10_2 | < 0:13.23-1.el8_6.1 | < 0:13.23-1.el9_2.1 | < 0:13.23-1.el9_4.1 | < 0:13.23-1.el9_6.1 | < 0:16.14-0.el10_0.1
  • libpq-debugsource< 0:13.23-3.el9_8 | < 0:16.14-1.el10_2 | < 0:13.23-1.el8_6.1 | < 0:13.23-1.el9_2.1 | < 0:13.23-1.el9_4.1 | < 0:13.23-1.el9_6.1 | < 0:16.14-0.el10_0.1
  • libpq-devel< 0:13.23-3.el9_8 | < 0:16.14-1.el10_2 | < 0:13.23-1.el8_6.1 | < 0:13.23-1.el9_2.1 | < 0:13.23-1.el9_4.1 | < 0:13.23-1.el9_6.1 | < 0:16.14-0.el10_0.1
  • libpq-devel-debuginfo< 0:13.23-3.el9_8 | < 0:16.14-1.el10_2 | < 0:13.23-1.el8_6.1 | < 0:13.23-1.el9_2.1 | < 0:13.23-1.el9_4.1 | < 0:13.23-1.el9_6.1 | < 0:16.14-0.el10_0.1
Alpine4 products
  • postgresql15< 15.18-r0
  • postgresql16< 16.14-r0
  • postgresql17< 17.10-r0
  • postgresql18< 18.4-r0
Debian3 products
  • postgresql-15< 15.18-0+deb12u1
  • postgresql-17< 17.10-0+deb13u1
  • postgresql-18< 18.4-1
Postgresql1 product
  • postgresql< 14.23 | ≥ 15.0, < 15.18 | ≥ 16.0, < 16.14 | ≥ 17.0, < 17.10 | ≥ 18.0, < 18.4

5 vendors · 21 products

References

61 links
Show all 61 references