{"id":"GHSA-5q86-62xr-3r57","summary":"Uses of deprecated API can be used to cause DoS in user-facing endpoints","details":"### Impact\nSeveral `HandleRoute` endpoints make use of the deprecated `ioutil.ReadAll()`. `ioutil.ReadAll()` reads all the data into memory. As such, an attacker who sends a large request to the Argo Events server will be able to crash it and cause denial of service.\n\nEventsources susceptible to an out-of-memory denial-of-service attack:\n\n- AWS SNS\n- Bitbucket\n- Bitbucket\n- Gitlab\n- Slack\n- Storagegrid\n- Webhook\n\n### Patches\nA patch for this vulnerability has been released in the following Argo Events version:\n\nv1.7.1\n\n### Credits\nDisclosed by [Ada Logics](https://adalogics.com/) in a security audit sponsored by CNCF and facilitated by OSTIF.\n\n### For more information\nOpen an issue in the [Argo Events issue tracker](https://github.com/argoproj/argo-events/issues) or [discussions](https://github.com/argoproj/argo-events/discussions)\nJoin us on [Slack](https://argoproj.github.io/community/join-slack) in channel #argo-events","aliases":["CVE-2022-31054","GO-2022-0490"],"modified":"2024-08-21T15:26:47.686156Z","published":"2022-06-17T01:02:56Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-06-17T01:02:56Z","nvd_published_at":"2022-06-13T20:15:00Z","cwe_ids":["CWE-400","CWE-787"]},"references":[{"type":"WEB","url":"https://github.com/argoproj/argo-events/security/advisories/GHSA-5q86-62xr-3r57"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31054"},{"type":"WEB","url":"https://github.com/argoproj/argo-events/issues/1946"},{"type":"WEB","url":"https://github.com/argoproj/argo-events/pull/1966"},{"type":"WEB","url":"https://github.com/argoproj/argo-events/commit/eaabcb6d65022fc34a0cc9ea7f00681abd326b35"},{"type":"PACKAGE","url":"https://github.com/argoproj/argo-events"}],"affected":[{"package":{"name":"github.com/argoproj/argo-events","ecosystem":"Go","purl":"pkg:golang/github.com/argoproj/argo-events"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.7.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-5q86-62xr-3r57/GHSA-5q86-62xr-3r57.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}