All reports
Low

libwebsockets: Out-of-bounds Write 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-11680

Probability of exploitation in the next 30 days: 0.39%

FIRST EPSS · 2026-11-18

Description

Out-of-bounds Write in unfilter_scanline in warmcat libwebsockets allows, when the LWS_WITH_UPNG flag is enabled during compilation and the HTML display stack is used, to write 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 width value that causes an integer overflow which value is used for determining the size of a heap allocation.

An out of bounds write flaw has been discovered in how libwebsockets handles PNG files. The issue is caused by the initialization of bypl struct member, whenever the multiplication of width by bypp overflows, resulting in bypl being 0, later on the buffer u->inf.out will only be allocated a buffer of size u->inf.info_size and the buffer u->u.lines will then point right after the end of the allocated buffer, thus any subsequent operation on the lines buffer will write or read past heap allocated memory.