{"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-2025-1861 in the wild and no public exploit code.","fix":"Upgrade libphp to a fixed version for your release line: 8.1.32, 8.2.28, 8.3.19 or 8.4.5.","what":"CVE-2025-1861 is a medium-severity vulnerability in Php Php, published on 30 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-1861 and fix it if it is affected.\n\nWhat it is: CVE-2025-1861 is a medium-severity vulnerability in Php Php, published on 30 Mar 2025. 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-2025-1861 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- libphp (Bitnami): affected all versions; fixed in 8.1.32, 8.2.28, 8.3.19, 8.4.5\n- php (Bitnami): affected all versions; fixed in 8.1.32, 8.2.28, 8.3.19, 8.4.5\n- php-min (Bitnami): affected all versions; fixed in 8.1.32, 8.2.28, 8.3.19, 8.4.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-2025-1861/ (Markdown: https://insights.sbomify.com/CVE-2025-1861/index.md)","id":"CVE-2025-1861","markdown":"https://insights.sbomify.com/CVE-2025-1861/index.md","name":"CVE-2025-1861","record":{"aliases":["AZL-59306","AZL-59330","BELL-CVE-2025-1861","BIT-libphp-2025-1861","BIT-php-2025-1861","BIT-php-min-2025-1861","CLSA-2025-1744723009","CLSA-2025-1744783252","DEBIAN-CVE-2025-1861","ECHO-9420-fb00-0db8","GHSA-52jp-hrpf-2jff","MINI-2ppq-hc77-6vv6","MINI-8g9j-2p33-6rxg","MINI-c355-6pfq-p7q4","MINI-xqxw-jc5g-3x6q","UBUNTU-CVE-2025-1861"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["other"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP HTTP wrapper","requires_auth":"none","summary":"PHP's HTTP wrapper truncates redirect locations to 1024 bytes, potentially causing incorrect redirections due to non-compliance with RFC9110 recommendations.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"php","cpe":[{"product":"ontap","vendor":"netapp"},{"product":"php","vendor":"php"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-131","name":"Incorrect Calculation of Buffer Size"}],"description":"In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when parsing HTTP redirect in the response to an HTTP request, there is currently limit on the location value size caused by limited size of the location buffer to 1024. However as per RFC9110, the limit is recommended to be 8000. This may lead to incorrect URL truncation and redirecting to a wrong location.","ecosystems":["Bitnami"],"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":"Stream HTTP wrapper truncates redirect location to 1024 bytes","id":"CVE-2025-1861","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"php:php","products":["php:php"],"type":"other","year":"2025"},"n_packages":3,"n_references":1,"next":{"headline":"File upload in WSO2 Enterprise Integrator","id":"CVE-2025-1862"},"packages":[{"ecosystem":"Bitnami","fixed":["8.1.32","8.2.28","8.3.19","8.4.5"],"introduced":["0","8.2.0","8.3.0","8.4.0"],"last_affected":[],"package":"libphp","purl":"pkg:bitnami/libphp","source":"BIT-libphp-2025-1861"},{"ecosystem":"Bitnami","fixed":["8.1.32","8.2.28","8.3.19","8.4.5"],"introduced":["0","8.2.0","8.3.0","8.4.0"],"last_affected":[],"package":"php","purl":"pkg:bitnami/php","source":"BIT-php-2025-1861"},{"ecosystem":"Bitnami","fixed":["8.1.32","8.2.28","8.3.19","8.4.5"],"introduced":["0","8.2.0","8.3.0","8.4.0"],"last_affected":[],"package":"php-min","purl":"pkg:bitnami/php-min","source":"BIT-php-min-2025-1861"}],"prev":{"headline":"Data::Entropy for Perl uses insecure rand() function for cryptographic functions","id":"CVE-2025-1860"},"products":["PHP"],"published":"2025-03-30","related":[{"cvss_score":9.8,"headline":"OOB access in ldap_escape","id":"CVE-2024-8932","kev_date_added":null,"published":"2024-11-22"},{"cvss_score":8.7,"headline":"Auth bypass in ONTAP 9","id":"CVE-2026-22049","kev_date_added":null,"published":"2026-07-22"},{"cvss_score":6.9,"headline":"Business logic in ONTAP 9","id":"CVE-2026-22050","kev_date_added":null,"published":"2026-01-12"},{"cvss_score":6.3,"headline":"Streams HTTP wrapper does not fail for headers with invalid name and no colon","id":"CVE-2025-1734","kev_date_added":null,"published":"2025-03-30"},{"cvss_score":6.3,"headline":"Stream HTTP wrapper header check might omit basic auth header","id":"CVE-2025-1736","kev_date_added":null,"published":"2025-03-30"},{"cvss_score":5.3,"headline":"Information disclosure in ONTAP 9","id":"CVE-2026-22052","kev_date_added":null,"published":"2026-03-04"}],"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":"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["PHP Group"]},"summary":"PHP's HTTP wrapper truncates redirect locations to 1024 bytes, potentially causing incorrect redirections due to non-compliance with RFC9110 recommendations.","url":"https://insights.sbomify.com/CVE-2025-1861/"}