All reports
Low

libwebsockets: Out-of-bounds Read in libwebsockets PNG parsing

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-11679

Probability of exploitation in the next 30 days: 0.39%

FIRST EPSS · 2026-11-18

Description

Out-of-bounds Read in lws_upng_emit_next_line in warmcat libwebsockets allows, when the LWS_WITH_UPNG flag is enabled during compilation and the HTML display stack is used, to read past a heap allocated buffer possibly causing a crash, when the user visits an attacker controlled website that contains a crafted PNG file with a big height dimension.

An out of bounds read has been discovered in libwebsockets. The issue is caused by the lws_upng_emit_next_line function, specifically in the branch when uf->padded is true, in the loop where it reads from the sliding window, ibp is incremented but never reset, making it possible to read past the buffer, and if the input file is big enough, reading past the currently mapped heap memory causing a crash.