cve.bz

CVE-2026-107348 Year 2038 problem, Y2K38, Y2038, Epochalypse

5.9 mediumEPSS 0.4%

Medium (5.9). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
Integer overflow in the message buffer growth logic (mbuf_make_room) in PgBouncer 1.21.0 through 1.26.0 allows a remote attacker to cause a denial of service when max_packet_size is configured above 2147483648. A packet header declaring a length above 2^31 makes the buffer size computation overflow, leaving the growth loop unable to terminate. Because PgBouncer serves all clients from a single process, this saturates a CPU core and stalls every pooled connection until the process is restarted. Since 1.23.0 the overflow is reachable before authentication with a five-byte packet header.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 34th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-107348 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-107348?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-107348?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-107348 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13pgbouncerno fix listedDEBIAN-CVE-2026-107348
Debian14pgbouncer1.26.1-1DEBIAN-CVE-2026-107348
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 morepgbouncerno fix listedUBUNTU-CVE-2026-107348
Red Hathummingbird:1pgbouncer0:1.26.1-1.hum1RHSA-2026:83843
Azure Linux3pgbouncer1.26.1-1AZL-108195

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Ensure that `max_packet_size` is not configured above 2147483647 in the PgBouncer configuration file.

1. Edit `/etc/pgbouncer/pgbouncer.ini` and set `max_packet_size` to a safe value (or remove the directive to use standard defaults):

```ini

[pgbouncer]

max_packet_size = 2147483647

```

2. Reload the PgBouncer service to apply changes:

```sh

systemctl reload pgbouncer

```

Warning: Reloading or restarting the service can disrupt ongoing administrative tasks or transient connections. Always schedule configuration reloads during standard maintenance windows.

3. Restrict network access:

Apply firewall rules to ensure that the PgBouncer listening port (default 6432) is accessible only by trusted application hosts and not exposed to untrusted networks.

Caveats: Setting `max_packet_size` to a lower threshold will reject legitimate queries or results exceeding that specified size.

ProductPackageStateAdvisory
Red Hat Hardened Imagespgbouncer-main-1.26.1-1.hum1Fixed 2026-10-16RHSA-2026:83843

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-107348.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON