Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-23191

A security issue was found in htmldoc v1.9.12 and before. A NULL pointer dereference in the function image_load_jpeg() in image.cxx may result in denial of service.

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

Source evidence

CVE-2021-23191

core-osv · Original source

Published 2 Mar 2022, 23:15 UTC

A security issue was found in htmldoc v1.9.12 and before. A NULL pointer dereference in the function image_load_jpeg() in image.cxx may result in denial of service.

osv:CVE-2021-23191
Complete source record
{
  "id": "263544ffebc75310c4aded06e309172857507f346c66a9084f71048075891832",
  "url": "https://osv.dev/vulnerability/CVE-2021-23191",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-23191",
    "summary": "A security issue was found in htmldoc v1.9.12 and before. A NULL pointer dereference in the function image_load_jpeg() in image.cxx may result in denial of service.",
    "evidence": "osv:CVE-2021-23191",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-23191",
      "aliases": [
        "CVE-2021-23191"
      ],
      "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": "369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc"
                }
              ],
              "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": "369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc"
                      }
                    ],
                    "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-23191.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-23191-1f68d2fe",
                "digest": {
                  "length": 2039,
                  "function_hash": "92322127114415870521607068119991088032"
                },
                "source": "https://github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc",
                "target": {
                  "file": "htmldoc/ps-pdf.cxx",
                  "function": "pspdf_prepare_page"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-23191-335d3575",
                "digest": {
                  "length": 5590,
                  "function_hash": "319000601398196051361739018736045259971"
                },
                "source": "https://github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc",
                "target": {
                  "file": "htmldoc/ps-pdf.cxx",
                  "function": "write_trailer"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-23191-3a6adf34",
                "digest": {
                  "length": 1495,
                  "function_hash": "273838597093441093367409498317500445991"
                },
                "source": "https://github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc",
                "target": {
                  "file": "htmldoc/image.cxx",
                  "function": "image_load_jpeg"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-23191-637cccf5",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "24233290535264989810748690679705506210",
                    "100801203083552384439762334466782870457",
                    "286453315102484514880779508538999003133",
                    "325380916168297110754537502992714039597",
                    "142913364914498751147094645847081107842",
                    "2327086209042552317056688615316982611"
                  ]
                },
                "source": "https://github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc",
                "target": {
                  "file": "htmldoc/file.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-23191-7b516114",
                "digest": {
                  "length": 231,
                  "function_hash": "253040243785350020620576354982529485400"
                },
                "source": "https://github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc",
                "target": {
                  "file": "htmldoc/file.c",
                  "function": "file_rlookup"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-23191-a05e793f",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "174351675257079302674288344624817020623",
                    "101601067056068637150692630605931669980",
                    "280391808546796513492317466962874985719",
                    "284919528584911699891782557142563906198",
                    "316655231958914577262750320733714241484",
                    "259903975631848402735195579438303810430",
                    "252468788629462972060277174261718033030",
                    "132214329166457028830166077776864133259"
                  ]
                },
                "source": "https://github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc",
                "target": {
                  "file": "htmldoc/ps-pdf.cxx"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-23191-a3c2eb74",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "93662261141235397336793541586627527916",
                    "178372303592823082188525915246518540",
                    "182627793998545929107488062471140628976",
                    "49165471055202665109567153679255754669",
                    "212925988256507582288616706848766924941",
                    "319138341660598085657295740529178907075",
                    "216016017510746556388864693638497132619",
                    "248935907130947220320096162946614045664",
                    "150202415247926317426841370161245844037",
                    "37660859905881833385899212080022329555",
                    "108056819864349876478404953972008958215",
                    "231504663485709970494918551729485520299",
                    "124873979014350377780002559371087860547",
                    "324261901752826121729680621978216219693",
                    "204453826772054237783218990803904725774",
                    "88619547742534205724900377237136528247",
                    "216161839705182387489013709942683485324"
                  ]
                },
                "source": "https://github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc",
                "target": {
                  "file": "htmldoc/image.cxx"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-23191-c6a9284b",
                "digest": {
                  "length": 44,
                  "function_hash": "257817902150553678093130567542449157059"
                },
                "source": "https://github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc",
                "target": {
                  "file": "htmldoc/image.cxx",
                  "function": "jpeg_error_handler"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:18:23Z"
          }
        }
      ],
      "modified": "2026-10-20T14:18:23.256682730Z",
      "provider": "osv",
      "references": [
        "https://ubuntu.com/security/CVE-2021-23191",
        "https://github.com/michaelrsweet/htmldoc/issues/415",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1967022",
        "https://github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-23191",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388795,
  "published_at": "2022-03-02T23:15:08.347+00:00"
}