REDHAT-BUG-2571445: Medium severity go Go vulnerability

Published Nov 11, 2026
·
Updated

For HTTP/1 servers, when MaxBytesReader's limit is exceeded, "Connection: close" header is automatically set without synchronization, which might race with another header being set explicitly in the server handler. As a result, an HTTP/1 server that utilizes MaxBytesReader or MaxBytesHandler can crash due to runtime panic if its handler reads the request body concurrently with writing the response header.

Affected Software

1 affected component
go Go

Event History

Nov 11, 2026
Data Sourced
via Red Hat·03:21 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which applications are exposed to this issue?

HTTP/1 servers that use MaxBytesReader or MaxBytesHandler are exposed when their handlers can read the request body concurrently with writing the response header.

2

What conditions are required for a crash?

The request body must exceed the configured MaxBytesReader limit, causing the server to automatically set "Connection: close" while another operation explicitly sets a response header. The unsynchronized concurrent header updates can trigger a runtime panic.

3

How can I determine whether my service is affected?

Review HTTP/1 handler code for use of MaxBytesReader or MaxBytesHandler and check whether request-body reads may occur concurrently with response-header writes. Services without that concurrent behavior are not described as affected.

4

What can be done before a fix is available?

Avoid allowing request-body reads and response-header writes to run concurrently in handlers that use MaxBytesReader or MaxBytesHandler. This prevents the concurrent header-setting condition described for the panic.

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