CVE-2021-40812: Medium severity Libgd Libgd vulnerability

Published Sep 8, 2021
·
Updated

Last updated 15 November 2024

Other sources

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.

Affected Software

2 affected componentsFixes available
debian/libgd2<=2.3.0-2
2.3.3-92.3.3-12
Libgd Libgd<=2.3.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/libgd2 to a version that resolves this vulnerability.

    Fixed in 2.3.3-9Fixed in 2.3.3-12
  2. Upgrade

    Upgrade GD Graphics Library (LibGD) to a version that resolves this vulnerability.

    Fixed in 2.3.2

Event History

Sep 8, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 15, 2024
Data Sourced
via Launchpad·02:03 AM
Description
Nov 19, 2024
Data Sourced
via Ubuntu·02:03 AM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-40812?

CVE-2021-40812 is a vulnerability in the GD Graphics Library (LibGD) that allows for an out-of-bounds read due to the lack of certain return value checks in gdGetBuf and gdPutBuf.

2

How severe is CVE-2021-40812?

CVE-2021-40812 has a severity rating of 6.5, making it a medium severity vulnerability.

3

What software is affected by CVE-2021-40812?

The LibGD library version up to and including 2.3.2 is affected by CVE-2021-40812.

4

What is the Common Weakness Enumeration (CWE) ID for CVE-2021-40812?

The CWE ID for CVE-2021-40812 is CWE-125, which corresponds to Out-of-bounds Read.

5

How can I mitigate CVE-2021-40812?

To mitigate CVE-2021-40812, it is recommended to update LibGD to a version that includes the fix, such as version 2.3.3 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2021-40812 - Medium severity Libgd Libgd vulnerability - SecAlerts