{"answers":{"affected":"10 open source packages ship an affected version, including org.apache.pulsar:pulsar-functions-worker. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-27894 in the wild and no public exploit code.","fix":"Upgrade org.apache.pulsar:pulsar-functions-worker to a fixed version for your release line: 2.11.4, 2.10.6, 3.0.3 or 3.1.3.","what":"CVE-2024-27894 is a high-severity server-side request forgery vulnerability in Apache Pulsar, published on 12 Mar 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-27894 and fix it if it is affected.\n\nWhat it is: CVE-2024-27894 is a high-severity server-side request forgery vulnerability in Apache Pulsar, published on 12 Mar 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-27894 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.pulsar:pulsar-functions-worker (Maven): affected from 2.11.0; fixed in 2.11.4\n- org.apache.pulsar:pulsar-functions-worker (Maven): affected from 2.11.0; fixed in 2.11.4\n- org.apache.pulsar:pulsar-functions-worker (Maven): affected from 2.4.0; fixed in 2.10.6\n- org.apache.pulsar:pulsar-functions-worker (Maven): affected from 2.4.0; fixed in 2.10.6\n- org.apache.pulsar:pulsar-functions-worker (Maven): affected from 3.0.0; fixed in 3.0.3\n- org.apache.pulsar:pulsar-functions-worker (Maven): affected from 3.0.0; fixed in 3.0.3\n- org.apache.pulsar:pulsar-functions-worker (Maven): affected from 3.1.0; fixed in 3.1.3\n- org.apache.pulsar:pulsar-functions-worker (Maven): affected from 3.1.0; fixed in 3.1.3\n- org.apache.pulsar:pulsar-functions-worker (Maven): affected from 3.2.0; fixed in 3.2.1\n- org.apache.pulsar:pulsar-functions-worker (Maven): affected from 3.2.0; fixed in 3.2.1\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-27894/ (Markdown: https://insights.sbomify.com/CVE-2024-27894/index.md)","id":"CVE-2024-27894","markdown":"https://insights.sbomify.com/CVE-2024-27894/index.md","name":"CVE-2024-27894","record":{"aliases":["GHSA-c2x9-vw5h-39vc"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Pulsar","requires_auth":"low_privilege","summary":"Authenticated attackers can exploit URL-based function creation to read local files or proxy requests, leading to information disclosure and denial of service.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"pulsar","vendor":"apache"}],"cvss":{"score":8.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-552","name":"Files or Directories Accessible to External Parties"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"The Pulsar Functions Worker includes a capability that permits authenticated users to create functions where the function's implementation is referenced by a URL. The supported URL schemes include \"file\", \"http\", and \"https\". When a function is created using this method, the Functions Worker will retrieve the implementation from the URL provided by the user. However, this feature introduces a vulnerability that can be exploited by an attacker to gain unauthorized access to any file that the Pulsar Functions Worker process has permissions to read. This includes reading the process environment which potentially includes sensitive information, such as secrets. Furthermore, an attacker could leverage this vulnerability to use the Pulsar Functions Worker as a proxy to access the content of remote HTTP and HTTPS endpoint URLs. This could also be used to carry out denial of service attacks.\nThis vulnerability also applies to the Pulsar Broker when it is configured with \"functionsWorkerEnabled=true\".\n\nThis issue affects Apache Pulsar versions from 2.4.0 to 2.10.5, from 2.11.0 to 2.11.3, from 3.0.0 to 3.0.2, from 3.1.0 to 3.1.2, and 3.2.0. \n\n2.10 Pulsar Function Worker users should upgrade to at least 2.10.6.\n2.11 Pulsar Function Worker users should upgrade to at least 2.11.4.\n3.0 Pulsar Function Worker users should upgrade to at least 3.0.3.\n3.1 Pulsar Function Worker users should upgrade to at least 3.1.3.\n3.2 Pulsar Function Worker users should upgrade to at least 3.2.1.\n\nUsers operating versions prior to those listed above should upgrade to the aforementioned patched versions or newer versions.\n\nThe updated versions of Pulsar Functions Worker will, by default, impose restrictions on the creation of functions using URLs. For users who rely on this functionality, the Function Worker configuration provides two configuration keys: \"additionalEnabledConnectorUrlPatterns\" and \"additionalEnabledFunctionsUrlPatterns\". These keys allow users to specify a set of URL patterns that are permitted, enabling the creation of functions using URLs that match the defined patterns. This approach ensures that the feature remains available to those who require it, while limiting the potential for unauthorized access and exploitation.","ecosystems":["Maven"],"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":"Apache Pulsar: Pulsar Functions Worker Allows Unauthorized File Access and Unauthorized HTTP/HTTPS Proxying","id":"CVE-2024-27894","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"ssrf","year":"2024"},"n_packages":10,"n_references":3,"next":{"headline":"Missing authorization in HarmonyOS","id":"CVE-2024-27895"},"packages":[{"ecosystem":"Maven","fixed":["2.11.4"],"introduced":["2.11.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-functions-worker","purl":null,"source":"GHSA-c2x9-vw5h-39vc"},{"ecosystem":"Maven","fixed":["2.11.4"],"introduced":["2.11.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-functions-worker","purl":"pkg:maven/org.apache.pulsar/pulsar-functions-worker","source":"GHSA-c2x9-vw5h-39vc"},{"ecosystem":"Maven","fixed":["2.10.6"],"introduced":["2.4.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-functions-worker","purl":null,"source":"GHSA-c2x9-vw5h-39vc"},{"ecosystem":"Maven","fixed":["2.10.6"],"introduced":["2.4.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-functions-worker","purl":"pkg:maven/org.apache.pulsar/pulsar-functions-worker","source":"GHSA-c2x9-vw5h-39vc"},{"ecosystem":"Maven","fixed":["3.0.3"],"introduced":["3.0.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-functions-worker","purl":null,"source":"GHSA-c2x9-vw5h-39vc"},{"ecosystem":"Maven","fixed":["3.0.3"],"introduced":["3.0.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-functions-worker","purl":"pkg:maven/org.apache.pulsar/pulsar-functions-worker","source":"GHSA-c2x9-vw5h-39vc"},{"ecosystem":"Maven","fixed":["3.1.3"],"introduced":["3.1.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-functions-worker","purl":null,"source":"GHSA-c2x9-vw5h-39vc"},{"ecosystem":"Maven","fixed":["3.1.3"],"introduced":["3.1.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-functions-worker","purl":"pkg:maven/org.apache.pulsar/pulsar-functions-worker","source":"GHSA-c2x9-vw5h-39vc"},{"ecosystem":"Maven","fixed":["3.2.1"],"introduced":["3.2.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-functions-worker","purl":null,"source":"GHSA-c2x9-vw5h-39vc"},{"ecosystem":"Maven","fixed":["3.2.1"],"introduced":["3.2.0"],"last_affected":[],"package":"org.apache.pulsar:pulsar-functions-worker","purl":"pkg:maven/org.apache.pulsar/pulsar-functions-worker","source":"GHSA-c2x9-vw5h-39vc"}],"prev":{"headline":"Missing authorization in EOS","id":"CVE-2024-27892"},"products":["Apache Pulsar"],"published":"2024-03-12","related":[{"cvss_score":9.8,"headline":"Authentication with JWT allows use of “none”-algorithm","id":"CVE-2021-22160","kev_date_added":null,"published":"2021-05-26"},{"cvss_score":9.6,"headline":"Apache Pulsar: Incorrect Authorization for Function Worker when using mTLS Authentication through Pulsar Proxy","id":"CVE-2023-30429","kev_date_added":null,"published":"2023-07-12"},{"cvss_score":8.5,"headline":"Apache Pulsar: Improper Input Validation in Pulsar Function Worker allows Remote Code Execution","id":"CVE-2024-27135","kev_date_added":null,"published":"2024-03-12"},{"cvss_score":8.4,"headline":"Apache Pulsar: Pulsar Functions Worker's Archive Extraction Vulnerability Allows Unauthorized File Modification","id":"CVE-2024-27317","kev_date_added":null,"published":"2024-03-12"},{"cvss_score":8.2,"headline":"Apache Pulsar: Improper Authentication for Pulsar Proxy Statistics Endpoint","id":"CVE-2022-34321","kev_date_added":null,"published":"2024-03-12"},{"cvss_score":8.2,"headline":"Apache Pulsar Broker: Incorrect Authorization Validation for Rest Producer","id":"CVE-2023-30428","kev_date_added":null,"published":"2023-07-12"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["Apache Software Foundation"]},"summary":"Authenticated attackers can exploit URL-based function creation to read local files or proxy requests, leading to information disclosure and denial of service.","url":"https://insights.sbomify.com/CVE-2024-27894/"}