CVE-2025-22871 Request smuggling due to acceptance of invalid chunked data in net/http
Attackers can perform request smuggling by exploiting improper handling of bare LF characters in chunked data within the Go net/http package.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-22871?
CVE-2025-22871 is a critical vulnerability in Go standard library net/http/internal, published on 8 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The net/http package improperly accepts a bare LF as a line terminator in chunked data chunk-size lines. This can permit request smuggling if a net/http server is used in conjunction with a server that incorrectly accepts a bare LF as part of a chunk-ext.
Which versions are affected by CVE-2025-22871?
4 open source packages ship an affected version, including spiral/roadrunner, golang and stdlib.
| Package | Affected | Fixed in |
|---|---|---|
spiral/roadrunner Packagist | All versions | 2025.1.0 |
spiral/roadrunner Packagist | All versions | 2025.1.0 |
golang Bitnami | All versions | 1.23.8, 1.24.2 |
stdlib Go | All versions | 1.23.8, 1.24.2 |
Linux distribution packages (36)
buildah AlmaLinux:10 | All versions | 2:1.39.4-2.el10_0 |
buildah-tests AlmaLinux:10 | All versions | 2:1.39.4-2.el10_0 |
delve AlmaLinux:10 | All versions | 1.24.1-2.el10_0 |
git-lfs AlmaLinux:10 | All versions | 3.6.1-2.el10_0 |
golang-docs AlmaLinux:10 | All versions | 1.23.9-1.el10_0.alma.1 |
golang-misc AlmaLinux:10 | All versions | 1.23.9-1.el10_0.alma.1 |
golang-src AlmaLinux:10 | All versions | 1.23.9-1.el10_0.alma.1 |
golang-tests AlmaLinux:10 | All versions | 1.23.9-1.el10_0.alma.1 |
grafana AlmaLinux:10 | All versions | 10.2.6-18.el10_0 |
grafana-pcp AlmaLinux:10 | All versions | 5.2.2-3.el10_0 |
grafana-selinux AlmaLinux:10 | All versions | 10.2.6-18.el10_0 |
gvisor-tap-vsock AlmaLinux:10 | All versions | 6:0.8.5-2.el10_0 |
gvisor-tap-vsock-gvforwarder AlmaLinux:10 | All versions | 6:0.8.5-2.el10_0 |
ipp-usb AlmaLinux:10 | All versions | 0.9.27-3.el10_0 |
opentelemetry-collector AlmaLinux:10 | All versions | 0.127.0-1.el10_0 |
osbuild-composer AlmaLinux:10 | All versions | 134.1-2.el10_0.alma.1 |
osbuild-composer-core AlmaLinux:10 | All versions | 134.1-2.el10_0.alma.1 |
osbuild-composer-worker AlmaLinux:10 | All versions | 134.1-2.el10_0.alma.1 |
podman-docker AlmaLinux:10 | All versions | 6:5.4.0-10.el10_0 |
skopeo AlmaLinux:10 | All versions | 2:1.18.1-2.el10_0 |
skopeo-tests AlmaLinux:10 | All versions | 2:1.18.1-2.el10_0 |
aardvark-dns AlmaLinux:8 | All versions | 2:1.10.1-2.module_el8.10.0+3901+4b80ecd7 |
aardvark-dns AlmaLinux:8 | All versions | 2:1.10.1-2.module_el8.10.0+3909+6e1c1eb7 |
aardvark-dns AlmaLinux:8 | All versions | 2:1.10.1-2.module_el8.10.0+4016+efd18bf8 |
buildah AlmaLinux:8 | All versions | 2:1.33.12-2.module_el8.10.0+4016+efd18bf8 |
buildah-tests AlmaLinux:8 | All versions | 2:1.33.12-2.module_el8.10.0+4016+efd18bf8 |
cockpit-podman AlmaLinux:8 | All versions | 84.1-1.module_el8.10.0+4016+efd18bf8 |
conmon AlmaLinux:8 | All versions | 3:2.1.10-1.module_el8.10.0+3970+8445edf6 |
container-selinux AlmaLinux:8 | All versions | 2:2.229.0-2.module_el8.10.0+3909+6e1c1eb7 |
containernetworking-plugins AlmaLinux:8 | All versions | 1:1.4.0-6.module_el8.10.0+4016+efd18bf8 |
containers-common AlmaLinux:8 | All versions | 2:1-82.module_el8.10.0+3876+e55593a8 |
containers-common AlmaLinux:8 | All versions | 2:1-82.module_el8.10.0+3901+4b80ecd7 |
containers-common AlmaLinux:8 | All versions | 2:1-82.module_el8.10.0+3970+8445edf6 |
crit AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3845+87b84552 |
crit AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3858+6ad51f9f |
crit AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3901+4b80ecd7 |
How do I fix CVE-2025-22871?
Upgrade spiral/roadrunner to 2025.1.0 or later.
Is CVE-2025-22871 being exploited?
There is no known exploitation of CVE-2025-22871 in the wild and no public exploit code.
Sources
Also known as ALSA-2025:12831, ALSA-2025:12850, ALSA-2025:8476, ALSA-2025:8477, ALSA-2025:8478, ALSA-2025:8666 and 213 more.