{"answers":{"affected":"It affects 6 products.","exploited":"There is no known exploitation of CVE-2007-3387 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2007-3387 is a medium-severity vulnerability in Apple Cups, published on 30 Jul 2007. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2007-3387 and fix it if it is affected.\n\nWhat it is: CVE-2007-3387 is a medium-severity vulnerability in Apple Cups, published on 30 Jul 2007. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2007-3387 in the wild and no public exploit code.\n\nAffected product: Apple Cups. 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-2007-3387/ (Markdown: https://insights.sbomify.com/CVE-2007-3387/index.md)","id":"CVE-2007-3387","markdown":"https://insights.sbomify.com/CVE-2007-3387/index.md","name":"CVE-2007-3387","record":{"aliases":["CVE-2007-5049","DEBIAN-CVE-2007-3387","DSA-1347-1","DSA-1348-1","DSA-1349-1","DSA-1350-1","DSA-1352-1","DSA-1354-1","DSA-1355-1","DSA-1357-1","DTSA-49-1","DTSA-50-1","DTSA-54-1","DTSA-62-1","GHSA-v25x-frpw-qg4x","RHSA-2007:0720","RHSA-2007:0729","RHSA-2007:0730","RHSA-2007:0731","RHSA-2007:0732","RHSA-2007:0735"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"PDF rendering library","requires_auth":"none","summary":"Remote attackers can execute arbitrary code via crafted PDF files due to an integer overflow in xpdf and related libraries.","user_interaction":"required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"cups","vendor":"apple"},{"product":"ubuntu_linux","vendor":"canonical"},{"product":"debian_linux","vendor":"debian"},{"product":"poppler","vendor":"freedesktop"},{"product":"gpdf","vendor":"gpdf_project"},{"product":"xpdf","vendor":"xpdfreader"}],"cvss":{"score":6.8,"severity":"medium","source":"nvd","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","version":"2.0"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"description":"Integer overflow in the StreamPredictor::StreamPredictor function in xpdf 3.02, as used in (1) poppler before 0.5.91, (2) gpdf before 2.8.2, (3) kpdf, (4) kdegraphics, (5) CUPS, (6) PDFedit, and other products, might allow remote attackers to execute arbitrary code via a crafted PDF file that triggers a stack-based buffer overflow in the StreamPredictor::getNextLine function.","ecosystems":["Red Hat:enterprise_linux:2.1::as","Red Hat:enterprise_linux:2.1::aw","Red Hat:enterprise_linux:2.1::es","Red Hat:enterprise_linux:2.1::ws","Red Hat:enterprise_linux:3::as","Red Hat:enterprise_linux:3::desktop","Red Hat:enterprise_linux:3::es","Red Hat:enterprise_linux:3::ws","Red Hat:enterprise_linux:4::as","Red Hat:enterprise_linux:4::desktop","Red Hat:enterprise_linux:4::es","Red Hat:enterprise_linux:4::ws","Red Hat:enterprise_linux:5::client","Red Hat:enterprise_linux:5::client_workstation","Red Hat:enterprise_linux:5::server","Red Hat:rhel_productivity:5"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Integer overflow in n/a","id":"CVE-2007-3387","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"apple:cups","products":["apple:cups","canonical:ubuntu_linux","debian:debian_linux","freedesktop:poppler","xpdfreader:xpdf"],"type":"integer_overflow","year":"2007"},"n_packages":210,"n_references":94,"next":{"headline":"Code injection in n/a","id":"CVE-2007-3388"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:2.1::as","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex","purl":"pkg:rpm/redhat/tetex","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::as","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-afm","purl":"pkg:rpm/redhat/tetex-afm","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::as","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-doc","purl":"pkg:rpm/redhat/tetex-doc","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::as","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-dvilj","purl":"pkg:rpm/redhat/tetex-dvilj","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::as","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-dvips","purl":"pkg:rpm/redhat/tetex-dvips","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::as","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-fonts","purl":"pkg:rpm/redhat/tetex-fonts","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::as","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-latex","purl":"pkg:rpm/redhat/tetex-latex","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::as","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-xdvi","purl":"pkg:rpm/redhat/tetex-xdvi","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::as","fixed":["1:0.92-18.RHEL2"],"introduced":["0"],"last_affected":[],"package":"xpdf","purl":"pkg:rpm/redhat/xpdf","source":"RHSA-2007:0735"},{"ecosystem":"Red Hat:enterprise_linux:2.1::aw","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex","purl":"pkg:rpm/redhat/tetex","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::aw","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-afm","purl":"pkg:rpm/redhat/tetex-afm","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::aw","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-doc","purl":"pkg:rpm/redhat/tetex-doc","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::aw","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-dvilj","purl":"pkg:rpm/redhat/tetex-dvilj","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::aw","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-dvips","purl":"pkg:rpm/redhat/tetex-dvips","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::aw","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-fonts","purl":"pkg:rpm/redhat/tetex-fonts","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::aw","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-latex","purl":"pkg:rpm/redhat/tetex-latex","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::aw","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-xdvi","purl":"pkg:rpm/redhat/tetex-xdvi","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::aw","fixed":["1:0.92-18.RHEL2"],"introduced":["0"],"last_affected":[],"package":"xpdf","purl":"pkg:rpm/redhat/xpdf","source":"RHSA-2007:0735"},{"ecosystem":"Red Hat:enterprise_linux:2.1::es","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex","purl":"pkg:rpm/redhat/tetex","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::es","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-afm","purl":"pkg:rpm/redhat/tetex-afm","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::es","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-doc","purl":"pkg:rpm/redhat/tetex-doc","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::es","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-dvilj","purl":"pkg:rpm/redhat/tetex-dvilj","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::es","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-dvips","purl":"pkg:rpm/redhat/tetex-dvips","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::es","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-fonts","purl":"pkg:rpm/redhat/tetex-fonts","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::es","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-latex","purl":"pkg:rpm/redhat/tetex-latex","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::es","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-xdvi","purl":"pkg:rpm/redhat/tetex-xdvi","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::es","fixed":["1:0.92-18.RHEL2"],"introduced":["0"],"last_affected":[],"package":"xpdf","purl":"pkg:rpm/redhat/xpdf","source":"RHSA-2007:0735"},{"ecosystem":"Red Hat:enterprise_linux:2.1::ws","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex","purl":"pkg:rpm/redhat/tetex","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::ws","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-afm","purl":"pkg:rpm/redhat/tetex-afm","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::ws","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-doc","purl":"pkg:rpm/redhat/tetex-doc","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::ws","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-dvilj","purl":"pkg:rpm/redhat/tetex-dvilj","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::ws","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-dvips","purl":"pkg:rpm/redhat/tetex-dvips","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::ws","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-fonts","purl":"pkg:rpm/redhat/tetex-fonts","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::ws","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-latex","purl":"pkg:rpm/redhat/tetex-latex","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::ws","fixed":["0:1.0.7-38.5E.11"],"introduced":["0"],"last_affected":[],"package":"tetex-xdvi","purl":"pkg:rpm/redhat/tetex-xdvi","source":"RHSA-2007:0731"},{"ecosystem":"Red Hat:enterprise_linux:2.1::ws","fixed":["1:0.92-18.RHEL2"],"introduced":["0"],"last_affected":[],"package":"xpdf","purl":"pkg:rpm/redhat/xpdf","source":"RHSA-2007:0735"},{"ecosystem":"Red Hat:enterprise_linux:3::as","fixed":["1:1.1.17-13.3.45"],"introduced":["0"],"last_affected":[],"package":"cups","purl":"pkg:rpm/redhat/cups","source":"RHSA-2007:0720"},{"ecosystem":"Red Hat:enterprise_linux:3::as","fixed":["1:1.1.17-13.3.45"],"introduced":["0"],"last_affected":[],"package":"cups-debuginfo","purl":"pkg:rpm/redhat/cups-debuginfo","source":"RHSA-2007:0720"},{"ecosystem":"Red Hat:enterprise_linux:3::as","fixed":["1:1.1.17-13.3.45"],"introduced":["0"],"last_affected":[],"package":"cups-devel","purl":"pkg:rpm/redhat/cups-devel","source":"RHSA-2007:0720"},{"ecosystem":"Red Hat:enterprise_linux:3::as","fixed":["1:1.1.17-13.3.45"],"introduced":["0"],"last_affected":[],"package":"cups-libs","purl":"pkg:rpm/redhat/cups-libs","source":"RHSA-2007:0720"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2007-3386"},"products":["n/a"],"published":"2007-07-30","related":[{"cvss_score":10,"headline":"Cross-site request forgery in n/a","id":"CVE-2008-5184","kev_date_added":null,"published":"2008-11-21"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2008-3641","kev_date_added":null,"published":"2008-10-10"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2008-0053","kev_date_added":null,"published":"2008-03-18"},{"cvss_score":9.8,"headline":"Missing authorization in cups","id":"CVE-2012-6094","kev_date_added":null,"published":"2019-12-20"},{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2010-2941","kev_date_added":null,"published":"2010-11-05"},{"cvss_score":9.8,"headline":"Security feature bypass in n/a","id":"CVE-2004-2154","kev_date_added":null,"published":"2005-07-05"},{"cvss_score":7.5,"headline":"Auth bypass in n/a","id":"CVE-2017-18190","kev_date_added":null,"published":"2018-02-16"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-07","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code via crafted PDF files due to an integer overflow in xpdf and related libraries.","url":"https://insights.sbomify.com/CVE-2007-3387/"}