{"answers":{"affected":"3 open source packages ship an affected version, including github.com/aws/amazon-cloudwatch-agent. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-23511 in the wild and no public exploit code.","fix":"Upgrade github.com/aws/amazon-cloudwatch-agent to 1.247355.0 or later.","what":"CVE-2022-23511 is a high-severity vulnerability in aws amazon-cloudwatch-agent, published on 12 Dec 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-23511 and fix it if it is affected.\n\nWhat it is: CVE-2022-23511 is a high-severity vulnerability in aws amazon-cloudwatch-agent, published on 12 Dec 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-23511 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/aws/amazon-cloudwatch-agent (Go): affected all versions; fixed in 1.247355.0\n- github.com/aws/amazon-cloudwatch-agent (Go): affected all versions; fixed in 1.247355.0\n- github.com/aws/amazon-cloudwatch-agent (Go): affected all versions; fixed in 1.247355.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-23511/ (Markdown: https://insights.sbomify.com/CVE-2022-23511/index.md)","id":"CVE-2022-23511","markdown":"https://insights.sbomify.com/CVE-2022-23511/index.md","name":"CVE-2022-23511","record":{"aliases":["GHSA-j8x2-2m5w-j939","GO-2022-1160"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"CloudWatch Agent","requires_auth":"low_privilege","summary":"Administrative users on Windows hosts can escalate privileges to SYSTEM by triggering the CloudWatch Agent repair process.","user_interaction":"required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cloudwatch_agent","vendor":"amazon"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-274","name":"Improper Handling of Insufficient Privileges"}],"description":"A privilege escalation issue exists within the Amazon CloudWatch Agent for Windows, software for collecting metrics and logs from Amazon EC2 instances and on-premises servers, in versions up to and including v1.247354. When users trigger a repair of the Agent, a pop-up window opens with SYSTEM permissions. Users with administrative access to affected hosts may use this to create a new command prompt as NT AUTHORITY\\SYSTEM. To trigger this issue, the third party must be able to access the affected host and elevate their privileges such that they're able to trigger the agent repair process. They must also be able to install the tools required to trigger the issue. This issue does not affect the CloudWatch Agent for macOS or Linux. Agent users should upgrade to version 1.247355 of the CloudWatch Agent to address this issue. There is no recommended work around. Affected users must update the installed version of the CloudWatch Agent to address this issue.","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":"Amazon CloudWatch Agent for Windows has Privilege Escalation Vector","id":"CVE-2022-23511","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"privilege_escalation","year":"2022"},"n_packages":3,"n_references":2,"next":{"headline":"Metersphere is vulnerable to Path Injection.","id":"CVE-2022-23512"},"packages":[{"ecosystem":"Go","fixed":["1.247355.0"],"introduced":["0"],"last_affected":[],"package":"github.com/aws/amazon-cloudwatch-agent","purl":null,"source":"GHSA-j8x2-2m5w-j939"},{"ecosystem":"Go","fixed":["1.247355.0"],"introduced":["0"],"last_affected":[],"package":"github.com/aws/amazon-cloudwatch-agent","purl":"pkg:golang/github.com/aws/amazon-cloudwatch-agent","source":"GHSA-j8x2-2m5w-j939"},{"ecosystem":"Go","fixed":["1.247355.0"],"introduced":["0"],"last_affected":[],"package":"github.com/aws/amazon-cloudwatch-agent","purl":"pkg:golang/github.com/aws/amazon-cloudwatch-agent","source":"GO-2022-1160"}],"prev":{"headline":"SQl injection in cube-js","id":"CVE-2022-23510"},"products":["amazon-cloudwatch-agent"],"published":"2022-12-12","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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["aws"]},"summary":"Administrative users on Windows hosts can escalate privileges to SYSTEM by triggering the CloudWatch Agent repair process.","url":"https://insights.sbomify.com/CVE-2022-23511/"}