---
id: CVE-2026-18024
title: >-
  Buffer over-read in PostgreSQL ascii() SQL function allows a user to disclose
  up to 3 bytes after the end of a specific allocation, via a crafted text value
summary: >-
  Buffer over-read in PostgreSQL ascii() SQL function allows a user to disclose
  up to 3 bytes after the end of a specific allocation, via a crafted text
  value.  This is the same class of defect that CVE-2026-2006 fixed, though this
  instanc…
severity: medium
cvss: 4.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'
cwe:
  - CWE-126
vendor: postgresql
product: postgresql
affected:
  - 'postgresql >= 14.0, < 14.24'
  - 'postgresql >= 15.0, < 15.19'
  - 'postgresql >= 16.0, < 16.15'
  - 'postgresql >= 17.0, < 17.11'
  - 'postgresql >= 18.0, < 18.5'
patched:
  - postgresql 18.5
published: '2026-08-13'
updated: '2026-08-29'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-18024'
references:
  - url: 'https://www.postgresql.org/support/security/CVE-2026-18024/'
    label: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
tags:
  - nvd
epss: 0.00195
epssPercentile: 0.08267
ingestedAt: '2026-08-29T23:43:53.790Z'
---

## Overview

Buffer over-read in PostgreSQL ascii() SQL function allows a user to disclose up to 3 bytes after the end of a specific allocation, via a crafted text value.  This is the same class of defect that CVE-2026-2006 fixed, though this instance has less impact.  Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.

## Affected

- `postgresql >= 14.0, < 14.24`
- `postgresql >= 15.0, < 15.19`
- `postgresql >= 16.0, < 16.15`
- `postgresql >= 17.0, < 17.11`
- `postgresql >= 18.0, < 18.5`

## Remediation

Upgrade past the affected range:

- `postgresql 18.5`
