{"answers":{"affected":"1 open source package ship an affected version, including apache. It affects 39 products.","exploited":"Yes. Attackers have exploited CVE-2021-40438 in the wild since at least 1 Dec 2021, including in ransomware campaigns.","fix":"Upgrade apache to 2.4.49 or later. US federal agencies must fix it by 15 Dec 2021.","what":"CVE-2021-40438 is a critical server-side request forgery vulnerability in Apache Http Server, published on 16 Sep 2021. 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-40438 and fix it if it is affected.\n\nWhat it is: CVE-2021-40438 is a critical server-side request forgery vulnerability in Apache Http Server, published on 16 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2021-40438 in the wild since at least 1 Dec 2021, including in ransomware campaigns.\n\nAffected packages and fixed versions:\n- apache (Bitnami): affected all versions; fixed in 2.4.49\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-40438/ (Markdown: https://insights.sbomify.com/CVE-2021-40438/index.md)","id":"CVE-2021-40438","markdown":"https://insights.sbomify.com/CVE-2021-40438/index.md","name":"CVE-2021-40438","record":{"aliases":["ALBA-2021:4604","ALPINE-CVE-2021-40438","AZL-6487","BIT-apache-2021-40438","CLEANSTART-2026-BM33422","DEBIAN-CVE-2021-40438","GHSA-rwxq-58vm-3v2j","RHSA-2021:3746","RHSA-2021:3754","RHSA-2021:3836","RHSA-2021:3837","RHSA-2021:3856","UBUNTU-CVE-2021-40438","openSUSE-SU-2025:14708-1"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache HTTP Server","requires_auth":"none","summary":"Attackers can force Apache mod_proxy to forward requests to arbitrary internal servers, enabling access to restricted resources.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"http_server","vendor":"apache"},{"product":"brocade_fabric_operating_system_firmware","vendor":"broadcom"},{"product":"debian_linux","vendor":"debian"},{"product":"f5os","vendor":"f5"},{"product":"fedora","vendor":"fedoraproject"},{"product":"cloud_backup","vendor":"netapp"},{"product":"clustered_data_ontap","vendor":"netapp"},{"product":"storagegrid","vendor":"netapp"},{"product":"enterprise_manager_ops_center","vendor":"oracle"},{"product":"http_server","vendor":"oracle"},{"product":"instantis_enterprisetrack","vendor":"oracle"},{"product":"secure_global_desktop","vendor":"oracle"},{"product":"zfs_storage_appliance_kit","vendor":"oracle"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"enterprise_linux_eus","vendor":"redhat"},{"product":"enterprise_linux_for_arm_64","vendor":"redhat"},{"product":"enterprise_linux_for_arm_64_eus","vendor":"redhat"},{"product":"enterprise_linux_for_ibm_z_systems","vendor":"redhat"},{"product":"enterprise_linux_for_ibm_z_systems_eus","vendor":"redhat"},{"product":"enterprise_linux_for_ibm_z_systems_eus_s390x","vendor":"redhat"},{"product":"enterprise_linux_for_power_big_endian","vendor":"redhat"},{"product":"enterprise_linux_for_power_little_endian","vendor":"redhat"},{"product":"enterprise_linux_for_power_little_endian_eus","vendor":"redhat"},{"product":"enterprise_linux_for_scientific_computing","vendor":"redhat"},{"product":"enterprise_linux_server","vendor":"redhat"},{"product":"enterprise_linux_server_aus","vendor":"redhat"},{"product":"enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions","vendor":"redhat"},{"product":"enterprise_linux_server_tus","vendor":"redhat"},{"product":"enterprise_linux_server_update_services_for_sap_solutions","vendor":"redhat"},{"product":"enterprise_linux_update_services_for_sap_solutions","vendor":"redhat"},{"product":"enterprise_linux_workstation","vendor":"redhat"},{"product":"jboss_core_services","vendor":"redhat"},{"product":"software_collections","vendor":"redhat"},{"product":"rocky_linux","vendor":"resf"},{"product":"ruggedcom_nms","vendor":"siemens"},{"product":"sinec_nms","vendor":"siemens"},{"product":"sinema_remote_connect_server","vendor":"siemens"},{"product":"sinema_server","vendor":"siemens"},{"product":"tenable.sc","vendor":"tenable"}],"cvss":{"score":9,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"A crafted request uri-path can cause mod_proxy to forward the request to an origin server choosen by the remote user. This issue affects Apache HTTP Server 2.4.48 and earlier.","ecosystems":["AlmaLinux:8","Bitnami","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:jboss_core_services:1::el7","Red Hat:jboss_core_services:1::el8","Red Hat:rhel_aus:7.2::server","Red Hat:rhel_aus:7.3::server","Red Hat:rhel_aus:7.4::server","Red Hat:rhel_aus:7.6::server","Red Hat:rhel_aus:7.7::server","Red Hat:rhel_e4s:7.6::server","Red Hat:rhel_e4s:7.7::server","Red Hat:rhel_eus:8.1::appstream","Red Hat:rhel_eus:8.2::appstream","Red Hat:rhel_software_collections:3::el7","Red Hat:rhel_tus:7.6::server","Red Hat:rhel_tus:7.7::server","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2021-10-18","github_poc":11,"max_poc_stars":18,"metasploit":0,"nuclei":1,"refs":[{"date":"2022-04-03T15:24:24Z","kind":"github_poc","ref":"https://github.com/Kashkovsky/CVE-2021-40438","stars":18,"title":"Apache forward request CVE"},{"date":"2021-10-24T10:18:08Z","kind":"github_poc","ref":"https://github.com/sixpacksecurity/CVE-2021-40438","stars":13,"title":"CVE-2021-40438 exploit PoC with Docker setup."},{"date":"2023-12-12T11:56:23Z","kind":"github_poc","ref":"https://github.com/sergiovks/CVE-2021-40438-Apache-2.4.48-SSRF-exploit","stars":11,"title":"CVE-2021-40438 Apache \u003c= 2.4.48 SSRF exploit"},{"date":"2021-10-18T02:02:43Z","kind":"github_poc","ref":"https://github.com/xiaojiangxl/CVE-2021-40438","stars":5,"title":null},{"date":"2021-10-28T11:48:12Z","kind":"github_poc","ref":"https://github.com/BabyTeam1024/CVE-2021-40438","stars":2,"title":null},{"date":"2021-11-30T06:07:49Z","kind":"github_poc","ref":"https://github.com/pisut4152/Sigma-Rule-for-CVE-2021-40438-exploitation-attempt","stars":1,"title":"Sigma-Rule-for-CVE-2021-40438-Attack-Attemp"},{"date":"2022-06-10T00:46:58Z","kind":"github_poc","ref":"https://github.com/gassara-kys/CVE-2021-40438","stars":1,"title":"check CVE-2021-40438"},{"date":"2024-05-19T11:04:58Z","kind":"github_poc","ref":"https://github.com/Cappricio-Securities/CVE-2021-40438","stars":1,"title":"Apache \u003c= 2.4.48 Mod_Proxy - Server-Side Request Forgery"}],"tier":"exploited"},"has_fix":true,"headline":"Apache HTTP Server-Side Request Forgery (SSRF)","id":"CVE-2021-40438","indexable":true,"kev":{"dateAdded":"2021-12-01","dueDate":"2021-12-15","knownRansomwareCampaignUse":"Known","product":"Apache","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Apache","vulnerabilityName":"Apache HTTP Server-Side Request Forgery (SSRF)"},"kind":"cve","links":{"ecosystem":"Bitnami","product":"apache:http_server","products":["apache:http_server","debian:debian_linux","fedoraproject:fedora","netapp:cloud_backup","netapp:clustered_data_ontap","netapp:storagegrid","oracle:enterprise_manager_ops_center","oracle:http_server","oracle:instantis_enterprisetrack","oracle:zfs_storage_appliance_kit","redhat:enterprise_linux","redhat:enterprise_linux_eus","redhat:enterprise_linux_for_ibm_z_systems","redhat:enterprise_linux_for_ibm_z_systems_eus","redhat:enterprise_linux_for_power_little_endian","redhat:enterprise_linux_for_power_little_endian_eus","redhat:enterprise_linux_for_scientific_computing","redhat:enterprise_linux_server","redhat:enterprise_linux_server_aus","redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions","redhat:enterprise_linux_server_tus","redhat:enterprise_linux_workstation","redhat:software_collections","siemens:sinema_remote_connect_server"],"type":"ssrf","year":"2021"},"n_packages":223,"n_references":19,"next":{"headline":"Billion Laughs","id":"CVE-2021-40439"},"packages":[{"ecosystem":"Bitnami","fixed":["2.4.49"],"introduced":["0"],"last_affected":[],"package":"apache","purl":"pkg:bitnami/apache","source":"BIT-apache-2021-40438"},{"ecosystem":"AlmaLinux:8","fixed":["1.15.7-3.module_el8.5.0+2609+b30d9eec"],"introduced":["0"],"last_affected":[],"package":"mod_http2","purl":"pkg:rpm/almalinux/mod_http2","source":"ALBA-2021:4604"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.0.8-8.module_el8.5.0+2609+b30d9eec"],"introduced":["0"],"last_affected":[],"package":"mod_md","purl":"pkg:rpm/almalinux/mod_md","source":"ALBA-2021:4604"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.0.8-8.module_el8.6.0+2872+fe0ff7aa"],"introduced":["0"],"last_affected":[],"package":"mod_md","purl":"pkg:rpm/almalinux/mod_md","source":"ALBA-2021:4604"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd","purl":"pkg:rpm/redhat/httpd","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd-debuginfo","purl":"pkg:rpm/redhat/httpd-debuginfo","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd-devel","purl":"pkg:rpm/redhat/httpd-devel","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd-manual","purl":"pkg:rpm/redhat/httpd-manual","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd-tools","purl":"pkg:rpm/redhat/httpd-tools","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"mod_ldap","purl":"pkg:rpm/redhat/mod_ldap","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["1:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"mod_proxy_html","purl":"pkg:rpm/redhat/mod_proxy_html","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"mod_session","purl":"pkg:rpm/redhat/mod_session","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["1:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"mod_ssl","purl":"pkg:rpm/redhat/mod_ssl","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd","purl":"pkg:rpm/redhat/httpd","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd-debuginfo","purl":"pkg:rpm/redhat/httpd-debuginfo","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd-devel","purl":"pkg:rpm/redhat/httpd-devel","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd-manual","purl":"pkg:rpm/redhat/httpd-manual","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd-tools","purl":"pkg:rpm/redhat/httpd-tools","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"mod_ldap","purl":"pkg:rpm/redhat/mod_ldap","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["1:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"mod_proxy_html","purl":"pkg:rpm/redhat/mod_proxy_html","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"mod_session","purl":"pkg:rpm/redhat/mod_session","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["1:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"mod_ssl","purl":"pkg:rpm/redhat/mod_ssl","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd","purl":"pkg:rpm/redhat/httpd","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd-debuginfo","purl":"pkg:rpm/redhat/httpd-debuginfo","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd-devel","purl":"pkg:rpm/redhat/httpd-devel","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd-manual","purl":"pkg:rpm/redhat/httpd-manual","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd-tools","purl":"pkg:rpm/redhat/httpd-tools","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"mod_ldap","purl":"pkg:rpm/redhat/mod_ldap","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["1:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"mod_proxy_html","purl":"pkg:rpm/redhat/mod_proxy_html","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"mod_session","purl":"pkg:rpm/redhat/mod_session","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["1:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"mod_ssl","purl":"pkg:rpm/redhat/mod_ssl","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd","purl":"pkg:rpm/redhat/httpd","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd-debuginfo","purl":"pkg:rpm/redhat/httpd-debuginfo","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd-devel","purl":"pkg:rpm/redhat/httpd-devel","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd-manual","purl":"pkg:rpm/redhat/httpd-manual","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"httpd-tools","purl":"pkg:rpm/redhat/httpd-tools","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"mod_ldap","purl":"pkg:rpm/redhat/mod_ldap","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["1:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"mod_proxy_html","purl":"pkg:rpm/redhat/mod_proxy_html","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"mod_session","purl":"pkg:rpm/redhat/mod_session","source":"RHSA-2021:3856"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["1:2.4.6-97.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"mod_ssl","purl":"pkg:rpm/redhat/mod_ssl","source":"RHSA-2021:3856"}],"prev":{"headline":"Memory corruption in libsox","id":"CVE-2021-40426"},"products":["Apache HTTP Server"],"published":"2021-09-16","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":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":"MIT","name":"AlmaLinux","prefix":"ALBA"},{"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":"open","licence":"CC0 1.0","name":"CISA KEV"},{"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":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-06","vendors":["Apache Software Foundation"]},"summary":"Attackers can force Apache mod_proxy to forward requests to arbitrary internal servers, enabling access to restricted resources.","url":"https://insights.sbomify.com/CVE-2021-40438/"}