CVE-2017-9048
Beschrijving NL
libxml2 20904-GITv2.9.4-16-g0741801 is kwetsbaar voor een stack-based buffer overflow. De functie xmlSnprintfElementContent in valid.c wordt verondersteld de inhoudsdefinitie van het element recursief te dumpen in een tekenbuffer 'buf' van grootte 'size'. Aan het einde van de routine kan de functie nog twee tekens strateren zonder te controleren of de huidige strlen(buf) + 2 < grootte. Dit beveiligingslek zorgt ervoor dat programma's die libxml2 gebruiken, zoals PHP, vastlopen.
Origineel (Engels) tonen
libxml2 20904-GITv2.9.4-16-g0741801 is vulnerable to a stack-based buffer overflow. The function xmlSnprintfElementContent in valid.c is supposed to recursively dump the element content definition into a char buffer 'buf' of size 'size'. At the end of the routine, the function may strcat two more characters without checking whether the current strlen(buf) + 2 < size. This vulnerability causes programs that use libxml2, such as PHP, to crash.