7.5high
Uncontrolled Resource Consumption in LengthPrefixedMessageReader
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 2.08% (higher than 82% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-rxmj-hg9v-vp3p
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| github.com/grpc/grpc-swift (SwiftURL) | before 1.2.0 | GitHub Advisory Database |
| linuxfoundation grpc_swift | 1.0.0, 1.1.0, 1.1.1 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
Affected 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.
Patches
The problem has been fixed in 1.2.0.
Workarounds
No workaround is available. Users must upgrade.
NVD (es)
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
References
| https://github.com/grpc/grpc-swift/releases | release-notes, third-party-advisory | |
| https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=35303 | mailing-list, third-party-advisory, web | |
| https://github.com/grpc/grpc-swift/security/advisories/GHSA-rxmj-hg9v-vp3p | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-36155 | advisory | |
| https://github.com/grpc/grpc-swift | package | |
| https://github.com/grpc/grpc-swift/releases/tag/1.2.0 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-36155 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rxmj-hg9v-vp3p changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-36155 changed 2026-06-17 | Public domain |