Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-26259

A flaw was found in htmldoc in v1.9.12. Heap buffer overflow in render_table_row(),in ps-pdf.cxx may lead to arbitrary code execution and denial of service.

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

Source evidence

CVE-2021-26259

core-osv · Original source

Published 3 Mar 2022, 23:15 UTC

A flaw was found in htmldoc in v1.9.12. Heap buffer overflow in render_table_row(),in ps-pdf.cxx may lead to arbitrary code execution and denial of service.

osv:CVE-2021-26259
Complete source record
{
  "id": "7a0f031fa65b977ce585bafe7ce1393e19eb31d0a47262aa9dc1f9d65b3164b8",
  "url": "https://osv.dev/vulnerability/CVE-2021-26259",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-26259",
    "summary": "A flaw was found in htmldoc in v1.9.12. Heap buffer overflow in render_table_row(),in ps-pdf.cxx may lead to arbitrary code execution and denial of service.",
    "evidence": "osv:CVE-2021-26259",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-26259",
      "aliases": [
        "CVE-2021-26259"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/michaelrsweet/htmldoc",
              "type": "GIT",
              "events": [
                {
                  "introduced": "df5d3010151a506c5ca138548aac02b37fb421f9"
                },
                {
                  "last_affected": "df5d3010151a506c5ca138548aac02b37fb421f9"
                },
                {
                  "fixed": "0ddab26a542c74770317b622e985c52430092ba5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:htmldoc_project:htmldoc:1.9.12:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.9.12"
                      },
                      {
                        "last_affected": "1.9.12"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "0ddab26a542c74770317b622e985c52430092ba5"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.9.12",
            "v1.9.12"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-26259.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-26259-37ceda0f",
                "digest": {
                  "length": 18849,
                  "function_hash": "218600234448216911841660260788939554713"
                },
                "source": "https://github.com/michaelrsweet/htmldoc/commit/0ddab26a542c74770317b622e985c52430092ba5",
                "target": {
                  "file": "htmldoc/ps-pdf.cxx",
                  "function": "parse_table"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-26259-b6f9013e",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "128876379327595083749542655696666889053",
                    "1370456498593750211965591516481733423",
                    "331804863011766768119981050720580677248",
                    "71453109669892415954646897573039313403",
                    "106116800201430848436286106325316001017",
                    "327026003027898287717106552398915188505",
                    "306706953111438797027416819109067996868",
                    "110475806869598580633798762542186652114",
                    "55090705300056202677268560906500099448",
                    "242866399911546360796033970475891353232",
                    "5217088837738141738956783096632921364",
                    "273001271368785694587954732885270907040",
                    "85298345999575269436669017595823913349",
                    "95111104423967790106159557893680432836",
                    "80604782751749119024999348504065092718",
                    "332247156897573209822998227964581598368",
                    "301785530285531026378490276103780302823",
                    "284283748358876178501742033099199384904",
                    "149119825468574545897235668783095941791",
                    "193405809906678048121475003475697584228",
                    "264908543890448556101165051533910778339",
                    "298821356758397744157679507570076079462"
                  ]
                },
                "source": "https://github.com/michaelrsweet/htmldoc/commit/0ddab26a542c74770317b622e985c52430092ba5",
                "target": {
                  "file": "htmldoc/ps-pdf.cxx"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:02:37Z"
          }
        }
      ],
      "modified": "2026-10-20T14:02:37.408969469Z",
      "provider": "osv",
      "references": [
        "https://github.com/michaelrsweet/htmldoc/commit/0ddab26a542c74770317b622e985c52430092ba5",
        "https://github.com/michaelrsweet/htmldoc/issues/417"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-26259",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388520,
  "published_at": "2022-03-03T23:15:08.033+00:00"
}