Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-42586

A heap buffer overflow was discovered in copy_bytes in decode_r2007.c in dwgread before 0.12.4 via a crafted dwg file.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-42586
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:58 UTC · Revision 1

Source evidence

CVE-2021-42586

core-osv · Original source

Published 23 May 2022, 11:16 UTC

A heap buffer overflow was discovered in copy_bytes in decode_r2007.c in dwgread before 0.12.4 via a crafted dwg file.

osv:CVE-2021-42586
Complete source record
{
  "id": "a51fce3ba920d05d7677576414044824ee7879ee64c6ee60b14044f006338940",
  "url": "https://osv.dev/vulnerability/CVE-2021-42586",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-42586",
    "summary": "A heap buffer overflow was discovered in copy_bytes in decode_r2007.c in dwgread before 0.12.4 via a crafted dwg file.",
    "evidence": "osv:CVE-2021-42586",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-42586",
      "aliases": [
        "CVE-2021-42586"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/libredwg/libredwg",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "74be36f0c1e7d8fbe71048e651a754ddd1d66c13"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gnu:libredwg:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.12.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.12.3",
            "0.12.2",
            "0.12.1",
            "0.12",
            "0.11.1",
            "0.11",
            "0.10.1",
            "0.10",
            "0.9.3",
            "0.9.2",
            "0.9.1",
            "0.9",
            "0.8",
            "0.7",
            "0.6.2",
            "0.6.1",
            "0.6",
            "0.5",
            "0.4.938",
            "0.4.924",
            "0.4.900",
            "0.4-dev",
            "0.3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-42586.json"
          }
        }
      ],
      "modified": "2026-10-20T10:55:00.925421502Z",
      "provider": "osv",
      "references": [
        "https://github.com/LibreDWG/libredwg/issues/350"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-42586",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 386685,
  "published_at": "2022-05-23T11:16:10.6+00:00"
}