{"answers":{"affected":"3 open source packages ship an affected version, including libphp, php and php-min.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-2756 exists.","fix":"Upgrade libphp to a fixed version for your release line: 8.1.28, 8.2.18 or 8.3.5.","what":"CVE-2024-2756 is a medium-severity vulnerability in PHP, published on 29 Apr 2024. 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-2024-2756 and fix it if it is affected.\n\nWhat it is: CVE-2024-2756 is a medium-severity vulnerability in PHP, published on 29 Apr 2024. An attacker can exploit it over the internet without logging in, 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-2024-2756 exists.\n\nAffected packages and fixed versions:\n- libphp (Bitnami): affected all versions; fixed in 8.1.28, 8.2.18, 8.3.5\n- php (Bitnami): affected all versions; fixed in 8.1.28, 8.2.18, 8.3.5\n- php-min (Bitnami): affected all versions; fixed in 8.1.28, 8.2.18, 8.3.5\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-2024-2756/ (Markdown: https://insights.sbomify.com/CVE-2024-2756/index.md)","id":"CVE-2024-2756","markdown":"https://insights.sbomify.com/CVE-2024-2756/index.md","name":"CVE-2024-2756","record":{"aliases":["AZL-40070","BELL-CVE-2024-2756","BIT-libphp-2024-2756","BIT-php-2024-2756","BIT-php-min-2024-2756","CLEANSTART-2026-QQ38336","DEBIAN-CVE-2024-2756","ECHO-2a2f-0ff7-aca2","GHSA-wpj3-hf5j-x4v4","OESA-2024-2061","OESA-2024-2062","OESA-2024-2085","UBUNTU-CVE-2024-2756"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP scripting language","requires_auth":"none","summary":"Attackers can bypass __Host- and __Secure- cookie protections in PHP applications by setting standard insecure cookies, potentially leading to session hijacking or security control evasion.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"php","cpe":[],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"Due to an incomplete fix to  CVE-2022-31629 https://github.com/advisories/GHSA-c43m-486j-j32p , network and same-site attackers can set a standard insecure cookie in the victim's browser which is treated as a __Host- or __Secure- cookie by PHP applications.","ecosystems":["Bitnami"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"__Host-/__Secure- cookie bypass due to partial CVE-2022-31629 fix","id":"CVE-2024-2756","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"security_feature_bypass","year":"2024"},"n_packages":3,"n_references":4,"next":{"headline":"PHP mb_encode_mimeheader runs endlessly for some inputs","id":"CVE-2024-2757"},"packages":[{"ecosystem":"Bitnami","fixed":["8.1.28","8.2.18","8.3.5"],"introduced":["0","8.2.0","8.3.0"],"last_affected":[],"package":"libphp","purl":"pkg:bitnami/libphp","source":"BIT-libphp-2024-2756"},{"ecosystem":"Bitnami","fixed":["8.1.28","8.2.18","8.3.5"],"introduced":["0","8.2.0","8.3.0"],"last_affected":[],"package":"php","purl":"pkg:bitnami/php","source":"BIT-php-2024-2756"},{"ecosystem":"Bitnami","fixed":["8.1.28","8.2.18","8.3.5"],"introduced":["0","8.2.0","8.3.0"],"last_affected":[],"package":"php-min","purl":"pkg:bitnami/php-min","source":"BIT-php-min-2024-2756"}],"prev":{"headline":"SourceCodester Complete E-Commerce Site users_photo.php unrestricted upload","id":"CVE-2024-2754"},"products":["PHP"],"published":"2024-04-29","related":[],"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":"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":"2025-11-04","vendors":["PHP Group"]},"summary":"Attackers can bypass __Host- and __Secure- cookie protections in PHP applications by setting standard insecure cookies, potentially leading to session hijacking or security control evasion.","url":"https://insights.sbomify.com/CVE-2024-2756/"}