{"id":"CVE-2022-38222","aliases":["ALPINE-CVE-2022-38222","EUVD-2022-40814","GHSA-jh9w-w754-x3hr","MGASA-2024-0035","UBUNTU-CVE-2022-38222"],"status":"published","title":"There is a use-after-free issue in JBIG2Stream::close() located in JBIG2Stream.cc in Xpdf 4.04....","description":"There is a use-after-free issue in JBIG2Stream::close() located in JBIG2Stream.cc in Xpdf 4.04. It can be triggered by sending a crafted PDF file to (for example) the pdfimages binary. It allows an attacker to cause Denial of Service or possibly have unspecified other impact.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.00472,"percentile":0.4115,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-416"],"published":"2022-08-15T04:57:54Z","modified":"2026-11-03T07:30:43Z","fixes":[{"ecosystem":"Alpine:v3.19","package":"xpdf","fixed_in":["4.05-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"xpdf","fixed_in":["4.05-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"xpdf","fixed_in":["4.05-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"xpdf","fixed_in":["4.05-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"xpdf","fixed_in":["4.05-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"xpdf","fixed_in":["4.05-r0"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.19","package":"xpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.05-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"xpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.05-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"xpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.05-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"xpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.05-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"xpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.05-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"xpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.05-r0"}]}]},{"source":"osv","ecosystem":"Mageia:9","package":"xpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.05-1.mga9"}]}],"bundled":19},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"ipe","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.1.4-2.1","7.1.8-1","7.1.10-1","7.1.10-1.1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"ipe","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.2.7-2","7.2.7-3"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"ipe","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.2.9-1","7.2.13-2","7.2.13-2build1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"ipe","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.2.23+dfsg1-2","7.2.24+dfsg1-1","7.2.24+dfsg1-1build1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"ipe","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.2.27+dfsg1-2","7.2.28-2","7.2.28-2.1build2","7.2.28-2.1build3","7.2.28-2.1build4"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"ipe","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.2.30-1build1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"ipe","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.2.30-1build2","7.2.30-2"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"ipe","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.2.30-1build1","7.2.30-1build2"]}],"products":[{"vendor":"xpdfreader","product":"xpdf"}],"references":[{"url":"https://forum.xpdfreader.com/viewtopic.php?f=3\u0026t=42320","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-38222"},{"url":"https://github.com/advisories/GHSA-jh9w-w754-x3hr"},{"url":"https://security.alpinelinux.org/vuln/CVE-2022-38222","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2024-0035.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=30812","tags":["report"]},{"url":"http://www.xpdfreader.com/security-fixes.html","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2022-38222","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-38222","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-38222","description":"There is a use-after-free issue in JBIG2Stream::close() located in JBIG2Stream.cc in Xpdf 4.04. It can be triggered by sending a crafted PDF file to (for example) the pdfimages binary. It allows an attacker to cause Denial of Service or possibly have unspecified other impact.","status":"published","published":"2022-08-15T04:57:54Z","modified":"2024-08-03T10:45:52.956Z","updated_at":"2026-11-02T14:34:37.599536Z"}],"euvd":[{"id":"EUVD-2022-40814","description":"There is a use-after-free issue in JBIG2Stream::close() located in JBIG2Stream.cc in Xpdf 4.04. It can be triggered by sending a crafted PDF file to (for example) the pdfimages binary. It allows an attacker to cause Denial of Service or possibly have unspecified other impact.","status":"published","published":"2022-08-15T04:57:54Z","modified":"2024-08-03T10:45:52Z","updated_at":"2026-11-03T03:25:22.943717Z"}],"ghsa":[{"id":"GHSA-jh9w-w754-x3hr","title":"There is a use-after-free issue in JBIG2Stream::close() located in JBIG2Stream.cc in Xpdf 4.04....","description":"There is a use-after-free issue in JBIG2Stream::close() located in JBIG2Stream.cc in Xpdf 4.04. It can be triggered by sending a crafted PDF file to (for example) the pdfimages binary. It allows an attacker to cause Denial of Service or possibly have unspecified other impact.","status":"published","published":"2022-09-30T00:00:24Z","modified":"2023-01-29T05:05:16Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:45:45.423268Z"}],"nvd":[{"id":"CVE-2022-38222","description":"There is a use-after-free issue in JBIG2Stream::close() located in JBIG2Stream.cc in Xpdf 4.04. It can be triggered by sending a crafted PDF file to (for example) the pdfimages binary. It allows an attacker to cause Denial of Service or possibly have unspecified other impact.","status":"published","published":"2022-09-29T03:15:15.373Z","modified":"2026-06-17T04:56:18.753Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:07:29.026521Z"}],"osv":[{"id":"ALPINE-CVE-2022-38222","description":"There is a use-after-free issue in JBIG2Stream::close() located in JBIG2Stream.cc in Xpdf 4.04. It can be triggered by sending a crafted PDF file to (for example) the pdfimages binary. It allows an attacker to cause Denial of Service or possibly have unspecified other impact.","status":"published","published":"2022-09-29T03:15:15.373Z","modified":"2026-11-03T07:30:43.168120434Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T07:50:01.054176Z"},{"id":"UBUNTU-CVE-2022-38222","description":"There is a use-after-free issue in JBIG2Stream::close() located in JBIG2Stream.cc in Xpdf 4.04. It can be triggered by sending a crafted PDF file to (for example) the pdfimages binary. It allows an attacker to cause Denial of Service or possibly have unspecified other impact.","status":"published","published":"2022-09-29T03:15:00Z","modified":"2026-10-17T12:56:03.089811446Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T16:53:55.502114Z"},{"id":"MGASA-2024-0035","title":"Updated xpdf packages fix security vulnerabilities","description":"The updated packages fix security vulnerabilities:\nLogic bug in text extractor led to invalid memory access.\n(CVE-2022-30524)\nInteger overflow in rasterizer. (CVE-2022-30775)\nPDF object loop in Catalog::countPageTree. (CVE-2022-33108)\nPDF object loop in AcroForm::scanField. (CVE-2022-36561)\nLogic bug in JBIG2 decoder. (CVE-2022-38222)\nPDF object loop in Catalog::countPageTree. (CVE-2022-38334)\nMissing bounds check in CFF font converter caused null pointer\ndereference. (CVE-2022-38928)\nPDF object loop in Catalog::countPageTree. (CVE-2022-41842)\nMissing bounds check in CFF font parser caused invalid memory access.\n(CVE-2022-41843)\nPDF object loop in AcroForm::scanField. (CVE-2022-41844)\nPDF object loop in Catalog::readPageLabelTree2. (CVE-2022-43071)\nPDF object loop in Catalog::countPageTree. (CVE-2022-43295)\nPDF object loop in Catalog::countPageTree. (CVE-2022-45586)\nPDF object loop in Catalog::countPageTree. (CVE-2022-45587)\nDivide-by-zero in Xpdf 4.04 due to bad color space object.\n(CVE-2023-2662)\nPDF object loop in Catalog::readPageLabelTree2. (CVE-2023-2663)\nPDF object loop in Catalog::readEmbeddedFileTree. (CVE-2023-2664)\nDivide-by-zero in Xpdf 4.04 due to very large page size. (CVE-2023-3044)\nDeadlock in Xpdf 4.04 due to PDF object stream references.\n(CVE-2023-3436)\n","status":"published","published":"2024-02-10T19:02:27Z","modified":"2026-04-16T04:42:43.840361413Z","updated_at":"2026-11-02T15:49:42.684501Z"}]}}
