---
id: CVE-2020-21816
title: >-
  A heab based buffer overflow issue exists in GNU LibreDWG 0.10.2641 via
  htmlescape ../../programs/escape.c:46.
summary: >-
  A heab based buffer overflow issue exists in GNU LibreDWG 0.10.2641 via
  htmlescape ../../programs/escape.c:46.
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-787
vendor: gnu
product: libredwg
affected:
  - libredwg = 0.10.2641
published: '2021-05-17'
updated: '2026-07-05'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2020-21816'
references:
  - url: 'https://github.com/LibreDWG/libredwg/issues/182#issuecomment-572890865'
    label: cve@mitre.org
  - url: 'http://gnu.com'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://github.com/LibreDWG/libredwg/issues/182#issuecomment-572890865'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.01133
epssPercentile: 0.65017
ingestedAt: '2026-07-05T00:59:26.218Z'
---

## Overview

A heab based buffer overflow issue exists in GNU LibreDWG 0.10.2641 via htmlescape ../../programs/escape.c:46.

## Affected

- `libredwg = 0.10.2641`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
