CVE-2026-81872: OpenTelemetry-Go: BatchProcessor can busy-spin when export buffer is full

Published Sep 16, 2026
·
Updated

Summary

A BatchingProcessor in go.opentelemetry.io/otel/sdk/log can enter a tight CPU loop when the asynchronous export buffer is full. Under exporter backpressure, attacker-driven high-volume log emission can keep the queue at or above the batch size, causing repeated immediate export retries and a denial of service through CPU exhaustion.

Introduced in commit: 4af9c20

Details

NewBatchingProcessor wraps the exporter with newBufferExporter(exporter, 1) (sdk/log/batch.go:116-122), so the asynchronous export input can fill quickly when the downstream exporter blocks. The poll goroutine dequeues a batch with b.q.TryDequeue, calls b.exporter.EnqueueExport(r), and then immediately sends on b.pollTrigger whenever qLen >= b.batchSize (sdk/log/batch.go:129-165).

bufferExporter.EnqueueExport is non-blocking: it sends to e.input if possible and returns false in the default case when the channel is full (sdk/log/exporter.go:221-248). TryDequeue leaves q.len unchanged when the write callback returns false (sdk/log/batch.go:289-314). Therefore, while the exporter is backpressured, EnqueueExport fails, the queue remains at or above one full batch, and the poll loop continuously retriggers itself without waiting for the ticker.

PoC

validation-artifact.zip

The validation artifact contains a PoC bundle:

- validation-artifact.tar:main.go: PoC source. - validation-artifact.tar:README.md: build/run notes. - validation-artifact.tar:buildfailed.log: captured build failure from the validation environment.

The PoC configures a blocking exporter and a BatchingProcessor with WithExportMaxBatchSize(1), WithExportInterval(5time.Second), and WithMaxQueueSize(2048). It emits 1000 records, records a CPU profile for 750 ms while the exporter is blocked, then writes /workspace/validationartifacts/busyloop.pprof.

Reproduction steps from an affected checkout at commit 4af9c20:

sh cd /workspace/opentelemetry-go git checkout 4af9c20

mkdir -p validationpoc/busyloop /workspace/validationartifacts /tmp/batchingprocessor-busyloop-poc tar -xf /path/to/this/finding/validation-artifact.tar -C /tmp/batchingprocessor-busyloop-poc cp /tmp/batchingprocessor-busyloop-poc/main.go validationpoc/busyloop/main.go

go build -o validationpoc/busyloop/busyloop ./validationpoc/busyloop ./validationpoc/busyloop/busyloop go tool pprof -top /workspace/validationartifacts/busyloop.pprof

Expected program output:

text cpu profile written to /workspace/validationartifacts/busyloop.pprof

Expected profile evidence: hot functions should include (BatchingProcessor).poll, (queue).TryDequeue, and (bufferExporter).EnqueueExport, showing repeated export attempts while the exporter is blocked.

Impact

This is an availability vulnerability: uncontrolled CPU consumption caused by a busy-spin retry loop. Applications using sdk/log BatchingProcessor are impacted when an attacker can cause sustained log emission and the configured exporter or downstream collector is slow, blocked, or otherwise backpressured. The impact is limited to the embedding process but can degrade or deny service for that application.

Other sources

OpenTelemetry-Go is the Go implementation of OpenTelemetry. Prior to version 0.21.0, the go.opentelemetry.io/otel/sdk/log BatchingProcessor can enter a tight CPU loop when attacker-driven log emission fills its asynchronous export buffer while the exporter is backpressured. NewBatchingProcessor wraps the exporter with newBufferExporter(exporter, 1), and the poll loop calls queue.TryDequeue and bufferExporter.EnqueueExport before immediately signaling pollTrigger whenever the queue remains at or above batchSize. Because a failed nonblocking EnqueueExport leaves the queue length unchanged, the processor repeatedly retries without waiting for its ticker, exhausting CPU and degrading or denying service in the embedding process. This issue is fixed in version 0.21.0.

— MITRE

OpenTelemetry-Go: BatchProcessor can busy-spin when export buffer is full

— Microsoft

Affected Software

3 affected componentsFixes available
OpenTelemetry OpenTelemetry-Go<0.21.0
go/go.opentelemetry.io/otel/sdk/log<0.21.0
0.21.0
Microsoft azl3 azurelinux-image-tools 1.6.0-3<1.7.0-1
1.7.0-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/go.opentelemetry.io/otel/sdk/log to a version that resolves this vulnerability.

    Fixed in 0.21.0
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.7.0-1
  3. Upgrade

    Upgrade go.opentelemetry.io/otel/sdk/log to a version that resolves this vulnerability.

    Fixed in 0.21.0

Event History

Sep 16, 2026
CVE Published
via MITRE·08:42 PM
Data Sourced
via MITRE·08:42 PM
DescriptionWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness
Sep 19, 2026
Data Sourced
via Microsoft·08:03 AM
DescriptionSeverityWeaknessAffected Software
Sep 29, 2026
Advisory Published
via GitHub·05:59 PM
Data Sourced
via GitHub·05:59 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using go.opentelemetry.io/otel/sdk/log BatchingProcessor before version 0.21.0 are affected when their asynchronous export buffer becomes full while the exporter is backpressured. The impact occurs in the embedding Go process, where CPU exhaustion can degrade or deny service.

2

What conditions are required for exploitation?

An attacker must be able to drive sufficient log emission to keep the processor queue at or above its batch size. The exporter must also be backpressured so that its single-entry asynchronous export buffer cannot accept another export.

3

Is the default processor construction affected?

Yes. NewBatchingProcessor wraps the exporter with newBufferExporter(exporter, 1), creating a buffer with capacity one. When that buffer is full, a failed nonblocking enqueue can leave the queue unchanged and trigger repeated immediate retries.

4

How can I determine whether this is occurring?

Look for sustained high CPU consumption in a process using the affected BatchingProcessor during periods of high log volume and exporter backpressure. The processor may repeatedly retry exports without waiting for its ticker while its queue remains at or above batchSize.

5

What is the available fix?

Upgrade OpenTelemetry-Go to version 0.21.0, which fixes the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203