{"id":"CVE-2021-25786","aliases":["DEBIAN-CVE-2021-25786","DLA-3548-1","EUVD-2021-12669","GHSA-f3pg-6m52-2j62","OESA-2023-1542","UBUNTU-CVE-2021-25786"],"status":"published","title":"An issue was discovered in QPDF version 10.0.4, allows remote attackers to execute arbitrary code...","description":"An issue was discovered in QPDF version 10.0.4, allows remote attackers to execute arbitrary code via crafted .pdf file to Pl_ASCII85Decoder::write parameter in libqpdf.","severity":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.00537,"percentile":0.45581,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-416"],"published":"2023-08-11T00:00:00Z","modified":"2026-10-23T18:03:25Z","fixes":[{"ecosystem":"Debian:12","package":"qpdf","fixed_in":["10.1.0-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"qpdf","fixed_in":["10.1.0-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"qpdf","fixed_in":["10.1.0-1"],"sources":["osv"]},{"ecosystem":"openEuler:20.03-LTS-SP1","package":"qpdf","fixed_in":["8.4.2-4.oe1"],"sources":["osv"]},{"ecosystem":"openEuler:20.03-LTS-SP3","package":"qpdf","fixed_in":["8.4.2-4.oe1"],"sources":["osv"]},{"ecosystem":"openEuler:22.03-LTS","package":"qpdf","fixed_in":["8.4.2-4.oe2203sp2"],"sources":["osv"]},{"ecosystem":"openEuler:22.03-LTS-SP1","package":"qpdf","fixed_in":["8.4.2-4.oe2203sp1"],"sources":["osv"]},{"ecosystem":"openEuler:22.03-LTS-SP2","package":"qpdf","fixed_in":["8.4.2-4.oe2203sp2"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"qpdf","fixed_in":["8.0.2-3~16.04.1+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"qpdf","fixed_in":["8.0.2-3ubuntu0.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:20.04:LTS","package":"qpdf","fixed_in":["9.1.1-1ubuntu0.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"qpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.1.0-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"qpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.1.0-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"qpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.1.0-1"}]}]},{"source":"osv","ecosystem":"Debian:10","package":"qpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.4.0-2+deb10u1"}]}],"versions":["8.4.0-2"],"bundled":3},{"source":"osv","ecosystem":"openEuler:20.03-LTS-SP1","package":"qpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.4.2-4.oe1"}]}]},{"source":"osv","ecosystem":"openEuler:20.03-LTS-SP3","package":"qpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.4.2-4.oe1"}]}]},{"source":"osv","ecosystem":"openEuler:22.03-LTS","package":"qpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.4.2-4.oe2203sp2"}]}]},{"source":"osv","ecosystem":"openEuler:22.03-LTS-SP1","package":"qpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.4.2-4.oe2203sp1"}]}]},{"source":"osv","ecosystem":"openEuler:22.03-LTS-SP2","package":"qpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.4.2-4.oe2203sp2"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"qpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.0.2-3~16.04.1+esm1"}]}],"versions":["5.1.3-2","5.1.3-3","5.2.0-1","5.2.0-2","6.0.0-2","8.0.2-3~16.04.1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"qpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.0.2-3ubuntu0.1"}]}],"versions":["7.0.0-1","7.1.0-1","7.1.1-1","8.0.0-1","8.0.1-1","8.0.2-1","8.0.2-3"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"qpdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.1.1-1ubuntu0.1"}]}],"versions":["8.4.2-1","9.0.2-1","9.1.0-1","9.1.1-1","9.1.1-1build1"]}],"products":[{"vendor":"qpdf_project","product":"qpdf"}],"references":[{"url":"https://github.com/qpdf/qpdf/issues/492","tags":["x_transferred","Exploit","Issue Tracking","Patch","fix"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00037.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25786","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-f3pg-6m52-2j62"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-25786","tags":["advisory"]},{"url":"https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1542","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-25786","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5026-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/notices/USN-5026-2","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-25786","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-25786","description":"An issue was discovered in QPDF version 10.0.4, allows remote attackers to execute arbitrary code via crafted .pdf file to Pl_ASCII85Decoder::write parameter in libqpdf.","status":"published","published":"2023-08-11T00:00:00Z","modified":"2024-10-09T17:50:57.829Z","updated_at":"2026-11-02T14:32:59.430294Z"}],"euvd":[{"id":"EUVD-2021-12669","description":"An issue was discovered in QPDF version 10.0.4, allows remote attackers to execute arbitrary code via crafted .pdf file to Pl_ASCII85Decoder::write parameter in libqpdf.","status":"published","published":"2023-08-11T00:00:00Z","modified":"2024-10-09T17:50:57Z","updated_at":"2026-11-03T00:27:42.985312Z"}],"ghsa":[{"id":"GHSA-f3pg-6m52-2j62","title":"An issue was discovered in QPDF version 10.0.4, allows remote attackers to execute arbitrary code...","description":"An issue was discovered in QPDF version 10.0.4, allows remote attackers to execute arbitrary code via crafted .pdf file to Pl_ASCII85Decoder::write parameter in libqpdf.","status":"published","published":"2023-08-11T15:30:46Z","modified":"2024-04-04T06:53:19Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:56:46.449942Z"}],"nvd":[{"id":"CVE-2021-25786","description":"An issue was discovered in QPDF version 10.0.4, allows remote attackers to execute arbitrary code via crafted .pdf file to Pl_ASCII85Decoder::write parameter in libqpdf.","status":"published","published":"2023-08-11T14:15:11.987Z","modified":"2026-06-17T03:42:27.34Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium","assessor":"primary"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:07:07.764332Z"}],"osv":[{"id":"CVE-2021-25786","description":"An issue was discovered in QPDF version 10.0.4, allows remote attackers to execute arbitrary code via crafted .pdf file to Pl_ASCII85Decoder::write parameter in libqpdf.","status":"published","published":"2023-08-11T14:15:11.987Z","modified":"2026-10-20T10:54:33.55980917Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:44:18.778776Z"},{"id":"DEBIAN-CVE-2021-25786","description":"An issue was discovered in QPDF version 10.0.4, allows remote attackers to execute arbitrary code via crafted .pdf file to Pl_ASCII85Decoder::write parameter in libqpdf.","status":"published","published":"2023-08-11T14:15:11.987Z","modified":"2026-10-23T18:03:25.926749246Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:45:34.637046Z"},{"id":"OESA-2023-1542","title":"qpdf security update","description":"QPDF is a command-line program that does structural, content-preserving transformations on PDF files. It could have been called something like pdf-to-pdf. It also provides many useful capabilities to developers of PDF-producing software or for people who just want to look at the innards of a PDF file to learn more about how they work.\n\nSecurity Fix(es):\n\nAn issue was discovered in QPDF version 10.0.4, allows remote attackers to execute arbitrary code via crafted .pdf file to Pl_ASCII85Decoder::write parameter in libqpdf.(CVE-2021-25786)","status":"published","published":"2023-08-26T11:05:59Z","modified":"2026-08-18T01:17:48.63270803Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:52:40.328856Z"},{"id":"UBUNTU-CVE-2021-25786","description":"An issue was discovered in QPDF version 10.0.4, allows remote attackers to execute arbitrary code via crafted .pdf file to Pl_ASCII85Decoder::write parameter in libqpdf.","status":"published","published":"2023-08-11T14:15:00Z","modified":"2026-04-22T12:50:11.67814Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:54:26.779273Z"},{"id":"DLA-3548-1","title":"qpdf - security update","status":"published","published":"2023-08-29T00:00:00Z","modified":"2026-03-09T01:17:57.671806Z","updated_at":"2026-11-02T15:46:11.734021Z"}]}}
