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.
Published: 2026-08-13
Score: 4.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.5, 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 is not available, suggesting the exploitation likelihood is not well quantified but may be 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.

Generated by OpenCVE AI on August 13, 2026 at 15:03 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade PostgreSQL to a version that includes the fix (at least PostgreSQL 15.19, 16.15, 17.11, 18.5, 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 13, 2026 at 15:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 13 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 13 Aug 2026 13:15:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: PostgreSQL

Published:

Updated: 2026-08-13T15:39:03.530Z

Reserved: 2026-07-28T01:59:49.926Z

Link: CVE-2026-18024

cve-icon Vulnrichment

Updated: 2026-08-13T15:38:55.256Z

cve-icon NVD

Status : Received

Published: 2026-08-13T13:17:47.880

Modified: 2026-08-13T16:17:58.313

Link: CVE-2026-18024

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T15:15:13Z

Weaknesses