{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-7890 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2017-7890 is a medium-severity vulnerability in Php Php, published on 2 Aug 2017. 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-2017-7890 and fix it if it is affected.\n\nWhat it is: CVE-2017-7890 is a medium-severity vulnerability in Php Php, published on 2 Aug 2017. 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-2017-7890 in the wild and no public exploit code.\n\nAffected product: Php Php. 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-2017-7890/ (Markdown: https://insights.sbomify.com/CVE-2017-7890/index.md)","id":"CVE-2017-7890","markdown":"https://insights.sbomify.com/CVE-2017-7890/index.md","name":"CVE-2017-7890","record":{"aliases":["ALPINE-CVE-2017-7890","DEBIAN-CVE-2017-7890","DLA-1055-1","DSA-3938-1","GHSA-2cx4-qmrc-3ff4","RHSA-2018:0406","UBUNTU-CVE-2017-7890","USN-3389-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"GD Graphics Library","requires_auth":"none","summary":"A crafted GIF image can trigger uninitialized memory reads in libgd, allowing attackers to disclose sensitive stack data.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"php","vendor":"php"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"The GIF decoding function gdImageCreateFromGifCtx in gd_gif_in.c in the GD Graphics Library (aka libgd), as used in PHP before 5.6.31 and 7.x before 7.1.7, does not zero colorMap arrays before use. A specially crafted GIF image could use the uninitialized tables to read ~700 bytes from the top of the stack, potentially disclosing sensitive information.","ecosystems":["Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation"],"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":"Information disclosure in n/a","id":"CVE-2017-7890","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"php:php","products":["php:php"],"type":"information_disclosure","year":"2017"},"n_packages":104,"n_references":10,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2017-7891"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php","purl":"pkg:rpm/redhat/php","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-bcmath","purl":"pkg:rpm/redhat/php-bcmath","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-cli","purl":"pkg:rpm/redhat/php-cli","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-common","purl":"pkg:rpm/redhat/php-common","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-dba","purl":"pkg:rpm/redhat/php-dba","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-debuginfo","purl":"pkg:rpm/redhat/php-debuginfo","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-devel","purl":"pkg:rpm/redhat/php-devel","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-embedded","purl":"pkg:rpm/redhat/php-embedded","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-enchant","purl":"pkg:rpm/redhat/php-enchant","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-fpm","purl":"pkg:rpm/redhat/php-fpm","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-gd","purl":"pkg:rpm/redhat/php-gd","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-intl","purl":"pkg:rpm/redhat/php-intl","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-ldap","purl":"pkg:rpm/redhat/php-ldap","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-mbstring","purl":"pkg:rpm/redhat/php-mbstring","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-mysql","purl":"pkg:rpm/redhat/php-mysql","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-mysqlnd","purl":"pkg:rpm/redhat/php-mysqlnd","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-odbc","purl":"pkg:rpm/redhat/php-odbc","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-pdo","purl":"pkg:rpm/redhat/php-pdo","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-pgsql","purl":"pkg:rpm/redhat/php-pgsql","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-process","purl":"pkg:rpm/redhat/php-process","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-pspell","purl":"pkg:rpm/redhat/php-pspell","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-recode","purl":"pkg:rpm/redhat/php-recode","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-snmp","purl":"pkg:rpm/redhat/php-snmp","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-soap","purl":"pkg:rpm/redhat/php-soap","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-xml","purl":"pkg:rpm/redhat/php-xml","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-xmlrpc","purl":"pkg:rpm/redhat/php-xmlrpc","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php","purl":"pkg:rpm/redhat/php","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-bcmath","purl":"pkg:rpm/redhat/php-bcmath","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-cli","purl":"pkg:rpm/redhat/php-cli","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-common","purl":"pkg:rpm/redhat/php-common","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-dba","purl":"pkg:rpm/redhat/php-dba","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-debuginfo","purl":"pkg:rpm/redhat/php-debuginfo","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-devel","purl":"pkg:rpm/redhat/php-devel","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-embedded","purl":"pkg:rpm/redhat/php-embedded","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-enchant","purl":"pkg:rpm/redhat/php-enchant","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-fpm","purl":"pkg:rpm/redhat/php-fpm","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-gd","purl":"pkg:rpm/redhat/php-gd","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-intl","purl":"pkg:rpm/redhat/php-intl","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-ldap","purl":"pkg:rpm/redhat/php-ldap","source":"RHSA-2018:0406"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:5.4.16-43.el7_4.1"],"introduced":["0"],"last_affected":[],"package":"php-mbstring","purl":"pkg:rpm/redhat/php-mbstring","source":"RHSA-2018:0406"}],"prev":{"headline":"Security feature bypass in n/a","id":"CVE-2017-7889"},"products":["n/a"],"published":"2017-08-02","related":[{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2012-2688","kev_date_added":null,"published":"2012-07-20"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2012-2376","kev_date_added":null,"published":"2012-05-21"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2011-3268","kev_date_added":null,"published":"2011-08-25"},{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2009-4143","kev_date_added":null,"published":"2009-12-21"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2008-5557","kev_date_added":null,"published":"2008-12-23"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2008-2050","kev_date_added":null,"published":"2008-05-05"},{"cvss_score":10,"headline":"Command injection in n/a","id":"CVE-2008-2051","kev_date_added":null,"published":"2008-05-05"}],"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-05","vendors":["n/a"]},"summary":"A crafted GIF image can trigger uninitialized memory reads in libgd, allowing attackers to disclose sensitive stack data.","url":"https://insights.sbomify.com/CVE-2017-7890/"}