Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-23206

A flaw was found in htmldoc in v1.9.12 and prior. A stack buffer overflow in parse_table() in ps-pdf.cxx may lead to execute arbitrary code and denial of service.

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

Source evidence

CVE-2021-23206

core-osv · Original source

Published 2 Mar 2022, 23:15 UTC

A flaw was found in htmldoc in v1.9.12 and prior. A stack buffer overflow in parse_table() in ps-pdf.cxx may lead to execute arbitrary code and denial of service.

osv:CVE-2021-23206
Complete source record
{
  "id": "ba15c29e661f6a9e84eb2153f1e9f8210363c9a1557112487a426cfed5dd4878",
  "url": "https://osv.dev/vulnerability/CVE-2021-23206",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-23206",
    "summary": "A flaw was found in htmldoc in v1.9.12 and prior. A stack buffer overflow in parse_table() in ps-pdf.cxx may lead to execute arbitrary code and denial of service.",
    "evidence": "osv:CVE-2021-23206",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-23206",
      "aliases": [
        "CVE-2021-23206"
      ],
      "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": "0"
                },
                {
                  "last_affected": "df5d3010151a506c5ca138548aac02b37fb421f9"
                },
                {
                  "fixed": "ba61a3ece382389ae4482c7027af8b32e8ab4cc8"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:htmldoc_project:htmldoc:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.9.12"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ba61a3ece382389ae4482c7027af8b32e8ab4cc8"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.9.11",
            "v1.9.10",
            "v1.9.9",
            "v1.9.8",
            "v1.9.7",
            "v1.9.6",
            "v1.9.5",
            "v1.9.4",
            "v1.9.3",
            "v1.9.2",
            "v1.9.1",
            "v1.9",
            "v1.8.30"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23206.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-23206-1b6a26db",
                "digest": {
                  "length": 16179,
                  "function_hash": "286740561967303496883007309346580622876"
                },
                "source": "https://github.com/michaelrsweet/htmldoc/commit/ba61a3ece382389ae4482c7027af8b32e8ab4cc8",
                "target": {
                  "file": "htmldoc/ps-pdf.cxx",
                  "function": "render_table_row"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-23206-779113e7",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "226305219384265653921651652291527168498",
                    "312786812986221524017030466711465721759",
                    "248881942351859967399891898708216035900",
                    "100044695840884250015235649283980975188",
                    "67369235504030147037387646618481637029",
                    "68560888885934909608735818683816569441",
                    "283399597847895068512198141070330852352",
                    "207968872124558090440769507997069876452",
                    "202211541399609575394648521218735327191",
                    "111931546384935815270989048337050235836",
                    "91871316662392284632946802558202801936",
                    "40200726183932834868101819092894647972",
                    "26357264643605942196638892146108110582",
                    "47340553285007915119623372580896477598",
                    "114870920087860501124723412437940591453",
                    "218953146322284919093319144259412888686"
                  ]
                },
                "source": "https://github.com/michaelrsweet/htmldoc/commit/ba61a3ece382389ae4482c7027af8b32e8ab4cc8",
                "target": {
                  "file": "htmldoc/ps-pdf.cxx"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-23206-858b0bab",
                "digest": {
                  "length": 19153,
                  "function_hash": "233701428516035447414400569068903417021"
                },
                "source": "https://github.com/michaelrsweet/htmldoc/commit/ba61a3ece382389ae4482c7027af8b32e8ab4cc8",
                "target": {
                  "file": "htmldoc/ps-pdf.cxx",
                  "function": "parse_table"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:23:30Z"
          }
        }
      ],
      "modified": "2026-10-20T14:23:30.460847593Z",
      "provider": "osv",
      "references": [
        "https://ubuntu.com/security/CVE-2021-23206",
        "https://github.com/michaelrsweet/htmldoc/issues/416",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1967028",
        "https://github.com/michaelrsweet/htmldoc/commit/ba61a3ece382389ae4482c7027af8b32e8ab4cc8"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-23206",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388872,
  "published_at": "2022-03-02T23:15:08.46+00:00"
}