CVE
CVE-2021-40812
published medium CVSS 3.1 · 6.5Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | bullseye | libgd2 | Advisory build | 2.3.0-2+deb11u1 | DLA-4411-1 |
| SUSE / openSUSE | SLE-12-SP5 | gdaarch64 | Advisory build | 2.1.0-24.20.1 | SUSE-SU-2021:3214-1 |
| Ubuntu | bionic | libgd-tools | Advisory build | 2.2.5-4ubuntu0.5+esm3 | USN-7112-1 |
| Debian | buster | libgd2 | Advisory build | 2.2.5-5.2+deb10u1 | DLA-3781-1 |
| SUSE / openSUSE | SLE-12-SP5 | gdppc64le | Advisory build | 2.1.0-24.20.1 | SUSE-SU-2021:3214-1 |
| SUSE / openSUSE | SLE-12-SP5 | gds390x | Advisory build | 2.1.0-24.20.1 | SUSE-SU-2021:3214-1 |
| SUSE / openSUSE | SLE-12-SP5 | gdx86_64 | Advisory build | 2.1.0-24.20.1 | SUSE-SU-2021:3214-1 |
Show 55 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP5 | gd-32bitx86_64 | Advisory build | 2.1.0-24.20.1 | SUSE-SU-2021:3214-1 |
| SUSE / openSUSE | SLE-12-SP5 | gd-develaarch64 | Advisory build | 2.1.0-24.20.1 | SUSE-SU-2021:3214-1 |
| SUSE / openSUSE | SLE-12-SP5 | gd-develppc64le | Advisory build | 2.1.0-24.20.1 | SUSE-SU-2021:3214-1 |
| SUSE / openSUSE | SLE-12-SP5 | gd-devels390x | Advisory build | 2.1.0-24.20.1 | SUSE-SU-2021:3214-1 |
| SUSE / openSUSE | SLE-12-SP5 | gd-develx86_64 | Advisory build | 2.1.0-24.20.1 | SUSE-SU-2021:3214-1 |
| SUSE / openSUSE | SLE-15-SP2 | gdaarch64 | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP2 | gdppc64le | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP2 | gds390x | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP2 | gdx86_64 | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP2 | gd-develaarch64 | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP2 | gd-develppc64le | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP2 | gd-devels390x | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP2 | gd-develx86_64 | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP2 | libgd3aarch64 | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP2 | libgd3ppc64le | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP2 | libgd3s390x | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP2 | libgd3x86_64 | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP2 | libgd3-32bitx86_64 | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP3 | gdaarch64 | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP3 | gdppc64le | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP3 | gds390x | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP3 | gdx86_64 | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP3 | gd-develaarch64 | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP3 | gd-develppc64le | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP3 | gd-devels390x | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP3 | gd-develx86_64 | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP3 | libgd3aarch64 | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP3 | libgd3ppc64le | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP3 | libgd3s390x | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP3 | libgd3x86_64 | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | SLE-15-SP3 | libgd3-32bitx86_64 | Advisory build | 2.2.5-11.3.1 | SUSE-SU-2021:3236-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | gdaarch64 | Advisory build | 2.2.5-11.3.1 | OPENSUSE-SU-2021:3236-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | gdppc64le | Advisory build | 2.2.5-11.3.1 | OPENSUSE-SU-2021:3236-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | gds390x | Advisory build | 2.2.5-11.3.1 | OPENSUSE-SU-2021:3236-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | gdx86_64 | Advisory build | 2.2.5-11.3.1 | OPENSUSE-SU-2021:3236-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | gd-develaarch64 | Advisory build | 2.2.5-11.3.1 | OPENSUSE-SU-2021:3236-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | gd-develppc64le | Advisory build | 2.2.5-11.3.1 | OPENSUSE-SU-2021:3236-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | gd-devels390x | Advisory build | 2.2.5-11.3.1 | OPENSUSE-SU-2021:3236-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | gd-develx86_64 | Advisory build | 2.2.5-11.3.1 | OPENSUSE-SU-2021:3236-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libgd3aarch64 | Advisory build | 2.2.5-11.3.1 | OPENSUSE-SU-2021:3236-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libgd3ppc64le | Advisory build | 2.2.5-11.3.1 | OPENSUSE-SU-2021:3236-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libgd3s390x | Advisory build | 2.2.5-11.3.1 | OPENSUSE-SU-2021:3236-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libgd3x86_64 | Advisory build | 2.2.5-11.3.1 | OPENSUSE-SU-2021:3236-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libgd3-32bitx86_64 | Advisory build | 2.2.5-11.3.1 | OPENSUSE-SU-2021:3236-1 |
| Ubuntu | bionic | libgd2 | Advisory build | 2.2.5-4ubuntu0.5+esm3 | USN-7112-1 |
| Ubuntu | bionic | libgd3 | Advisory build | 2.2.5-4ubuntu0.5+esm3 | USN-7112-1 |
| Ubuntu | focal | libgd-tools | Advisory build | 2.2.5-5.2ubuntu2.4 | USN-7112-1 |
| Ubuntu | focal | libgd2 | Advisory build | 2.2.5-5.2ubuntu2.4 | USN-7112-1 |
| Ubuntu | focal | libgd3 | Advisory build | 2.2.5-5.2ubuntu2.4 | USN-7112-1 |
| Ubuntu | jammy | libgd-tools | Advisory build | 2.3.0-2ubuntu2.3 | USN-7112-1 |
| Ubuntu | jammy | libgd2 | Advisory build | 2.3.0-2ubuntu2.3 | USN-7112-1 |
| Ubuntu | jammy | libgd3 | Advisory build | 2.3.0-2ubuntu2.3 | USN-7112-1 |
| Ubuntu | xenial | libgd-tools | Advisory build | 2.1.1-4ubuntu0.16.04.12+esm4 | USN-7112-1 |
| Ubuntu | xenial | libgd2 | Advisory build | 2.1.1-4ubuntu0.16.04.12+esm4 | USN-7112-1 |
| Ubuntu | xenial | libgd3 | Advisory build | 2.1.1-4ubuntu0.16.04.12+esm4 | USN-7112-1 |
Description
The GD Graphics Library (aka LibGD) through 2.3.2 has an out-of-bounds read because of the lack of certain gdGetBuf and gdPutBuf return value checks.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
2- n/a
- CWE-125 CWE-125 Out-of-bounds Read
References
3- https://github.com/libgd/libgd/commit/6f5136821be86e7068fcdf651ae9420b5d42e9a9
- https://github.com/libgd/libgd/issues/750#issuecomment-914872385
- [debian-lts-announce] 20240406 [SECURITY] [DLA 3781-1] libgd2 security update https://lists.debian.org/debian-lts-announce/2024/04/msg00003.html
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 11211e5683a07df2ab4e47855185d8b355c60fea2791ef11dd860c99d0b49e30
- Ingested
- 23 Sep 2026, 07:56:07 UTC
- Source record
- Official CVE record