The GIF decoding function gdImageCreateFromGifCtx in gd_gif_in.c in the GD Graphics Library (aka libgd), as used in PHP before 5.6.31 and 7.x before 7.1.7, does not zero colorMap arrays before use. A specially crafted GIF image could use the uninitialized tables to read ~700 bytes from the top of the stack, potentially disclosing sensitive information.
2017-08-02T19:29:00.897
2025-04-20T01:37:25.860
Deferred
CVSSv3.0: 6.5 (MEDIUM)
AV:N/AC:M/Au:N/C:P/I:N/A:N
8.6
2.9
Type | Vendor | Product | Version/Range | Vulnerable? |
---|---|---|---|---|
Application | php | php | ≤ 5.6.30 | Yes |
Application | php | php | 7.0.0 | Yes |
Application | php | php | 7.0.1 | Yes |
Application | php | php | 7.0.2 | Yes |
Application | php | php | 7.0.3 | Yes |
Application | php | php | 7.0.4 | Yes |
Application | php | php | 7.0.5 | Yes |
Application | php | php | 7.0.6 | Yes |
Application | php | php | 7.0.7 | Yes |
Application | php | php | 7.0.8 | Yes |
Application | php | php | 7.0.9 | Yes |
Application | php | php | 7.0.10 | Yes |
Application | php | php | 7.0.11 | Yes |
Application | php | php | 7.0.12 | Yes |
Application | php | php | 7.0.13 | Yes |
Application | php | php | 7.0.14 | Yes |
Application | php | php | 7.0.15 | Yes |
Application | php | php | 7.0.16 | Yes |
Application | php | php | 7.0.17 | Yes |
Application | php | php | 7.0.18 | Yes |
Application | php | php | 7.0.19 | Yes |
Application | php | php | 7.0.20 | Yes |
Application | php | php | 7.1.0 | Yes |
Application | php | php | 7.1.1 | Yes |
Application | php | php | 7.1.2 | Yes |
Application | php | php | 7.1.3 | Yes |
Application | php | php | 7.1.4 | Yes |
Application | php | php | 7.1.5 | Yes |
Application | php | php | 7.1.6 | Yes |