{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-25786 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2021-25786 is a medium-severity use after free vulnerability in n/a, published on 11 Aug 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-25786 and fix it if it is affected.\n\nWhat it is: CVE-2021-25786 is a medium-severity use after free vulnerability in n/a, published on 11 Aug 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-25786 exists.\n\nAffected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-25786/ (Markdown: https://insights.sbomify.com/CVE-2021-25786/index.md)","id":"CVE-2021-25786","markdown":"https://insights.sbomify.com/CVE-2021-25786/index.md","name":"CVE-2021-25786","record":{"aliases":["DEBIAN-CVE-2021-25786","GHSA-f3pg-6m52-2j62","OESA-2023-1542","UBUNTU-CVE-2021-25786"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"QPDF library","requires_auth":"none","summary":"Remote attackers can execute arbitrary code via a crafted PDF file exploiting a use-after-free vulnerability in the QPDF library.","user_interaction":"required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"qpdf","vendor":"qpdf_project"}],"cvss":{"score":5.3,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Use after free in n/a","id":"CVE-2021-25786","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"use_after_free","year":"2021"},"n_packages":0,"n_references":2,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-25790"},"packages":[],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-25785"},"products":["n/a"],"published":"2023-08-11","related":[{"cvss_score":7.8,"headline":"Denial of service in n/a","id":"CVE-2017-12595","kev_date_added":null,"published":"2017-08-27"},{"cvss_score":6.5,"headline":"Memory corruption in n/a","id":"CVE-2022-34503","kev_date_added":null,"published":"2022-07-22"},{"cvss_score":5.5,"headline":"Memory corruption in n/a","id":"CVE-2021-36978","kev_date_added":null,"published":"2021-07-20"},{"cvss_score":5.5,"headline":"Denial of service in n/a","id":"CVE-2015-9252","kev_date_added":null,"published":"2018-02-13"},{"cvss_score":5.5,"headline":"Denial of service in n/a","id":"CVE-2017-18183","kev_date_added":null,"published":"2018-02-13"},{"cvss_score":5.5,"headline":"Memory corruption in n/a","id":"CVE-2017-18184","kev_date_added":null,"published":"2018-02-13"},{"cvss_score":5.5,"headline":"Integer overflow in n/a","id":"CVE-2017-18185","kev_date_added":null,"published":"2018-02-13"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-09","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code via a crafted PDF file exploiting a use-after-free vulnerability in the QPDF library.","url":"https://insights.sbomify.com/CVE-2021-25786/"}