CVE-2007-0455: Buffer Overflow
Buffer overflow in the gdImageStringFTEx function in gdft.c in GD Graphics Library 2.0.33 and earlier allows remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via a crafted string with a JIS encoded font.
Other sources
Kees Cook from Ubuntu reported a "off-the-end-of-string increment", which could theoretically lead ot a buffer overflow.
This flaw would only be exploitable if a JIS-encoded font is used when processing a special malicious string.
The issue here is that the NULL terminator is incremented, which could lead to unknown results during the processing of the malicious string.
Index: gdft.c =================================================================== RCS file: /repository/gd/libgd/gdft.c,v retrieving revision 1.28 diff -u -p -r1.28 gdft.c --- gdft.c 3 Jan 2007 21:21:21 -0000 1.28 +++ gdft.c 24 Jan 2007 23:00:55 -0000 @@ -1178,7 +1178,7 @@ fprintf(stderr,"dpi=%d,%d metricres=%d { ch = c & 0xFF; / don't extend sign / } - next++; + if (next) next++; } break; case gdFTEXBig5:
— Red Hat
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2007-0455?
CVE-2007-0455 has a severity rating that indicates it can lead to denial of service and potential arbitrary code execution.
How do I fix CVE-2007-0455?
To fix CVE-2007-0455, upgrade to GD Graphics Library version 2.0.34 or later.
Which systems are vulnerable to CVE-2007-0455?
Systems running GD Graphics Library versions 2.0.33 and earlier, as well as specific versions of PHP and various Linux distributions are vulnerable to CVE-2007-0455.
What type of attack does CVE-2007-0455 enable?
CVE-2007-0455 enables remote attackers to craft strings that may trigger a buffer overflow, causing application crashes.
Is CVE-2007-0455 specific to a certain programming language?
CVE-2007-0455 is primarily associated with the GD Graphics Library but can affect applications written in PHP that utilize this library.