{"answers":{"affected":"3 open source packages ship an affected version, including libphp, php and php-min. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-21708 in the wild and no public exploit code.","fix":"Upgrade libphp to a fixed version for your release line: 7.4.28, 8.0.16 or 8.1.3.","what":"CVE-2021-21708 is a high-severity use after free vulnerability in Php Php, published on 27 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-21708 and fix it if it is affected.\n\nWhat it is: CVE-2021-21708 is a high-severity use after free vulnerability in Php Php, published on 27 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-21708 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- libphp (Bitnami): affected from 7.4.0; fixed in 7.4.28, 8.0.16, 8.1.3\n- php (Bitnami): affected from 7.4.0; fixed in 7.4.28, 8.0.16, 8.1.3\n- php-min (Bitnami): affected from 7.4.0; fixed in 7.4.28, 8.0.16, 8.1.3\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-21708/ (Markdown: https://insights.sbomify.com/CVE-2021-21708/index.md)","id":"CVE-2021-21708","markdown":"https://insights.sbomify.com/CVE-2021-21708/index.md","name":"CVE-2021-21708","record":{"aliases":["BIT-libphp-2021-21708","BIT-php-2021-21708","BIT-php-min-2021-21708","CLSA-2022-1647550779","CLSA-2022-1647550845","DEBIAN-CVE-2021-21708","GHSA-g9qg-rg7j-whhx","OESA-2022-1581","RHSA-2025:3016","RHSA-2025:3076","SUSE-SU-2022:0654-1","SUSE-SU-2022:0847-1","UBUNTU-CVE-2021-21708","USN-5303-1","openSUSE-SU-2022:0847-1","openSUSE-SU-2024:11854-1","openSUSE-SU-2024:11861-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP scripting language","requires_auth":"none","summary":"A use-after-free vulnerability in PHP's float filter allows attackers to cause crashes or potentially execute arbitrary code via crafted input.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"php","cpe":[{"product":"php","vendor":"php"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"In PHP versions 7.4.x below 7.4.28, 8.0.x below 8.0.16, and 8.1.x below 8.1.3, when using filter functions with FILTER_VALIDATE_FLOAT filter and min/max limits, if the filter fails, there is a possibility to trigger use of allocated memory after free, which can result it crashes, and potentially in overwrite of other memory chunks and RCE. This issue affects: code that uses FILTER_VALIDATE_FLOAT with min/max limits.","ecosystems":["Bitnami","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_e4s:8.4::appstream","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_tus:8.4::appstream","Red Hat:rhel_tus:8.6::appstream","SUSE:Enterprise Storage 7","SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise Module for Package Hub 15 SP3","SUSE:Linux Enterprise Module for Web and Scripting 12","SUSE:Linux Enterprise Module for Web and Scripting 15 SP3","SUSE:Linux Enterprise Server 15 SP2-BCL","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.1","SUSE:Manager Retail Branch Server 4.1","SUSE:Manager Server 4.1","openSUSE:Leap 15.3","openSUSE:Tumbleweed"],"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":"UAF due to php_filter_float() failing","id":"CVE-2021-21708","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"php:php","products":["php:php"],"type":"use_after_free","year":"2021"},"n_packages":470,"n_references":3,"next":{"headline":"Information disclosure in ZXV10 B860A","id":"CVE-2021-21722"},"packages":[{"ecosystem":"Bitnami","fixed":["7.4.28","8.0.16","8.1.3"],"introduced":["7.4.0","8.0.0","8.1.0"],"last_affected":[],"package":"libphp","purl":"pkg:bitnami/libphp","source":"BIT-libphp-2021-21708"},{"ecosystem":"Bitnami","fixed":["7.4.28","8.0.16","8.1.3"],"introduced":["7.4.0","8.0.0","8.1.0"],"last_affected":[],"package":"php","purl":"pkg:bitnami/php","source":"BIT-php-2021-21708"},{"ecosystem":"Bitnami","fixed":["7.4.28","8.0.16","8.1.3"],"introduced":["7.4.0","8.0.0","8.1.0"],"last_affected":[],"package":"php-min","purl":"pkg:bitnami/php-min","source":"BIT-php-min-2021-21708"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:5.1.18-1.module+el8.3.0+6678+b09f589e"],"introduced":["0"],"last_affected":[],"package":"apcu-panel","purl":"pkg:rpm/redhat/apcu-panel","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.6.1-1.module+el8.3.0+6678+b09f589e"],"introduced":["0"],"last_affected":[],"package":"libzip","purl":"pkg:rpm/redhat/libzip","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.6.1-1.module+el8.3.0+6678+b09f589e"],"introduced":["0"],"last_affected":[],"package":"libzip-debuginfo","purl":"pkg:rpm/redhat/libzip-debuginfo","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.6.1-1.module+el8.3.0+6678+b09f589e"],"introduced":["0"],"last_affected":[],"package":"libzip-debugsource","purl":"pkg:rpm/redhat/libzip-debugsource","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.6.1-1.module+el8.3.0+6678+b09f589e"],"introduced":["0"],"last_affected":[],"package":"libzip-devel","purl":"pkg:rpm/redhat/libzip-devel","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.6.1-1.module+el8.3.0+6678+b09f589e"],"introduced":["0"],"last_affected":[],"package":"libzip-tools","purl":"pkg:rpm/redhat/libzip-tools","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.6.1-1.module+el8.3.0+6678+b09f589e"],"introduced":["0"],"last_affected":[],"package":"libzip-tools-debuginfo","purl":"pkg:rpm/redhat/libzip-tools-debuginfo","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php","purl":"pkg:rpm/redhat/php","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-bcmath","purl":"pkg:rpm/redhat/php-bcmath","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-bcmath-debuginfo","purl":"pkg:rpm/redhat/php-bcmath-debuginfo","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-cli","purl":"pkg:rpm/redhat/php-cli","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-cli-debuginfo","purl":"pkg:rpm/redhat/php-cli-debuginfo","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-common","purl":"pkg:rpm/redhat/php-common","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-common-debuginfo","purl":"pkg:rpm/redhat/php-common-debuginfo","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-dba","purl":"pkg:rpm/redhat/php-dba","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-dba-debuginfo","purl":"pkg:rpm/redhat/php-dba-debuginfo","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-dbg","purl":"pkg:rpm/redhat/php-dbg","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-dbg-debuginfo","purl":"pkg:rpm/redhat/php-dbg-debuginfo","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-debuginfo","purl":"pkg:rpm/redhat/php-debuginfo","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-debugsource","purl":"pkg:rpm/redhat/php-debugsource","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-devel","purl":"pkg:rpm/redhat/php-devel","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-embedded","purl":"pkg:rpm/redhat/php-embedded","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-embedded-debuginfo","purl":"pkg:rpm/redhat/php-embedded-debuginfo","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-enchant","purl":"pkg:rpm/redhat/php-enchant","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-enchant-debuginfo","purl":"pkg:rpm/redhat/php-enchant-debuginfo","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-ffi","purl":"pkg:rpm/redhat/php-ffi","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-ffi-debuginfo","purl":"pkg:rpm/redhat/php-ffi-debuginfo","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-fpm","purl":"pkg:rpm/redhat/php-fpm","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-fpm-debuginfo","purl":"pkg:rpm/redhat/php-fpm-debuginfo","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-gd","purl":"pkg:rpm/redhat/php-gd","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-gd-debuginfo","purl":"pkg:rpm/redhat/php-gd-debuginfo","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-gmp","purl":"pkg:rpm/redhat/php-gmp","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-gmp-debuginfo","purl":"pkg:rpm/redhat/php-gmp-debuginfo","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-intl","purl":"pkg:rpm/redhat/php-intl","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-intl-debuginfo","purl":"pkg:rpm/redhat/php-intl-debuginfo","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-json","purl":"pkg:rpm/redhat/php-json","source":"RHSA-2025:3076"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:7.4.6-5.module+el8.4.0+22918+4f86939b.1"],"introduced":["0"],"last_affected":[],"package":"php-json-debuginfo","purl":"pkg:rpm/redhat/php-json-debuginfo","source":"RHSA-2025:3076"}],"prev":{"headline":"Special characters break path parsing in XML functions","id":"CVE-2021-21707"},"products":["PHP"],"published":"2022-02-27","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":"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":"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-09-17","vendors":["PHP Group"]},"summary":"A use-after-free vulnerability in PHP's float filter allows attackers to cause crashes or potentially execute arbitrary code via crafted input.","url":"https://insights.sbomify.com/CVE-2021-21708/"}