{"answers":{"affected":"1 open source package ship an affected version, including grafana. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-29170 in the wild and no public exploit code.","fix":"Upgrade grafana to a fixed version for your release line: 7.5.16 or 8.5.3.","what":"CVE-2022-29170 is a medium-severity server-side request forgery vulnerability in Grafana Grafana, published on 20 May 2022. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-29170 and fix it if it is affected.\n\nWhat it is: CVE-2022-29170 is a medium-severity server-side request forgery vulnerability in Grafana Grafana, published on 20 May 2022. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-29170 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- grafana (Bitnami): affected from 7.4.0; fixed in 7.5.16, 8.5.3\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-2022-29170/ (Markdown: https://insights.sbomify.com/CVE-2022-29170/index.md)","id":"CVE-2022-29170","markdown":"https://insights.sbomify.com/CVE-2022-29170/index.md","name":"CVE-2022-29170","record":{"aliases":["BIT-grafana-2022-29170","GHSA-9rrr-6fq2-4f99","OESA-2022-1711"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Grafana Enterprise","requires_auth":"high_privilege","summary":"Attackers can bypass network restrictions in Grafana Enterprise by using malicious datasource redirects to access forbidden hosts and potentially leak sensitive information.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"grafana","vendor":"grafana"}],"cvss":{"score":6.6,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"Grafana is an open-source platform for monitoring and observability. In Grafana Enterprise, the Request security feature allows list allows to configure Grafana in a way so that the instance doesn’t call or only calls specific hosts. The vulnerability present starting with version 7.4.0-beta1 and prior to versions 7.5.16 and 8.5.3 allows someone to bypass these security configurations if a malicious datasource (running on an allowed host) returns an HTTP redirect to a forbidden host. The vulnerability only impacts Grafana Enterprise when the Request security allow list is used and there is a possibility to add a custom datasource to Grafana which returns HTTP redirects. In this scenario, Grafana would blindly follow the redirects and potentially give secure information to the clients. Grafana Cloud is not impacted by this vulnerability. Versions 7.5.16 and 8.5.3 contain a patch for this issue. There are currently no known workarounds.","ecosystems":["Bitnami"],"exploits":{"exploitdb":0,"first_seen":"2023-01-29","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-01-29T09:10:44Z","kind":"github_poc","ref":"https://github.com/yijikeji/CVE-2022-29170","stars":0,"title":"Grafana is an open-source platform for monitoring and observability. In Grafana Enterprise, the Request security feature allows list allows to configure Grafana in a way so that the instance doesn’t call or only calls specific hosts. The vulnerability present starting with version 7.4.0-beta1 and prior to versions 7.5. CVE project by @Sn0wAlice"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Grafana Enterprise datasource network restrictions bypass via HTTP redirects","id":"CVE-2022-29170","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"grafana:grafana","products":["grafana:grafana"],"type":"ssrf","year":"2022"},"n_packages":1,"n_references":5,"next":{"headline":"Remote Code Execution in sourcegraph","id":"CVE-2022-29171"},"packages":[{"ecosystem":"Bitnami","fixed":["7.5.16","8.5.3"],"introduced":["7.4.0","8.0.0"],"last_affected":[],"package":"grafana","purl":"pkg:bitnami/grafana","source":"BIT-grafana-2022-29170"}],"prev":{"headline":"ReDoS on endpoint html5client/useragent in BigBlueButton","id":"CVE-2022-29169"},"products":["grafana"],"published":"2022-05-20","related":[{"cvss_score":7.5,"headline":"Grafana Path Traversal","id":"CVE-2021-43798","kev_date_added":"2025-10-09","published":"2021-12-07"},{"cvss_score":10,"headline":"Incorrect privilege assignment","id":"CVE-2025-41115","kev_date_added":null,"published":"2025-11-21"},{"cvss_score":9.8,"headline":"Grafana vulnerable to race condition allowing privilege escalation","id":"CVE-2022-39328","kev_date_added":null,"published":"2022-11-08"},{"cvss_score":9.8,"headline":"Auth bypass in n/a","id":"CVE-2022-28660","kev_date_added":null,"published":"2022-05-20"},{"cvss_score":9.8,"headline":"Information disclosure in n/a","id":"CVE-2022-26148","kev_date_added":null,"published":"2022-03-21"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2018-15727","kev_date_added":null,"published":"2018-08-29"},{"cvss_score":9.4,"headline":"Grafana SQL Expressions allow for remote code execution","id":"CVE-2024-9264","kev_date_added":null,"published":"2024-10-18"}],"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["grafana"]},"summary":"Attackers can bypass network restrictions in Grafana Enterprise by using malicious datasource redirects to access forbidden hosts and potentially leak sensitive information.","url":"https://insights.sbomify.com/CVE-2022-29170/"}