{"id":"CVE-2021-36155","aliases":["CVE-2021-36155","GHSA-rxmj-hg9v-vp3p"],"related":[],"kind":"vulnerability","state":"published","title":"Uncontrolled Resource Consumption in LengthPrefixedMessageReader","summary":"LengthPrefixedMessageReader in gRPC Swift 1.1.0 and earlier allocates buffers of arbitrary length, which allows remote attackers to cause uncontrolled resource consumption and deny service.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"LengthPrefixedMessageReader in gRPC Swift 1.1.0 and earlier allocates buffers of arbitrary length, which allows remote attackers to cause uncontrolled resource consumption and deny service.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAffected gRPC Swift clients and servers are vulnerable to uncontrolled resource consumption attacks. Excessive memory may be allocated when parsing messages. This can lead to a denial of service.\n\n### Patches\n\nThe problem has been fixed in 1.2.0.\n\n### Workarounds\n\nNo workaround is available. Users must upgrade.","format":"markdown","source":"ghsa"},{"lang":"es","text":"La función LengthPrefixedMessageReader en gRPC Swift versiones 1.1.0 y anteriores asigna búferes de longitud arbitraria, lo que permite a atacantes remotos causar un consumo no controlado de recursos y denegar el servicio","source":"nvd"}],"published":"2021-07-09T11:11:10.000Z","modified":"2026-07-08T06:29:59.049Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-120","CWE-770"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.2.0"}],"ecosystem":"SwiftURL","package":"github.com/grpc/grpc-swift","purl":"pkg:swift/github.com/grpc/grpc-swift","source":"ghsa"},{"ranges":[{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.1.0"},{"status":"affected","version":"1.1.1"}],"vendor":"linuxfoundation","product":"grpc_swift","cpe":"cpe:2.3:a:linuxfoundation:grpc_swift:1.0.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/grpc/grpc-swift/releases","tags":["release-notes","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=35303","tags":["mailing-list","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/grpc/grpc-swift/security/advisories/GHSA-rxmj-hg9v-vp3p","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36155","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/grpc/grpc-swift","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/grpc/grpc-swift/releases/tag/1.2.0","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-36155","url":"https://www.cve.org/CVERecord?id=CVE-2021-36155","licence":"CVE Terms of Use","modified":"2024-08-04T00:47:43.824Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rxmj-hg9v-vp3p","url":"https://github.com/advisories/GHSA-rxmj-hg9v-vp3p","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:59.049Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-36155","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36155","licence":"Public domain","modified":"2026-06-17T03:58:25.617Z"}],"updatedAt":"2026-11-25T22:58:02.489Z","epss":{"score":0.02082,"percentile":0.82238,"date":"2026-11-30T12:00:22.000Z"}}