Critical Integer Wraparound Vulnerability in PostgreSQL Packages

postgresql17 Updated 15 May 2026

Summary

14/05/2026
N/A
Yes i
High
8.8

ALPINE-CVE-2026-6473: Integer wraparound in multiple PostgreSQL server features allows an unprivileged database user to cause the server to undersize an allocation and write out-of-bounds. Affects postgresql17 versions < 17.10-r0. Fixed in 17.10-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

PostgreSQL is a powerful, open-source relational database management system that uses and extends the SQL language. It is known for its robustness, extensibility, and support for advanced data types. However, certain versions of PostgreSQL are vulnerable to an integer wraparound issue that can lead to severe security risks, allowing unprivileged users to exploit the database server.

Vulnerability Detail

The vulnerability arises from an integer wraparound in multiple PostgreSQL server features, which allows an unprivileged database user to cause the server to undersize an allocation and write out-of-bounds. This can lead to the execution of arbitrary code as the operating system user running the database. In scenarios where applications pass gigabyte-scale user inputs to the database functions, this vulnerability can result in a segmentation fault, potentially compromising the integrity and availability of the database.

How To Fix

Minimum fixed version

17.10-r0

This is the first release that contains the fix.

sudo apk add --upgrade postgresql17

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, consider limiting user input sizes to prevent the exploitation of this vulnerability until the package can be updated. Implement input validation to ensure that user inputs do not exceed expected limits.

Conclusion

The integer wraparound vulnerability in PostgreSQL poses significant risks to database security, allowing unprivileged users to exploit the system. It is crucial to update to the latest patched versions to mitigate these risks and ensure the integrity of your database applications.

See every vulnerability recorded for postgresql17 →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 8.8, indicating a high level of severity.

Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Exploitation of this vulnerability can lead to arbitrary code execution, segmentation faults, and potential data breaches.

Yes, Vulert can monitor and alert in real-time for open-source vulnerabilities in your software using just a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for postgresql17.

How To Fix

Minimum fixed version

17.10-r0

This is the first release that contains the fix.

sudo apk add --upgrade postgresql17

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback