---
id: CVE-2026-102558
title: 'Libsoup: libsoup: heap buffer overflow during websocket receive-buffer growth'
summary: >-
  A flaw was found in libsoup. When max-incoming-payload-size is unlimited (0),
  SoupWebsocketConnection could grow its incoming GByteArray based on an
  attacker-controlled frame length until the length wrapped, causing a heap
  buffer overflo…
severity: high
cvss: 8.6
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H'
cvssSource: cna
cwe:
  - CWE-125
vendor: Red Hat
product: libsoup3
affected:
  - libsoup3 (all versions)
  - libsoup
  - libsoup (all versions)
  - libsoup (all versions)
  - libsoup (all versions)
published: '2026-09-29'
updated: '2026-09-29'
sourceUpdated: '2026-09-29T17:15:32.062Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-102558'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2026-102558'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2543274'
    label: RHBZ#2543274
tags:
  - cve.org
ingestedAt: '2026-09-29T17:41:02.261Z'
---

## Overview

A flaw was found in libsoup. When max-incoming-payload-size is unlimited (0), SoupWebsocketConnection could grow its incoming GByteArray based on an attacker-controlled frame length until the length wrapped, causing a heap buffer overflow while reading frame data.

## Affected

- `libsoup3 (all versions)`
- `libsoup`
- `libsoup (all versions)`
- `libsoup (all versions)`
- `libsoup (all versions)`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

### Workarounds

To mitigate this configure a finite max-incoming-payload-size (do not set it to 0/unlimited) on SoupWebsocketConnection. Restrict WebSocket exposure to trusted peers.
