{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-40812 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2021-40812 is a medium-severity vulnerability in n/a, published on 8 Sep 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-40812 and fix it if it is affected.\n\nWhat it is: CVE-2021-40812 is a medium-severity vulnerability in n/a, published on 8 Sep 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-40812 in the wild and no public exploit code.\n\nAffected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-40812/ (Markdown: https://insights.sbomify.com/CVE-2021-40812/index.md)","id":"CVE-2021-40812","markdown":"https://insights.sbomify.com/CVE-2021-40812/index.md","name":"CVE-2021-40812","record":{"aliases":["AZL-6433","CLSA-2023-1689009763","CLSA-2026-1779823719","DEBIAN-CVE-2021-40812","GHSA-53w9-wg73-ghrw","JLSEC-2026-361","MGASA-2021-0449","OESA-2021-1353","SUSE-SU-2021:3214-1","SUSE-SU-2021:3236-1","UBUNTU-CVE-2021-40812","USN-7112-1","openSUSE-SU-2021:3236-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"GD Graphics Library","requires_auth":"none","summary":"An out-of-bounds read in LibGD allows attackers to disclose sensitive memory or cause a crash due to missing return value checks.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"libgd","vendor":"libgd"}],"cvss":{"score":6.5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"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.","ecosystems":["SUSE:Linux Enterprise Module for Basesystem 15 SP2","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Linux Enterprise Module for Desktop Applications 15 SP2","SUSE:Linux Enterprise Module for Desktop Applications 15 SP3","SUSE:Linux Enterprise Module for Package Hub 15 SP2","SUSE:Linux Enterprise Module for Package Hub 15 SP3","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Linux Enterprise Workstation Extension 12 SP5","openSUSE:Leap 15.3"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Information disclosure in n/a","id":"CVE-2021-40812","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"information_disclosure","year":"2021"},"n_packages":11,"n_references":3,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-40813"},"packages":[{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP2","fixed":["2.2.5-11.3.1"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/suse/gd\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP2","source":"SUSE-SU-2021:3236-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP3","fixed":["2.2.5-11.3.1"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/suse/gd\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3","source":"SUSE-SU-2021:3236-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Desktop Applications 15 SP2","fixed":["2.2.5-11.3.1"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/suse/gd\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP2","source":"SUSE-SU-2021:3236-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Desktop Applications 15 SP3","fixed":["2.2.5-11.3.1"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/suse/gd\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP3","source":"SUSE-SU-2021:3236-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP2","fixed":["2.2.5-11.3.1"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/suse/gd\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP2","source":"SUSE-SU-2021:3236-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP3","fixed":["2.2.5-11.3.1"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/suse/gd\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP3","source":"SUSE-SU-2021:3236-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["2.1.0-24.20.1"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/suse/gd\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2021:3214-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["2.1.0-24.20.1"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/suse/gd\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2021:3214-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["2.1.0-24.20.1"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/suse/gd\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2021:3214-1"},{"ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP5","fixed":["2.1.0-24.20.1"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/suse/gd\u0026distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012%20SP5","source":"SUSE-SU-2021:3214-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["2.2.5-11.3.1"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/opensuse/gd\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2021:3236-1"}],"prev":{"headline":"Privilege escalation in n/a","id":"CVE-2021-40809"},"products":["n/a"],"published":"2021-09-08","related":[{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2016-10166","kev_date_added":null,"published":"2017-03-15"},{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2016-6912","kev_date_added":null,"published":"2017-01-26"},{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2016-8670","kev_date_added":null,"published":"2017-01-04"},{"cvss_score":8.8,"headline":"Integer overflow in n/a","id":"CVE-2016-5767","kev_date_added":null,"published":"2016-08-07"},{"cvss_score":8.1,"headline":"Memory corruption in n/a","id":"CVE-2017-6363","kev_date_added":null,"published":"2020-02-27"},{"cvss_score":7.8,"headline":"Integer overflow in n/a","id":"CVE-2016-10168","kev_date_added":null,"published":"2017-03-15"},{"cvss_score":7.6,"headline":"Memory corruption in n/a","id":"CVE-2013-7456","kev_date_added":null,"published":"2016-08-07"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-29","vendors":["n/a"]},"summary":"An out-of-bounds read in LibGD allows attackers to disclose sensitive memory or cause a crash due to missing return value checks.","url":"https://insights.sbomify.com/CVE-2021-40812/"}