{
  "document": {
    "aggregate_severity": {
      "text": "Medium"
    },
    "category": "csaf_vex",
    "csaf_version": "2.0",
    "distribution": {
      "text": "TuxCare License Agreement",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "legal_disclaimer",
        "text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Cloud Linux Inc. and provide a link to the original.",
        "title": "Terms of Use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://tuxcare.com/contact/",
      "name": "TuxCare",
      "namespace": "https://tuxcare.com/"
    },
    "references": [
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.tuxcare.com/csaf/v2/els_os/centos-stream8els/vex/2021/cve-2021-40812-els_os-centos-stream8els.json"
      }
    ],
    "tracking": {
      "current_release_date": "2026-06-12T14:26:29Z",
      "generator": {
        "date": "2026-06-12T14:26:29Z",
        "engine": {
          "name": "pyCSAF"
        }
      },
      "id": "CVE-2021-40812-ELS_OS-CENTOS-STREAM8ELS",
      "initial_release_date": "2021-09-08T21:15:00Z",
      "revision_history": [
        {
          "date": "2021-09-08T21:15:00Z",
          "number": "1",
          "summary": "Initial version"
        },
        {
          "date": "2026-06-12T14:26:29Z",
          "number": "2",
          "summary": "Official Publication"
        }
      ],
      "status": "final",
      "version": "2"
    },
    "title": "Security update on CVE-2021-40812"
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Community Enterprise Operating System 8",
                "product": {
                  "name": "Community Enterprise Operating System 8",
                  "product_id": "CentOS-Stream-8",
                  "product_identification_helper": {
                    "cpe": "cpe:2.3:o:centos:centos:8:*:*:*:*:*:*:*"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Community Enterprise Operating System"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "gd-progs-0:2.2.5-7.el8.x86_64",
                "product": {
                  "name": "gd-progs-0:2.2.5-7.el8.x86_64",
                  "product_id": "gd-progs-0:2.2.5-7.el8.x86_64",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/centos/gd-progs@2.2.5-7.el8?arch=x86_64"
                  }
                }
              },
              {
                "category": "product_version",
                "name": "gd-0:2.2.5-7.el8.x86_64",
                "product": {
                  "name": "gd-0:2.2.5-7.el8.x86_64",
                  "product_id": "gd-0:2.2.5-7.el8.x86_64",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/centos/gd@2.2.5-7.el8?arch=x86_64"
                  }
                }
              },
              {
                "category": "product_version",
                "name": "gd-devel-0:2.2.5-7.el8.x86_64",
                "product": {
                  "name": "gd-devel-0:2.2.5-7.el8.x86_64",
                  "product_id": "gd-devel-0:2.2.5-7.el8.x86_64",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/centos/gd-devel@2.2.5-7.el8?arch=x86_64"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "x86_64"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "gd-0:2.2.5-7.el8.i686",
                "product": {
                  "name": "gd-0:2.2.5-7.el8.i686",
                  "product_id": "gd-0:2.2.5-7.el8.i686",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/centos/gd@2.2.5-7.el8?arch=i686"
                  }
                }
              },
              {
                "category": "product_version",
                "name": "gd-devel-0:2.2.5-7.el8.i686",
                "product": {
                  "name": "gd-devel-0:2.2.5-7.el8.i686",
                  "product_id": "gd-devel-0:2.2.5-7.el8.i686",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/centos/gd-devel@2.2.5-7.el8?arch=i686"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "i686"
          }
        ],
        "category": "vendor",
        "name": "Red Hat, Inc."
      },
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_version",
                "name": "gd-progs-0:2.2.5-7.el8.tuxcare.els1.x86_64",
                "product": {
                  "name": "gd-progs-0:2.2.5-7.el8.tuxcare.els1.x86_64",
                  "product_id": "gd-progs-0:2.2.5-7.el8.tuxcare.els1.x86_64",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/tuxcare/gd-progs@2.2.5-7.el8.tuxcare.els1?arch=x86_64"
                  }
                }
              },
              {
                "category": "product_version",
                "name": "gd-0:2.2.5-7.el8.tuxcare.els1.x86_64",
                "product": {
                  "name": "gd-0:2.2.5-7.el8.tuxcare.els1.x86_64",
                  "product_id": "gd-0:2.2.5-7.el8.tuxcare.els1.x86_64",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/tuxcare/gd@2.2.5-7.el8.tuxcare.els1?arch=x86_64"
                  }
                }
              },
              {
                "category": "product_version",
                "name": "gd-devel-0:2.2.5-7.el8.tuxcare.els1.x86_64",
                "product": {
                  "name": "gd-devel-0:2.2.5-7.el8.tuxcare.els1.x86_64",
                  "product_id": "gd-devel-0:2.2.5-7.el8.tuxcare.els1.x86_64",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/tuxcare/gd-devel@2.2.5-7.el8.tuxcare.els1?arch=x86_64"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "x86_64"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "gd-0:2.2.5-7.el8.tuxcare.els1.i686",
                "product": {
                  "name": "gd-0:2.2.5-7.el8.tuxcare.els1.i686",
                  "product_id": "gd-0:2.2.5-7.el8.tuxcare.els1.i686",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/tuxcare/gd@2.2.5-7.el8.tuxcare.els1?arch=i686"
                  }
                }
              },
              {
                "category": "product_version",
                "name": "gd-devel-0:2.2.5-7.el8.tuxcare.els1.i686",
                "product": {
                  "name": "gd-devel-0:2.2.5-7.el8.tuxcare.els1.i686",
                  "product_id": "gd-devel-0:2.2.5-7.el8.tuxcare.els1.i686",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/tuxcare/gd-devel@2.2.5-7.el8.tuxcare.els1?arch=i686"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "i686"
          }
        ],
        "category": "vendor",
        "name": "TuxCare"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gd-progs-0:2.2.5-7.el8.tuxcare.els1.x86_64 as a component of Community Enterprise Operating System 8",
          "product_id": "CentOS-Stream-8:gd-progs-0:2.2.5-7.el8.tuxcare.els1.x86_64"
        },
        "product_reference": "gd-progs-0:2.2.5-7.el8.tuxcare.els1.x86_64",
        "relates_to_product_reference": "CentOS-Stream-8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gd-progs-0:2.2.5-7.el8.x86_64 as a component of Community Enterprise Operating System 8",
          "product_id": "CentOS-Stream-8:gd-progs-0:2.2.5-7.el8.x86_64"
        },
        "product_reference": "gd-progs-0:2.2.5-7.el8.x86_64",
        "relates_to_product_reference": "CentOS-Stream-8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gd-0:2.2.5-7.el8.tuxcare.els1.i686 as a component of Community Enterprise Operating System 8",
          "product_id": "CentOS-Stream-8:gd-0:2.2.5-7.el8.tuxcare.els1.i686"
        },
        "product_reference": "gd-0:2.2.5-7.el8.tuxcare.els1.i686",
        "relates_to_product_reference": "CentOS-Stream-8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gd-0:2.2.5-7.el8.i686 as a component of Community Enterprise Operating System 8",
          "product_id": "CentOS-Stream-8:gd-0:2.2.5-7.el8.i686"
        },
        "product_reference": "gd-0:2.2.5-7.el8.i686",
        "relates_to_product_reference": "CentOS-Stream-8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gd-0:2.2.5-7.el8.tuxcare.els1.x86_64 as a component of Community Enterprise Operating System 8",
          "product_id": "CentOS-Stream-8:gd-0:2.2.5-7.el8.tuxcare.els1.x86_64"
        },
        "product_reference": "gd-0:2.2.5-7.el8.tuxcare.els1.x86_64",
        "relates_to_product_reference": "CentOS-Stream-8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gd-0:2.2.5-7.el8.x86_64 as a component of Community Enterprise Operating System 8",
          "product_id": "CentOS-Stream-8:gd-0:2.2.5-7.el8.x86_64"
        },
        "product_reference": "gd-0:2.2.5-7.el8.x86_64",
        "relates_to_product_reference": "CentOS-Stream-8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gd-devel-0:2.2.5-7.el8.tuxcare.els1.x86_64 as a component of Community Enterprise Operating System 8",
          "product_id": "CentOS-Stream-8:gd-devel-0:2.2.5-7.el8.tuxcare.els1.x86_64"
        },
        "product_reference": "gd-devel-0:2.2.5-7.el8.tuxcare.els1.x86_64",
        "relates_to_product_reference": "CentOS-Stream-8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gd-devel-0:2.2.5-7.el8.x86_64 as a component of Community Enterprise Operating System 8",
          "product_id": "CentOS-Stream-8:gd-devel-0:2.2.5-7.el8.x86_64"
        },
        "product_reference": "gd-devel-0:2.2.5-7.el8.x86_64",
        "relates_to_product_reference": "CentOS-Stream-8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gd-devel-0:2.2.5-7.el8.tuxcare.els1.i686 as a component of Community Enterprise Operating System 8",
          "product_id": "CentOS-Stream-8:gd-devel-0:2.2.5-7.el8.tuxcare.els1.i686"
        },
        "product_reference": "gd-devel-0:2.2.5-7.el8.tuxcare.els1.i686",
        "relates_to_product_reference": "CentOS-Stream-8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "gd-devel-0:2.2.5-7.el8.i686 as a component of Community Enterprise Operating System 8",
          "product_id": "CentOS-Stream-8:gd-devel-0:2.2.5-7.el8.i686"
        },
        "product_reference": "gd-devel-0:2.2.5-7.el8.i686",
        "relates_to_product_reference": "CentOS-Stream-8"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2021-40812",
      "cwe": {
        "id": "CWE-125",
        "name": "Out-of-bounds Read"
      },
      "notes": [
        {
          "category": "description",
          "text": "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.",
          "title": "Vulnerability description"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "known_affected": [
          "CentOS-Stream-8:gd-0:2.2.5-7.el8.i686",
          "CentOS-Stream-8:gd-0:2.2.5-7.el8.tuxcare.els1.i686",
          "CentOS-Stream-8:gd-0:2.2.5-7.el8.tuxcare.els1.x86_64",
          "CentOS-Stream-8:gd-0:2.2.5-7.el8.x86_64",
          "CentOS-Stream-8:gd-devel-0:2.2.5-7.el8.i686",
          "CentOS-Stream-8:gd-devel-0:2.2.5-7.el8.tuxcare.els1.i686",
          "CentOS-Stream-8:gd-devel-0:2.2.5-7.el8.tuxcare.els1.x86_64",
          "CentOS-Stream-8:gd-devel-0:2.2.5-7.el8.x86_64",
          "CentOS-Stream-8:gd-progs-0:2.2.5-7.el8.tuxcare.els1.x86_64",
          "CentOS-Stream-8:gd-progs-0:2.2.5-7.el8.x86_64"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://cve.tuxcare.com/els/cve/CVE-2021-40812"
        },
        {
          "category": "external",
          "summary": "https://github.com/libgd/libgd/commit/6f5136821be86e7068fcdf651ae9420b5d42e9a9",
          "url": "https://github.com/libgd/libgd/commit/6f5136821be86e7068fcdf651ae9420b5d42e9a9"
        },
        {
          "category": "external",
          "summary": "https://github.com/libgd/libgd/issues/750#issuecomment-914872385",
          "url": "https://github.com/libgd/libgd/issues/750#issuecomment-914872385"
        },
        {
          "category": "external",
          "summary": "https://lists.debian.org/debian-lts-announce/2024/04/msg00003.html",
          "url": "https://lists.debian.org/debian-lts-announce/2024/04/msg00003.html"
        }
      ],
      "release_date": "2021-09-08T21:15:00Z",
      "remediations": [
        {
          "category": "no_fix_planned",
          "date": "2026-06-12T13:07:22.978798Z",
          "details": "CVE-2021-40812 is an out-of-bounds read in LibGD ≤ 2.3.2 that only triggers when an application explicitly processes a crafted image buffer, requires user interaction, and impacts availability only (no confidentiality or integrity effect). Exploitation does not provide code execution or privilege escalation, and any crash is confined to the image-handling process of the specific application that uses GD. Given these application-specific trigger conditions and DoS-only impact, this issue can be safely deprioritized in managed enterprise VM/server environments.",
          "product_ids": [
            "CentOS-Stream-8:gd-0:2.2.5-7.el8.i686",
            "CentOS-Stream-8:gd-0:2.2.5-7.el8.tuxcare.els1.i686",
            "CentOS-Stream-8:gd-0:2.2.5-7.el8.tuxcare.els1.x86_64",
            "CentOS-Stream-8:gd-0:2.2.5-7.el8.x86_64",
            "CentOS-Stream-8:gd-devel-0:2.2.5-7.el8.i686",
            "CentOS-Stream-8:gd-devel-0:2.2.5-7.el8.tuxcare.els1.i686",
            "CentOS-Stream-8:gd-devel-0:2.2.5-7.el8.tuxcare.els1.x86_64",
            "CentOS-Stream-8:gd-devel-0:2.2.5-7.el8.x86_64",
            "CentOS-Stream-8:gd-progs-0:2.2.5-7.el8.tuxcare.els1.x86_64",
            "CentOS-Stream-8:gd-progs-0:2.2.5-7.el8.x86_64"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v2": {
            "accessComplexity": "MEDIUM",
            "accessVector": "NETWORK",
            "authentication": "NONE",
            "availabilityImpact": "PARTIAL",
            "baseScore": 4.3,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "NONE",
            "integrityImpact": "NONE",
            "vectorString": "AV:N/AC:M/Au:N/C:N/I:N/A:P",
            "version": "2.0"
          },
          "cvss_v3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 6.5,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "NONE",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "products": [
            "CentOS-Stream-8:gd-0:2.2.5-7.el8.i686",
            "CentOS-Stream-8:gd-0:2.2.5-7.el8.tuxcare.els1.i686",
            "CentOS-Stream-8:gd-0:2.2.5-7.el8.tuxcare.els1.x86_64",
            "CentOS-Stream-8:gd-0:2.2.5-7.el8.x86_64",
            "CentOS-Stream-8:gd-devel-0:2.2.5-7.el8.i686",
            "CentOS-Stream-8:gd-devel-0:2.2.5-7.el8.tuxcare.els1.i686",
            "CentOS-Stream-8:gd-devel-0:2.2.5-7.el8.tuxcare.els1.x86_64",
            "CentOS-Stream-8:gd-devel-0:2.2.5-7.el8.x86_64",
            "CentOS-Stream-8:gd-progs-0:2.2.5-7.el8.tuxcare.els1.x86_64",
            "CentOS-Stream-8:gd-progs-0:2.2.5-7.el8.x86_64"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Moderate"
        }
      ]
    }
  ]
}