{"answers":{"affected":"3 open source packages ship an affected version, including libphp, php and php-min. It affects 2 products.","exploited":"There is no known exploitation of CVE-2021-21704 in the wild and no public exploit code.","fix":"Upgrade libphp to a fixed version for your release line: 7.3.29, 7.4.21 or 8.0.8.","what":"CVE-2021-21704 is a medium-severity memory corruption vulnerability in Netapp Clustered Data Ontap, published on 4 Oct 2021. 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-2021-21704 and fix it if it is affected.\n\nWhat it is: CVE-2021-21704 is a medium-severity memory corruption vulnerability in Netapp Clustered Data Ontap, published on 4 Oct 2021. 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-2021-21704 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- libphp (Bitnami): affected from 7.3.0; fixed in 7.3.29, 7.4.21, 8.0.8\n- php (Bitnami): affected from 7.3.0; fixed in 7.3.29, 7.4.21, 8.0.8\n- php-min (Bitnami): affected from 7.3.0; fixed in 7.3.29, 7.4.21, 8.0.8\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-21704/ (Markdown: https://insights.sbomify.com/CVE-2021-21704/index.md)","id":"CVE-2021-21704","markdown":"https://insights.sbomify.com/CVE-2021-21704/index.md","name":"CVE-2021-21704","record":{"aliases":["BIT-libphp-2021-21704","BIT-php-2021-21704","BIT-php-min-2021-21704","DEBIAN-CVE-2021-21704","ECHO-fa97-935d-c387","GHSA-q773-v75g-5rqg","SUSE-SU-2021:2638-1","SUSE-SU-2021:2795-1","UBUNTU-CVE-2021-21704","openSUSE-SU-2021:2795-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP Firebird driver","requires_auth":"none","summary":"A malicious Firebird database server can trigger memory corruption and denial of service in PHP applications using the Firebird PDO driver.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"php","cpe":[{"product":"clustered_data_ontap","vendor":"netapp"},{"product":"php","vendor":"php"}],"cvss":{"score":5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-190","name":"Integer Overflow or Wraparound"},{"id":"CWE-125","name":"Out-of-bounds Read"}],"description":"In PHP versions 7.3.x below 7.3.29, 7.4.x below 7.4.21 and 8.0.x below 8.0.8, when using Firebird PDO driver extension, a malicious database server could cause crashes in various database functions, such as getAttribute(), execute(), fetch() and others by returning invalid response data that is not parsed correctly by the driver. This can result in crashes, denial of service or potentially memory corruption.","ecosystems":["Bitnami","SUSE:Enterprise Storage 6","SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15-ESPOS","SUSE:Linux Enterprise High Performance Computing 15-LTSS","SUSE:Linux Enterprise Module for Web and Scripting 12","SUSE:Linux Enterprise Server 15 SP1-BCL","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.0","SUSE:Manager Retail Branch Server 4.0","SUSE:Manager Server 4.0","openSUSE:Leap 15.3"],"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":"Multiple vulnerabilities in Firebird client extension","id":"CVE-2021-21704","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"netapp:clustered_data_ontap","products":["netapp:clustered_data_ontap","php:php"],"type":"memory_corruption","year":"2021"},"n_packages":19,"n_references":6,"next":{"headline":"Incorrect URL validation in FILTER_VALIDATE_URL","id":"CVE-2021-21705"},"packages":[{"ecosystem":"Bitnami","fixed":["7.3.29","7.4.21","8.0.8"],"introduced":["7.3.0","7.4.0","8.0.0"],"last_affected":[],"package":"libphp","purl":"pkg:bitnami/libphp","source":"BIT-libphp-2021-21704"},{"ecosystem":"Bitnami","fixed":["7.3.29","7.4.21","8.0.8"],"introduced":["7.3.0","7.4.0","8.0.0"],"last_affected":[],"package":"php","purl":"pkg:bitnami/php","source":"BIT-php-2021-21704"},{"ecosystem":"Bitnami","fixed":["7.3.29","7.4.21","8.0.8"],"introduced":["7.3.0","7.4.0","8.0.0"],"last_affected":[],"package":"php-min","purl":"pkg:bitnami/php-min","source":"BIT-php-min-2021-21704"},{"ecosystem":"SUSE:Enterprise Storage 6","fixed":["7.2.5-4.79.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/suse/php7\u0026distro=SUSE%20Enterprise%20Storage%206","source":"SUSE-SU-2021:2795-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","fixed":["7.2.5-4.79.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/suse/php7\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOS","source":"SUSE-SU-2021:2795-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["7.2.5-4.79.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/suse/php7\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2021:2795-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-ESPOS","fixed":["7.2.5-4.79.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/suse/php7\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOS","source":"SUSE-SU-2021:2795-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-LTSS","fixed":["7.2.5-4.79.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/suse/php7\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSS","source":"SUSE-SU-2021:2795-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 12","fixed":["7.2.5-1.66.1"],"introduced":["0"],"last_affected":[],"package":"php72","purl":"pkg:rpm/suse/php72\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2012","source":"SUSE-SU-2021:2638-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-BCL","fixed":["7.2.5-4.79.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/suse/php7\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCL","source":"SUSE-SU-2021:2795-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-LTSS","fixed":["7.2.5-4.79.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/suse/php7\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSS","source":"SUSE-SU-2021:2795-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15-LTSS","fixed":["7.2.5-4.79.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/suse/php7\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSS","source":"SUSE-SU-2021:2795-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15","fixed":["7.2.5-4.79.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/suse/php7\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015","source":"SUSE-SU-2021:2795-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP1","fixed":["7.2.5-4.79.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/suse/php7\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1","source":"SUSE-SU-2021:2795-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["7.2.5-1.66.1"],"introduced":["0"],"last_affected":[],"package":"php72","purl":"pkg:rpm/suse/php72\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2021:2638-1"},{"ecosystem":"SUSE:Manager Proxy 4.0","fixed":["7.2.5-4.79.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/suse/php7\u0026distro=SUSE%20Manager%20Proxy%204.0","source":"SUSE-SU-2021:2795-1"},{"ecosystem":"SUSE:Manager Retail Branch Server 4.0","fixed":["7.2.5-4.79.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/suse/php7\u0026distro=SUSE%20Manager%20Retail%20Branch%20Server%204.0","source":"SUSE-SU-2021:2795-1"},{"ecosystem":"SUSE:Manager Server 4.0","fixed":["7.2.5-4.79.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/suse/php7\u0026distro=SUSE%20Manager%20Server%204.0","source":"SUSE-SU-2021:2795-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["7.2.5-4.79.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/opensuse/php7\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2021:2795-1"}],"prev":{"headline":"PHP-FPM memory access in root process leading to privilege escalation","id":"CVE-2021-21703"},"products":["PHP"],"published":"2021-10-04","related":[{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2015-7853","kev_date_added":null,"published":"2017-08-07"},{"cvss_score":9.8,"headline":"Denial of service in n/a","id":"CVE-2017-9119","kev_date_added":null,"published":"2017-05-21"},{"cvss_score":9.8,"headline":"Deserialization in PHP before 7.0.12","id":"CVE-2016-7480","kev_date_added":null,"published":"2017-01-11"},{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2017-5340","kev_date_added":null,"published":"2017-01-11"},{"cvss_score":9.1,"headline":"Information disclosure in n/a","id":"CVE-2017-11147","kev_date_added":null,"published":"2017-07-10"},{"cvss_score":8.8,"headline":"Missing authorization in Clustered Data ONTAP","id":"CVE-2018-5490","kev_date_added":null,"published":"2018-08-03"},{"cvss_score":8.8,"headline":"Code injection in n/a","id":"CVE-2017-12421","kev_date_added":null,"published":"2017-09-01"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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-09-17","vendors":["PHP Group"]},"summary":"A malicious Firebird database server can trigger memory corruption and denial of service in PHP applications using the Firebird PDO driver.","url":"https://insights.sbomify.com/CVE-2021-21704/"}