{"answers":{"affected":"1 open source package ship an affected version, including apache. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-40725 in the wild and no public exploit code.","fix":"Upgrade apache to 2.4.62 or later.","what":"CVE-2024-40725 is a medium-severity vulnerability in Apache Http Server, published on 18 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-40725 and fix it if it is affected.\n\nWhat it is: CVE-2024-40725 is a medium-severity vulnerability in Apache Http Server, published on 18 Jul 2024. 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-2024-40725 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- apache (Bitnami): affected from 2.4.60; fixed in 2.4.62\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-40725/ (Markdown: https://insights.sbomify.com/CVE-2024-40725/index.md)","id":"CVE-2024-40725","markdown":"https://insights.sbomify.com/CVE-2024-40725/index.md","name":"CVE-2024-40725","record":{"aliases":["ALPINE-CVE-2024-40725","AZL-43414","AZL-43427","BELL-CVE-2024-40725","BIT-apache-2024-40725","CLEANSTART-2026-BD98589","DEBIAN-CVE-2024-40725","GHSA-x749-289q-pg9q","OESA-2024-2288","SUSE-SU-2024:3742-1","SUSE-SU-2024:3750-1","SUSE-SU-2024:3864-1","UBUNTU-CVE-2024-40725","USN-6902-1"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache HTTP Server","requires_auth":"none","summary":"Attackers can disclose source code of local content, such as PHP scripts, when handlers are configured via AddType in Apache HTTP Server.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"http_server","vendor":"apache"}],"cvss":{"score":5.3,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"}],"description":"A partial fix for  CVE-2024-39884 in the core of Apache HTTP Server 2.4.61 ignores some use of the legacy content-type based configuration of handlers. \"AddType\" and similar configuration, under some circumstances where files are requested indirectly, result in source code disclosure of local content. For example, PHP scripts may be served instead of interpreted.\n\nUsers are recommended to upgrade to version 2.4.62, which fixes this issue.","ecosystems":["Bitnami","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Module for Package Hub 15 SP5","SUSE:Linux Enterprise Module for Package Hub 15 SP6","SUSE:Linux Enterprise Module for Server Applications 15 SP5","SUSE:Linux Enterprise Module for Server Applications 15 SP6","SUSE:Linux Enterprise Server 12 SP5-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Manager Proxy 4.3","SUSE:Manager Server 4.3","openSUSE:Leap 15.5","openSUSE:Leap 15.6"],"exploits":{"exploitdb":0,"first_seen":"2024-07-19","github_poc":2,"max_poc_stars":87,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-07-19T03:51:54Z","kind":"github_poc","ref":"https://github.com/TAM-K592/CVE-2024-40725-CVE-2024-40898","stars":87,"title":"CVE-2024-40725 and CVE-2024-40898, affecting Apache HTTP Server versions 2.4.0 through 2.4.61. These flaws pose significant risks to web servers worldwide, potentially leading to source code disclosure and server-side request forgery (SSRF) attacks."},{"date":"2024-12-18T15:09:38Z","kind":"github_poc","ref":"https://github.com/soltanali0/CVE-2024-40725","stars":12,"title":"exploit CVE-2024-40725 (Apache httpd) with "}],"tier":"poc_unverified"},"has_fix":true,"headline":"Apache HTTP Server: source code disclosure with handlers configured via AddType","id":"CVE-2024-40725","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"apache:http_server","products":["apache:http_server"],"type":"information_disclosure","year":"2024"},"n_packages":32,"n_references":1,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2024-40726"},"packages":[{"ecosystem":"Bitnami","fixed":["2.4.62"],"introduced":["2.4.60"],"last_affected":[],"package":"apache","purl":"pkg:bitnami/apache","source":"BIT-apache-2024-40725"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","fixed":["2.4.51-150400.6.37.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOS","source":"SUSE-SU-2024:3864-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","fixed":["2.4.51-150400.6.37.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSS","source":"SUSE-SU-2024:3864-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP5","fixed":["2.4.51-150400.6.37.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5","source":"SUSE-SU-2024:3864-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","fixed":["2.4.58-150600.5.26.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6","source":"SUSE-SU-2024:3742-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","fixed":["2.4.58-150600.5.26.1"],"introduced":["0"],"last_affected":[],"package":"apache2-prefork","purl":"pkg:rpm/suse/apache2-prefork\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6","source":"SUSE-SU-2024:3742-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP5","fixed":["2.4.51-150400.6.37.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP5","source":"SUSE-SU-2024:3864-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP6","fixed":["2.4.58-150600.5.26.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6","source":"SUSE-SU-2024:3742-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP6","fixed":["2.4.58-150600.5.26.1"],"introduced":["0"],"last_affected":[],"package":"apache2-event","purl":"pkg:rpm/suse/apache2-event\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6","source":"SUSE-SU-2024:3742-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP5","fixed":["2.4.51-150400.6.37.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP5","source":"SUSE-SU-2024:3864-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP6","fixed":["2.4.51-150400.6.37.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP6","source":"SUSE-SU-2024:3864-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP6","fixed":["2.4.58-150600.5.26.1"],"introduced":["0"],"last_affected":[],"package":"apache2-devel","purl":"pkg:rpm/suse/apache2-devel\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP6","source":"SUSE-SU-2024:3742-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP6","fixed":["2.4.58-150600.5.26.1"],"introduced":["0"],"last_affected":[],"package":"apache2-utils","purl":"pkg:rpm/suse/apache2-utils\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP6","source":"SUSE-SU-2024:3742-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP6","fixed":["2.4.58-150600.5.26.1"],"introduced":["0"],"last_affected":[],"package":"apache2-worker","purl":"pkg:rpm/suse/apache2-worker\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP6","source":"SUSE-SU-2024:3742-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5-LTSS","fixed":["2.4.51-35.63.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-LTSS","source":"SUSE-SU-2024:3750-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5-LTSS","fixed":["2.4.51-35.63.1"],"introduced":["0"],"last_affected":[],"package":"apache2-tls13","purl":"pkg:rpm/suse/apache2-tls13\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-LTSS","source":"SUSE-SU-2024:3750-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP4-LTSS","fixed":["2.4.51-150400.6.37.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSS","source":"SUSE-SU-2024:3864-1"},{"ecosystem":"SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","fixed":["2.4.51-35.63.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5","source":"SUSE-SU-2024:3750-1"},{"ecosystem":"SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","fixed":["2.4.51-35.63.1"],"introduced":["0"],"last_affected":[],"package":"apache2-tls13","purl":"pkg:rpm/suse/apache2-tls13\u0026distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5","source":"SUSE-SU-2024:3750-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["2.4.51-35.63.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2024:3750-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["2.4.51-35.63.1"],"introduced":["0"],"last_affected":[],"package":"apache2-tls13","purl":"pkg:rpm/suse/apache2-tls13\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2024:3750-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP4","fixed":["2.4.51-150400.6.37.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4","source":"SUSE-SU-2024:3864-1"},{"ecosystem":"SUSE:Manager Proxy 4.3","fixed":["2.4.51-150400.6.37.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Manager%20Proxy%204.3","source":"SUSE-SU-2024:3864-1"},{"ecosystem":"SUSE:Manager Server 4.3","fixed":["2.4.51-150400.6.37.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/suse/apache2\u0026distro=SUSE%20Manager%20Server%204.3","source":"SUSE-SU-2024:3864-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["2.4.51-150400.6.37.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/opensuse/apache2\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:3864-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["2.4.58-150600.5.26.1"],"introduced":["0"],"last_affected":[],"package":"apache2","purl":"pkg:rpm/opensuse/apache2\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:3742-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["2.4.58-150600.5.26.1"],"introduced":["0"],"last_affected":[],"package":"apache2-devel","purl":"pkg:rpm/opensuse/apache2-devel\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:3742-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["2.4.58-150600.5.26.1"],"introduced":["0"],"last_affected":[],"package":"apache2-event","purl":"pkg:rpm/opensuse/apache2-event\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:3742-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["2.4.58-150600.5.26.1"],"introduced":["0"],"last_affected":[],"package":"apache2-manual","purl":"pkg:rpm/opensuse/apache2-manual\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:3742-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["2.4.58-150600.5.26.1"],"introduced":["0"],"last_affected":[],"package":"apache2-prefork","purl":"pkg:rpm/opensuse/apache2-prefork\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:3742-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["2.4.58-150600.5.26.1"],"introduced":["0"],"last_affected":[],"package":"apache2-utils","purl":"pkg:rpm/opensuse/apache2-utils\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:3742-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["2.4.58-150600.5.26.1"],"introduced":["0"],"last_affected":[],"package":"apache2-worker","purl":"pkg:rpm/opensuse/apache2-worker\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:3742-1"}],"prev":{"headline":"Memory corruption in Assimp","id":"CVE-2024-40724"},"products":["Apache HTTP Server"],"published":"2024-07-18","related":[{"cvss_score":9.8,"headline":"Apache HTTP Server Path Traversal","id":"CVE-2021-42013","kev_date_added":"2021-11-03","published":"2021-10-07"},{"cvss_score":9.1,"headline":"Apache HTTP Server Improper Escaping of Output","id":"CVE-2024-38475","kev_date_added":"2025-05-01","published":"2024-07-01"},{"cvss_score":9,"headline":"Apache HTTP Server-Side Request Forgery (SSRF)","id":"CVE-2021-40438","kev_date_added":"2021-12-01","published":"2021-09-16"},{"cvss_score":7.8,"headline":"Apache HTTP Server Privilege Escalation","id":"CVE-2019-0211","kev_date_added":"2021-11-03","published":"2019-04-08"},{"cvss_score":7.5,"headline":"Apache HTTP Server Path Traversal","id":"CVE-2021-41773","kev_date_added":"2021-11-03","published":"2021-10-05"},{"cvss_score":10,"headline":"Use after free in n/a","id":"CVE-2010-0425","kev_date_added":null,"published":"2010-03-05"},{"cvss_score":10,"headline":"Auth bypass in n/a","id":"CVE-2005-2700","kev_date_added":null,"published":"2005-09-06"}],"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":"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-14","vendors":["Apache Software Foundation"]},"summary":"Attackers can disclose source code of local content, such as PHP scripts, when handlers are configured via AddType in Apache HTTP Server.","url":"https://insights.sbomify.com/CVE-2024-40725/"}