{"schemaVersion":3,"id":"CVE-2022-27114","aliases":["MGASA-2022-0191","UBUNTU-CVE-2022-27114","DEBIAN-CVE-2022-27114","DLA-3004-1","openSUSE-SU-2024:12071-1"],"status":"published","duplicateOf":null,"title":null,"description":"There is a vulnerability in htmldoc 1.9.16. In image_load_jpeg function image.cxx when it calls malloc,'img->width' and 'img->height' they are large enough to cause an integer overflow. So, the malloc function may return a heap blosmaller than the expected size, and it will cause a buffer overflow/Address boundary error in the jpeg_read_scanlines function.","dates":{"published":"2022-05-09T16:52:39.000Z","modified":"2024-08-03T05:18:39.346Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00963,"percentile":0.61251,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.01499999999999991,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00948},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00963,"percentile":0.61251}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00948,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00963,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00963,"percentile":0.61251}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_MICHAELRSWEET_HTMLDOC","name":"Htmldoc","source":"github","url":"https://github.com/michaelrsweet/htmldoc/issues/370","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-190","name":"Integer Overflow or Wraparound","description":"The product performs a calculation that can\n         produce an integer overflow or wraparound when the logic\n         assumes that the resulting value will always be larger than\n         the original value. This occurs when an integer value is\n         incremented to a value that is too large to store in the\n         associated representation. When this occurs, the value may\n         become a very small or negative number.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/190.html"}],"affected":[{"vendor":"debian","product":"htmldoc","name":"htmldoc","label":"htmldoc","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/htmldoc","purlType":"deb","versions":[{"text":"< 1.8.27-8+deb9u3","noFixRecorded":false,"fixedIn":null},{"text":"< 1.9.15-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.8.27-8+deb9u3 | < 1.9.15-2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"htmldoc","name":"htmldoc","label":"htmldoc","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/htmldoc","purlType":"deb","versions":[{"text":"< 1.8.27-8ubuntu1+esm4","noFixRecorded":false,"fixedIn":null},{"text":"< 1.8.27-8ubuntu1.1+esm3","noFixRecorded":false,"fixedIn":null},{"text":"< 1.9.2-1ubuntu0.2+esm2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.9.7-1ubuntu0.3+esm2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.9.15-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.8.27-8ubuntu1+esm4 | < 1.8.27-8ubuntu1.1+esm3 | < 1.9.2-1ubuntu0.2+esm2 | < 1.9.7-1ubuntu0.3+esm2 | < 1.9.15-1ubuntu0.1~esm1","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0","eol":{"isEol":true,"eolDate":"2022-07-01T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"9","label":"9 (Stretch)","eolFrom":"2022-07-01T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"9.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"htmldoc_project","product":"htmldoc","name":"htmldoc","label":"htmldoc","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.9.16","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.9.16","eol":null,"hubHref":"/vendor/htmldoc_project/htmldoc"},{"vendor":"mageia","product":"htmldoc","name":"htmldoc","label":"htmldoc","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/htmldoc","purlType":"rpm","versions":[{"text":"< 1.9.15-1.1.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.9.15-1.1.mga8","eol":null,"hubHref":null},{"vendor":"opensuse","product":"htmldoc&distro=openSUSE Tumbleweed","name":"htmldoc","label":"htmldoc&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/htmldoc&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 1.9.15-3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.9.15-3.1","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/michaelrsweet/htmldoc/commit/31f780487e5ddc426888638786cdc47631687275","label":"github.com/michaelrsweet/htmldoc/commit/31f780487e5ddc426888638786cdc47631687275","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch","Third Party Advisory"]},{"url":"https://github.com/michaelrsweet/htmldoc/issues/471","label":"github.com/michaelrsweet/htmldoc/issues/471","hostname":"github.com","tags":["X Refsource MISC","REPORT","Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/05/msg00014.html","label":"lists.debian.org/debian-lts-announce/2022/05/msg00014.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2022-0191.html","label":"advisories.mageia.org/MGASA-2022-0191.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=30429","label":"bugs.mageia.org/show_bug.cgi?id=30429","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://www.debian.org/lts/security/2022/dla-3004","label":"www.debian.org/lts/security/2022/dla-3004","hostname":"www.debian.org","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2022-27114","label":"ubuntu.com/security/CVE-2022-27114","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-27114","label":"www.cve.org/CVERecord?id=CVE-2022-27114","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7225-1","label":"ubuntu.com/security/notices/USN-7225-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-27114","label":"security-tracker.debian.org/tracker/CVE-2022-27114","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2022-27114","label":"www.suse.com/security/cve/CVE-2022-27114","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["USN-7225-1"],"duplicates":[],"related":["USN-7225-1"]},"timeline":[{"kind":"published","date":"2022-05-09T16:52:39.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T05:18:39.346Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T10:27:09.519Z","stale":false,"partial":false}}