CVE-2026-18024

PostgreSQL ascii() function reads past end of buffer

Published Aug 13, 2026 CVSS 3.1 · 4.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability is a buffer over-read in the ascii() function of PostgreSQL, which allows a crafted text value to expose up to three bytes past the end of the intended buffer. This flaw can reveal parts of memory that may contain sensitive data and therefore constitutes a confidentiality risk, though the impact is limited by the small amount of data that can be read.

Affected Systems

The affected instances are PostgreSQL releases before 18.6, 17.11, 16.15, 15.19, and 14.24. All these versions allow the described flaw when an attacker supplies a specially crafted string to the ascii() function.

Risk and Exploitability

The CVSS score of 4.3 indicates moderate severity. EPSS < 1% indicates the exploitation likelihood is very low. The vulnerability is not listed in CISA's KEV catalog. Attackers would need the ability to execute arbitrary SQL commands against the database, implying either an authenticated privileged user or some form of SQL injection in a broader context. The risk is confined to the affected database instance, with no remote code execution or denial of service effect reported.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade PostgreSQL to a version that includes the fix (at least PostgreSQL 15.19, 16.15, 17.11, 18.6, or 14.24).
  • Restrict database user privileges to limit the ability to run arbitrary SQL that could trigger the ascii() function on user-supplied data.
  • Limit the database’s exposure to external networks by using firewalls or VPNs to ensure only trusted hosts can connect.

Generated by OpenCVE AI on August 30, 2026 at 01:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4740-1 postgresql-15 security update
Debian DSA Debian DSA DSA-6438-1 postgresql-17 security update
Ubuntu USN Ubuntu USN USN-8653-1 PostgreSQL vulnerabilities
History
Type Values Removed Values Added
Description 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.5, 17.11, 16.15, 15.19, and 14.24 are affected. 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.
Type Values Removed Values Added
CPEs cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Postgresql
Postgresql postgresql
Vendors & Products Postgresql
Postgresql postgresql
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.5, 17.11, 16.15, 15.19, and 14.24 are affected.
Title PostgreSQL ascii() function reads past end of buffer
Weaknesses CWE-126
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Aug 29, 2026, 11:07 PM
Reserved
Jul 28, 2026, 1:59 AM
Status
Modified
Published
Aug 13, 2026, 1:17 PM
Modified
Aug 29, 2026, 11:17 PM