{"answers":{"affected":"5 open source packages ship an affected version, including github.com/grafana/synthetic-monitoring-agent and github.com/grafana/synthetic-monitoring-agent/cmd/synthetic-monitoring-agent. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-46156 in the wild and no public exploit code.","fix":"Upgrade github.com/grafana/synthetic-monitoring-agent to 0.12.0 or later.","what":"CVE-2022-46156 is a high-severity vulnerability in grafana synthetic-monitoring-agent, published on 30 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-46156 and fix it if it is affected.\n\nWhat it is: CVE-2022-46156 is a high-severity vulnerability in grafana synthetic-monitoring-agent, published on 30 Nov 2022. 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-2022-46156 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/grafana/synthetic-monitoring-agent (Go): affected all versions; fixed in 0.12.0\n- github.com/grafana/synthetic-monitoring-agent (Go): affected all versions; fixed in 0.12.0\n- github.com/grafana/synthetic-monitoring-agent (Go): affected all versions; fixed in 0.12.0\n- github.com/grafana/synthetic-monitoring-agent/cmd/synthetic-monitoring-agent (Go): affected all versions; fixed in 0.12.0\n- github.com/grafana/synthetic-monitoring-agent/cmd/synthetic-monitoring-agent (Go): affected all versions; fixed in 0.12.0\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-46156/ (Markdown: https://insights.sbomify.com/CVE-2022-46156/index.md)","id":"CVE-2022-46156","markdown":"https://insights.sbomify.com/CVE-2022-46156/index.md","name":"CVE-2022-46156","record":{"aliases":["GHSA-9j4f-f249-q5w8","GO-2022-1132"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Grafana monitoring agent","requires_auth":"none","summary":"Attackers can retrieve sensitive API tokens from a debugging endpoint, allowing unauthorized access to monitoring checks.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"synthetic_monitoring_agent","vendor":"grafana"}],"cvss":{"score":7.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-749","name":"Exposed Dangerous Method or Function"},{"id":"CWE-489","name":"Active Debug Code"}],"description":"The Synthetic Monitoring Agent for Grafana's Synthetic Monitoring application provides probe functionality and executes network checks for monitoring remote targets. Users running the Synthetic Monitoring agent prior to version 0.12.0 in their local network are impacted. The authentication token used to communicate with the Synthetic Monitoring API is exposed through a debugging endpoint. This token can be used to retrieve the Synthetic Monitoring checks created by the user and assigned to the agent identified with that token. The Synthetic Monitoring API will reject connections from already-connected agents, so access to the token does not guarantee access to the checks. Version 0.12.0 contains a fix. Users are advised to rotate the agent tokens. After upgrading to version v0.12.0 or later, it's recommended that users of distribution packages review the configuration stored in `/etc/synthetic-monitoring/synthetic-monitoring-agent.conf`, specifically the `API_TOKEN` variable which has been renamed to `SM_AGENT_API_TOKEN`. As a workaround for previous versions, it's recommended that users review the agent settings and set the HTTP listening address in a manner that limits the exposure, for example, localhost or a non-routed network, by using the command line parameter `-listen-address`, e.g. `-listen-address localhost:4050`.","ecosystems":["Go"],"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":"Grafana's default installation of `synthetic-monitoring-agent` exposes sensitive information","id":"CVE-2022-46156","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2022"},"n_packages":5,"n_references":6,"next":{"headline":"Remote php code execution in Akeneo PIM","id":"CVE-2022-46157"},"packages":[{"ecosystem":"Go","fixed":["0.12.0"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/synthetic-monitoring-agent","purl":null,"source":"GHSA-9j4f-f249-q5w8"},{"ecosystem":"Go","fixed":["0.12.0"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/synthetic-monitoring-agent","purl":"pkg:golang/github.com/grafana/synthetic-monitoring-agent","source":"GHSA-9j4f-f249-q5w8"},{"ecosystem":"Go","fixed":["0.12.0"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/synthetic-monitoring-agent","purl":"pkg:golang/github.com/grafana/synthetic-monitoring-agent","source":"GO-2022-1132"},{"ecosystem":"Go","fixed":["0.12.0"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/synthetic-monitoring-agent/cmd/synthetic-monitoring-agent","purl":null,"source":"GHSA-9j4f-f249-q5w8"},{"ecosystem":"Go","fixed":["0.12.0"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/synthetic-monitoring-agent/cmd/synthetic-monitoring-agent","purl":"pkg:golang/github.com/grafana/synthetic-monitoring-agent/cmd/synthetic-monitoring-agent","source":"GHSA-9j4f-f249-q5w8"}],"prev":{"headline":"Airtable.js credentials exposed in browser builds","id":"CVE-2022-46155"},"products":["synthetic-monitoring-agent"],"published":"2022-11-30","related":[],"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":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"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-04-23","vendors":["grafana"]},"summary":"Attackers can retrieve sensitive API tokens from a debugging endpoint, allowing unauthorized access to monitoring checks.","url":"https://insights.sbomify.com/CVE-2022-46156/"}