{"answers":{"affected":"7 open source packages ship an affected version, including github.com/elastic/beats and github.com/elastic/beats/v7. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-49922 in the wild and no public exploit code.","fix":"Upgrade github.com/elastic/beats to a fixed version for your release line: 7.17.16 or 8.11.3.","what":"CVE-2023-49922 is a medium-severity vulnerability in Elastic Beats, published on 12 Dec 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-49922 and fix it if it is affected.\n\nWhat it is: CVE-2023-49922 is a medium-severity vulnerability in Elastic Beats, published on 12 Dec 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-49922 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/elastic/beats (Go): affected from 7.0.0; fixed in 7.17.16\n- github.com/elastic/beats (Go): affected from 7.0.0; fixed in 7.17.16\n- github.com/elastic/beats (Go): affected from 8.0.0; fixed in 8.11.3\n- github.com/elastic/beats (Go): affected from 8.0.0; fixed in 8.11.3\n- github.com/elastic/beats/v7 (Go): affected all versions; fixed in 7.17.16\n- github.com/elastic/beats/v7 (Go): affected from 7.0.0; fixed in 7.17.16\n- github.com/elastic/beats/v7 (Go): affected from 7.0.0; fixed in 7.17.16\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-2023-49922/ (Markdown: https://insights.sbomify.com/CVE-2023-49922/index.md)","id":"CVE-2023-49922","markdown":"https://insights.sbomify.com/CVE-2023-49922/index.md","name":"CVE-2023-49922","record":{"aliases":["GHSA-hj4r-2c9c-29h3","GO-2023-2413","MINI-4m68-7ccj-f3gr","MINI-6mx2-pwmp-p6rh","MINI-754g-3358-cvjv","MINI-8w3r-qvx5-c2jp","MINI-9chh-vqq7-9q3m","MINI-c3wc-537g-xr7v","MINI-c4q4-fqq3-jxhf","MINI-g2jg-cr7f-rjwm","MINI-p7cq-vgpq-f7gw","MINI-x4x6-4m87-f38j"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Elastic Beats","requires_auth":"low_privilege","summary":"Attackers can read sensitive data from logs when Elastic Beats fails to ingest events, requiring an upgrade to fix.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"elastic","cpe":[{"product":"elastic_beats","vendor":"elastic"}],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"description":"An issue was discovered by Elastic whereby Beats and Elastic Agent would log a raw event in its own logs at the WARN or ERROR level if ingesting that event to Elasticsearch failed with any 4xx HTTP status code except 409 or 429. Depending on the nature of the event that Beats or Elastic Agent attempted to ingest, this could lead to the insertion of sensitive or private information in the Beats or Elastic Agent logs. Elastic has released 8.11.3 and 7.17.16 that prevents this issue by limiting these types of logs to DEBUG level logging, which is disabled by default.","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":"Beats Insertion of Sensitive Information into Log File","id":"CVE-2023-49922","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2023"},"n_packages":7,"n_references":1,"next":{"headline":"Enterprise Search Insertion of Sensitive Information into Log File","id":"CVE-2023-49923"},"packages":[{"ecosystem":"Go","fixed":["7.17.16"],"introduced":["7.0.0"],"last_affected":[],"package":"github.com/elastic/beats","purl":null,"source":"GHSA-hj4r-2c9c-29h3"},{"ecosystem":"Go","fixed":["7.17.16"],"introduced":["7.0.0"],"last_affected":[],"package":"github.com/elastic/beats","purl":"pkg:golang/github.com/elastic/beats","source":"GHSA-hj4r-2c9c-29h3"},{"ecosystem":"Go","fixed":["8.11.3"],"introduced":["8.0.0"],"last_affected":[],"package":"github.com/elastic/beats","purl":null,"source":"GHSA-hj4r-2c9c-29h3"},{"ecosystem":"Go","fixed":["8.11.3"],"introduced":["8.0.0"],"last_affected":[],"package":"github.com/elastic/beats","purl":"pkg:golang/github.com/elastic/beats","source":"GHSA-hj4r-2c9c-29h3"},{"ecosystem":"Go","fixed":["7.17.16"],"introduced":["0"],"last_affected":[],"package":"github.com/elastic/beats/v7","purl":"pkg:golang/github.com/elastic/beats/v7","source":"GO-2023-2413"},{"ecosystem":"Go","fixed":["7.17.16"],"introduced":["7.0.0"],"last_affected":[],"package":"github.com/elastic/beats/v7","purl":null,"source":"GHSA-hj4r-2c9c-29h3"},{"ecosystem":"Go","fixed":["7.17.16"],"introduced":["7.0.0"],"last_affected":[],"package":"github.com/elastic/beats/v7","purl":"pkg:golang/github.com/elastic/beats/v7","source":"GHSA-hj4r-2c9c-29h3"}],"prev":{"headline":"Elasticsearch Insertion of Sensitive Information into Log File","id":"CVE-2023-49921"},"products":["Beats"],"published":"2023-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":"2024-12-02","vendors":["Elastic"]},"summary":"Attackers can read sensitive data from logs when Elastic Beats fails to ingest events, requiring an upgrade to fix.","url":"https://insights.sbomify.com/CVE-2023-49922/"}