{"id":"CVE-2021-3508","aliases":["DEBIAN-CVE-2021-3508","EUVD-2021-26827","GHSA-wx33-xp59-j4ch","UBUNTU-CVE-2021-3508","USN-5282-1"],"status":"published","title":"A flaw was found in PDFResurrect in version 0.22b. There is an infinite loop in...","description":"A flaw was found in PDFResurrect in version 0.22b. There is an infinite loop in get_xref_linear_skipped() in pdf.c via a crafted PDF file.","severity":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.00693,"percentile":0.53356,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-835"],"published":"2021-04-28T13:44:09Z","modified":"2026-10-23T18:04:00Z","fixes":[{"ecosystem":"Debian:12","package":"pdfresurrect","fixed_in":["0.22-3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"pdfresurrect","fixed_in":["0.22-3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"pdfresurrect","fixed_in":["0.22-3"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"pdfresurrect","fixed_in":["0.12-6ubuntu0.2+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"pdfresurrect","fixed_in":["0.14-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"pdfresurrect","fixed_in":["0.19-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"pdfresurrect","fixed_in":["0.22-2ubuntu0.1~esm1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"pdfresurrect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.22-3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"pdfresurrect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.22-3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"pdfresurrect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.22-3"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"pdfresurrect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.12-1","0.12-2","0.12-4","0.12-4ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"pdfresurrect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12-6ubuntu0.2+esm1"}]}],"versions":["0.12-5","0.12-6","0.12-6ubuntu0.1","0.12-6ubuntu0.2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"pdfresurrect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.14-1ubuntu0.1~esm1"}]}],"versions":["0.12-6","0.14-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"pdfresurrect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.19-1ubuntu0.1~esm1"}]}],"versions":["0.18-2","0.19-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"pdfresurrect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.22-2ubuntu0.1~esm1"}]}],"versions":["0.22-1","0.22-2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"pdfresurrect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.23-2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"pdfresurrect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.23-2"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"pdfresurrect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.23-2build1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"pdfresurrect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.23-2","0.23-2build1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"pdfresurrect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12-6ubuntu0.2+esm1"}]}],"versions":["0.12-5","0.12-6","0.12-6ubuntu0.1","0.12-6ubuntu0.2"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"pdfresurrect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.14-1ubuntu0.1~esm1"}]}],"versions":["0.12-6","0.14-1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"pdfresurrect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.19-1ubuntu0.1~esm1"}]}],"versions":["0.18-2","0.19-1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"pdfresurrect","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.22-2ubuntu0.1~esm1"}]}],"versions":["0.22-1","0.22-2"],"bundled":5}],"products":[{"vendor":"pdfresurrect_project","product":"pdfresurrect"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1951198","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/enferex/pdfresurrect/issues/17","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3508"},{"url":"https://github.com/advisories/GHSA-wx33-xp59-j4ch"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3508","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3508","tags":["report"]},{"url":"https://github.com/enferex/pdfresurrect/commit/7e35d1806e111fd28610ccc86bb33f54792ac370","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5282-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3508","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-14267","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-14934","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2020-9549","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2020-20740","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-3508","description":"A flaw was found in PDFResurrect in version 0.22b. There is an infinite loop in get_xref_linear_skipped() in pdf.c via a crafted PDF file.","status":"published","published":"2021-04-28T13:44:09Z","modified":"2024-08-03T16:53:17.647Z","cwes":["CWE-835"],"updated_at":"2026-11-02T14:33:04.020035Z"}],"euvd":[{"id":"EUVD-2021-26827","description":"A flaw was found in PDFResurrect in version 0.22b. There is an infinite loop in get_xref_linear_skipped() in pdf.c via a crafted PDF file.","status":"published","published":"2021-04-28T13:44:09Z","modified":"2024-08-03T16:53:17Z","updated_at":"2026-11-03T03:25:13.052236Z"}],"ghsa":[{"id":"GHSA-wx33-xp59-j4ch","title":"A flaw was found in PDFResurrect in version 0.22b. There is an infinite loop in...","description":"A flaw was found in PDFResurrect in version 0.22b. There is an infinite loop in get_xref_linear_skipped() in pdf.c via a crafted PDF file.","status":"published","published":"2022-05-24T17:49:02Z","modified":"2023-01-29T05:06:07Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-835"],"updated_at":"2026-11-02T14:45:57.128816Z"}],"nvd":[{"id":"CVE-2021-3508","description":"A flaw was found in PDFResurrect in version 0.22b. There is an infinite loop in get_xref_linear_skipped() in pdf.c via a crafted PDF file.","status":"published","published":"2021-04-28T14:15:07.737Z","modified":"2026-06-17T04:05:15.507Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-835"],"updated_at":"2026-11-02T14:06:52.81233Z"}],"osv":[{"id":"CVE-2021-3508","description":"A flaw was found in PDFResurrect in version 0.22b. There is an infinite loop in get_xref_linear_skipped() in pdf.c via a crafted PDF file.","status":"published","published":"2021-04-28T14:15:07.737Z","modified":"2026-10-20T10:54:45.695315203Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:20.13324Z"},{"id":"DEBIAN-CVE-2021-3508","description":"A flaw was found in PDFResurrect in version 0.22b. There is an infinite loop in get_xref_linear_skipped() in pdf.c via a crafted PDF file.","status":"published","published":"2021-04-28T14:15:07.737Z","modified":"2026-10-23T18:04:00.647763797Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:35.233346Z"},{"id":"UBUNTU-CVE-2021-3508","description":"A flaw was found in PDFResurrect in version 0.22b. There is an infinite loop in get_xref_linear_skipped() in pdf.c via a crafted PDF file.","status":"published","published":"2021-04-28T14:15:00Z","modified":"2026-10-17T12:56:00.72663811Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:54:27.870979Z"},{"id":"USN-5282-1","title":"pdfresurrect vulnerabilities","description":"It was discovered that PDFResurrect was incorrectly handling corrupted PDF\nfiles. An attacker could possibly use this issue to cause a buffer overflow,\nresulting in a denial of service, or arbitrary code execution. This issue\nonly affected Ubuntu 16.04 ESM and Ubuntu 18.04 ESM. (CVE-2019-14267)\n\nIt was discovered that PDFResurrect incorrectly handled memory when loading\nPDF pages. An attacker could possibly use this issue to cause a heap\nbuffer overflow, resulting in a denial of service, or arbitrary code execution.\nThis issue only affected Ubuntu 16.04 ESM and Ubuntu 18.04 ESM.\n(CVE-2019-14934)\n\nIt was discovered that PDFResurrect was incorrectly validating header data in\ninput PDF files. An attacker could possibly use this issue to cause a heap\nbuffer overflow, resulting in a denial of service, or arbitrary code execution.\nThis issue only affected Ubuntu 16.04 ESM, Ubuntu 18.04 ESM and Ubuntu 20.04 ESM.\n(CVE-2020-20740)\n\nCarter Yagemann discovered that PDFResurrect incorrectly handled certain memory\noperations during PDF summary generation. An attacker could use this to\ncause out-of-bounds writes, resulting in a denial of service (system crash)\nor arbitrary code execution. This issue only affected Ubuntu 18.04 ESM and\nUbuntu 20.04 ESM. (CVE-2020-9549)\n\nIt was discovered that PDFResurrect was incorrectly processing data when\nperforming trailer search operations. An attacker could possibly use this issue\nto cause an infinite loop, resulting in a denial of service. (CVE-2021-3508)\n","status":"published","published":"2022-06-03T07:54:24Z","modified":"2026-06-25T13:31:01.265723244Z","updated_at":"2026-11-02T16:58:15.683829Z"}]}}
