Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2022-0534: Block GIF images with a code size > 12 (Issue #463) · michaelrsweet/htmldoc@312f0f9

A vulnerability was found in htmldoc version 1.9.15 where the stack out-of-bounds read takes place in gif_get_code() and occurs when opening a malicious GIF file, which can result in a crash (segmentation fault).

CVE
#vulnerability

@@ -305,6 +305,12 @@ gif_read_image(FILE *fp, /* I - Input file */

pass = 0;

code_size = (uchar)getc(fp);

if (code_size > 12)

{

progress_error(HD_ERROR_READ_ERROR, “Bad GIF file \"%s\” - invalid code size %d.", img->filename, code_size);

return (-1);

}

if (gif_read_lzw(fp, 1, code_size) < 0)

return (-1);

@@ -432,7 +438,7 @@ gif_read_lzw(FILE *fp, /* I - File to read from */

if (sp > stack)

return (*–sp);

while ((code = gif_get_code (fp, code_size, 0)) >= 0)

while ((code = gif_get_code(fp, code_size, 0)) >= 0)

{

if (code == clear_code)

{

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda
CVE-2023-6905
CVE-2023-6903
CVE-2023-6904
CVE-2023-3907