Skip to content
Heist/ feed
Back to feed
HighFix available

librecad — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2021-21900

A code execution vulnerability exists in the dxfRW::processLType() functionality of LibreCad libdxfrw 2.2.0-rc2-19-ge02f3580. A specially-crafted .dxf file can lead to a use-after-free vulnerability. An attacker can provide a malicious file to trigger this vulnerability.

Products
librecad
Affected versions
2.0.4-1build1, 2.0.8-1, 2.0.9-2, 2.1.2-1, 2.1.3-1.2, 2.1.3-1.2build1, 2.2.0-1, 2.2.0.2-1, 2.2.0.2-1build1, 2.2.0.2-1build2, 2.2.0.2-1build3, 2.2.0.2-3
Fixed versions
2.0.9-2ubuntu0.1~esm1, 2.1.2-1ubuntu0.1, 2.1.3-1.2+deb10u1build0.20.04.1
CVEs
CVE-2021-21900
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:58 UTC · Revision 1

Source evidence

UBUNTU-CVE-2021-21900

core-osv · Original source

Published 19 Nov 2021, 19:15 UTC

A code execution vulnerability exists in the dxfRW::processLType() functionality of LibreCad libdxfrw 2.2.0-rc2-19-ge02f3580. A specially-crafted .dxf file can lead to a use-after-free vulnerability. An attacker can provide a malicious file to trigger this vulnerability.

osv:UBUNTU-CVE-2021-21900

librecad

Fixed versions: 2.0.9-2ubuntu0.1~esm1

librecad

Fixed versions: 2.1.2-1ubuntu0.1

librecad

Fixed versions: 2.1.3-1.2+deb10u1build0.20.04.1

librecad

Fixed versions: Not specified

librecad

Fixed versions: Not specified

librecad

Fixed versions: Not specified

librecad

Fixed versions: Not specified

Complete source record
{
  "id": "371fd0fe68770a928685b4ab6f03e21349586d681c6613d117052db22d04528e",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-21900",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2021-21900",
    "summary": "A code execution vulnerability exists in the dxfRW::processLType() functionality of LibreCad libdxfrw 2.2.0-rc2-19-ge02f3580. A specially-crafted .dxf file can lead to a use-after-free vulnerability. An attacker can provide a malicious file to trigger this vulnerability.",
    "evidence": "osv:UBUNTU-CVE-2021-21900",
    "products": [
      {
        "name": {
          "value": "librecad",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.0.9-2ubuntu0.1~esm1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2.0.4-1build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.0.8-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.0.9-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "librecad",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.1.2-1ubuntu0.1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2.1.2-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "librecad",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.1.3-1.2+deb10u1build0.20.04.1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2.1.3-1.2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.1.3-1.2build1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "librecad",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.2.0.2-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.2.0.2-1build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.2.0.2-1build2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.2.0.2-1build3",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "librecad",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.0.2-1build3",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "librecad",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.0.2-1build3",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.2.0.2-3",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "librecad",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.0.2-1build3",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2021-21900",
      "aliases": [
        "UBUNTU-CVE-2021-21900"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.0.9-2ubuntu0.1~esm1"
                }
              ]
            }
          ],
          "package": {
            "name": "librecad",
            "purl": "pkg:deb/ubuntu/librecad?arch=source&distro=esm-apps%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "versions": [
            "2.0.4-1build1",
            "2.0.8-1",
            "2.0.9-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21900.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librecad",
                "binary_version": "2.0.9-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "librecad-data",
                "binary_version": "2.0.9-2ubuntu0.1~esm1"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.1.2-1ubuntu0.1"
                }
              ]
            }
          ],
          "package": {
            "name": "librecad",
            "purl": "pkg:deb/ubuntu/librecad?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "2.1.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21900.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librecad",
                "binary_version": "2.1.2-1ubuntu0.1"
              },
              {
                "binary_name": "librecad-data",
                "binary_version": "2.1.2-1ubuntu0.1"
              }
            ],
            "availability": "No subscription required"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.1.3-1.2+deb10u1build0.20.04.1"
                }
              ]
            }
          ],
          "package": {
            "name": "librecad",
            "purl": "pkg:deb/ubuntu/librecad?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "2.1.3-1.2",
            "2.1.3-1.2build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21900.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librecad",
                "binary_version": "2.1.3-1.2+deb10u1build0.20.04.1"
              },
              {
                "binary_name": "librecad-data",
                "binary_version": "2.1.3-1.2+deb10u1build0.20.04.1"
              }
            ],
            "availability": "No subscription required"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "librecad",
            "purl": "pkg:deb/ubuntu/librecad?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.2.0-1",
            "2.2.0.2-1",
            "2.2.0.2-1build1",
            "2.2.0.2-1build2",
            "2.2.0.2-1build3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21900.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librecad",
                "binary_version": "2.2.0.2-1build3"
              },
              {
                "binary_name": "librecad-data",
                "binary_version": "2.2.0.2-1build3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "librecad",
            "purl": "pkg:deb/ubuntu/librecad?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.2.0.2-1build3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21900.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librecad",
                "binary_version": "2.2.0.2-1build3"
              },
              {
                "binary_name": "librecad-data",
                "binary_version": "2.2.0.2-1build3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "librecad",
            "purl": "pkg:deb/ubuntu/librecad?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.2.0.2-1build3",
            "2.2.0.2-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21900.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librecad",
                "binary_version": "2.2.0.2-3"
              },
              {
                "binary_name": "librecad-data",
                "binary_version": "2.2.0.2-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "librecad",
            "purl": "pkg:deb/ubuntu/librecad?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.2.0.2-1build3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21900.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librecad",
                "binary_version": "2.2.0.2-1build3"
              },
              {
                "binary_name": "librecad-data",
                "binary_version": "2.2.0.2-1build3"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:19.647103774Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-21900"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2021-21900",
        "https://talosintelligence.com/vulnerability_reports/TALOS-2021-1351",
        "https://github.com/LibreCAD/libdxfrw/commit/fcd977cc7f8f6cc7f012e5b72d33cf7d77b3fa69",
        "https://ubuntu.com/security/notices/USN-5957-1",
        "https://www.cve.org/CVERecord?id=CVE-2021-21900"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-21900",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355274,
  "published_at": "2021-11-19T19:15:00+00:00"
}