CVE-2025-22871 Request smuggling due to acceptance of invalid chunked data in net/http

Critical 9.1 Published Updated

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.

PackageAffectedFixed in
spiral/roadrunner PackagistAll versions2025.1.0
spiral/roadrunner PackagistAll versions2025.1.0
golang BitnamiAll versions1.23.8, 1.24.2
stdlib GoAll versions1.23.8, 1.24.2
Linux distribution packages (36)
buildah AlmaLinux:10All versions2:1.39.4-2.el10_0
buildah-tests AlmaLinux:10All versions2:1.39.4-2.el10_0
delve AlmaLinux:10All versions1.24.1-2.el10_0
git-lfs AlmaLinux:10All versions3.6.1-2.el10_0
golang-docs AlmaLinux:10All versions1.23.9-1.el10_0.alma.1
golang-misc AlmaLinux:10All versions1.23.9-1.el10_0.alma.1
golang-src AlmaLinux:10All versions1.23.9-1.el10_0.alma.1
golang-tests AlmaLinux:10All versions1.23.9-1.el10_0.alma.1
grafana AlmaLinux:10All versions10.2.6-18.el10_0
grafana-pcp AlmaLinux:10All versions5.2.2-3.el10_0
grafana-selinux AlmaLinux:10All versions10.2.6-18.el10_0
gvisor-tap-vsock AlmaLinux:10All versions6:0.8.5-2.el10_0
gvisor-tap-vsock-gvforwarder AlmaLinux:10All versions6:0.8.5-2.el10_0
ipp-usb AlmaLinux:10All versions0.9.27-3.el10_0
opentelemetry-collector AlmaLinux:10All versions0.127.0-1.el10_0
osbuild-composer AlmaLinux:10All versions134.1-2.el10_0.alma.1
osbuild-composer-core AlmaLinux:10All versions134.1-2.el10_0.alma.1
osbuild-composer-worker AlmaLinux:10All versions134.1-2.el10_0.alma.1
podman-docker AlmaLinux:10All versions6:5.4.0-10.el10_0
skopeo AlmaLinux:10All versions2:1.18.1-2.el10_0
skopeo-tests AlmaLinux:10All versions2:1.18.1-2.el10_0
aardvark-dns AlmaLinux:8All versions2:1.10.1-2.module_el8.10.0+3901+4b80ecd7
aardvark-dns AlmaLinux:8All versions2:1.10.1-2.module_el8.10.0+3909+6e1c1eb7
aardvark-dns AlmaLinux:8All versions2:1.10.1-2.module_el8.10.0+4016+efd18bf8
buildah AlmaLinux:8All versions2:1.33.12-2.module_el8.10.0+4016+efd18bf8
buildah-tests AlmaLinux:8All versions2:1.33.12-2.module_el8.10.0+4016+efd18bf8
cockpit-podman AlmaLinux:8All versions84.1-1.module_el8.10.0+4016+efd18bf8
conmon AlmaLinux:8All versions3:2.1.10-1.module_el8.10.0+3970+8445edf6
container-selinux AlmaLinux:8All versions2:2.229.0-2.module_el8.10.0+3909+6e1c1eb7
containernetworking-plugins AlmaLinux:8All versions1:1.4.0-6.module_el8.10.0+4016+efd18bf8
containers-common AlmaLinux:8All versions2:1-82.module_el8.10.0+3876+e55593a8
containers-common AlmaLinux:8All versions2:1-82.module_el8.10.0+3901+4b80ecd7
containers-common AlmaLinux:8All versions2:1-82.module_el8.10.0+3970+8445edf6
crit AlmaLinux:8All versions3.18-5.module_el8.10.0+3845+87b84552
crit AlmaLinux:8All versions3.18-5.module_el8.10.0+3858+6ad51f9f
crit AlmaLinux:8All versions3.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.

Is CVE-2025-22871 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free