# 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.

- **Severity:** Critical 9.1 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 8 Apr 2025
- **Updated:** 12 May 2026
- **Also known as:** ALSA-2025:12831, ALSA-2025:12850, ALSA-2025:8476, ALSA-2025:8477, ALSA-2025:8478, ALSA-2025:8666, ALSA-2025:8667, ALSA-2025:8682, ALSA-2025:8915, ALSA-2025:8916, ALSA-2025:8918, ALSA-2025:9060, ALSA-2025:9063, ALSA-2025:9106, ALSA-2025:9142, ALSA-2025:9143, ALSA-2025:9144, ALSA-2025:9145, ALSA-2025:9146, ALSA-2025:9147, ALSA-2025:9148, ALSA-2025:9149, ALSA-2025:9150, ALSA-2025:9151, ALSA-2025:9156, ALSA-2025:9317, ALSA-2025:9623, ALSA-2025:9634, ALSA-2025:9635, ALSA-2025:9844, ALSA-2025:9845, AZL-59652, AZL-59656, AZL-59666, AZL-78982, AZL-98622, BELL-CVE-2025-22871, BIT-golang-2025-22871, CLEANSTART-2026-CU60639, CLEANSTART-2026-MR52568, CLEANSTART-2026-PP37381, CLEANSTART-2026-RQ84574, DEBIAN-CVE-2025-22871, ECHO-80a7-4b2d-05e0, GHSA-g9pc-8g42-g6vq, GO-2025-3563, MINI-259p-cmwp-hqph, MINI-2626-wch9-5wmg, MINI-29f6-j8f7-26fh, MINI-2c5j-rr9p-5rf5, MINI-34qr-2m5j-x7px, MINI-447h-mrcw-2pw8, MINI-58v8-5q82-8fc7, MINI-5vw9-h9hh-3grr, MINI-5w63-c9wq-76rp, MINI-66cc-2v7h-mhrx, MINI-69xw-4qxc-44fh, MINI-6m48-95hv-rq78, MINI-6pr8-g892-v9c8, MINI-7wq5-r265-m9hq, MINI-8p6q-2g9w-w53w, MINI-8r3c-7v2g-8fvg, MINI-8r43-mrw6-r2mq, MINI-9fxr-49ff-534q, MINI-c28h-f5f4-gmrv, MINI-f8xc-95vj-x4x7, MINI-ffj6-pxm4-jc59, MINI-g4ff-g8x9-xfvq, MINI-h4x9-rmgm-jrcj, MINI-h5m6-cpmg-hh94, MINI-hm5g-3gqf-mpg9, MINI-jcg5-4gw6-7jj6, MINI-mqcj-qxjx-327q, MINI-pc3j-x5r4-52pw, MINI-pg6r-6549-7hh7, MINI-prhc-crpr-92v5, MINI-r59m-743v-3j43, MINI-r65p-6h58-4vh6, MINI-rjv9-6529-x7xx, MINI-v9jf-8w95-hf4c, MINI-vmxv-wr85-vv2g, MINI-vv4p-jjf3-mh9j, MINI-wm36-22gx-jj5j, MINI-xj96-cmwj-633h, OESA-2025-2307, OESA-2025-2308, OESA-2025-2309, RHBA-2025:14817, RHSA-2025:10271, RHSA-2025:10291, RHSA-2025:10768, RHSA-2025:10782, RHSA-2025:11352, RHSA-2025:11678, RHSA-2025:11682, RHSA-2025:12831, RHSA-2025:12850, RHSA-2025:15291, RHSA-2025:8476, RHSA-2025:8477, RHSA-2025:8478, RHSA-2025:8539, RHSA-2025:8601, RHSA-2025:8632, RHSA-2025:8633, RHSA-2025:8634, RHSA-2025:8666, RHSA-2025:8667, RHSA-2025:8682, RHSA-2025:8689, RHSA-2025:8737, RHSA-2025:8915, RHSA-2025:8916, RHSA-2025:8918, RHSA-2025:8974, RHSA-2025:8975, RHSA-2025:8982, RHSA-2025:8983, RHSA-2025:8984, RHSA-2025:9017, RHSA-2025:9018, RHSA-2025:9019, RHSA-2025:9020, RHSA-2025:9025, RHSA-2025:9043, RHSA-2025:9059, RHSA-2025:9060, RHSA-2025:9061, RHSA-2025:9062, RHSA-2025:9063, RHSA-2025:9064, RHSA-2025:9065, RHSA-2025:9067, RHSA-2025:9069, RHSA-2025:9070, RHSA-2025:9078, RHSA-2025:9106, RHSA-2025:9142, RHSA-2025:9143, RHSA-2025:9144, RHSA-2025:9145, RHSA-2025:9146, RHSA-2025:9147, RHSA-2025:9148, RHSA-2025:9149, RHSA-2025:9150, RHSA-2025:9151, RHSA-2025:9156, RHSA-2025:9172, RHSA-2025:9177, RHSA-2025:9199, RHSA-2025:9200, RHSA-2025:9205, RHSA-2025:9206, RHSA-2025:9207, RHSA-2025:9279, RHSA-2025:9311, RHSA-2025:9312, RHSA-2025:9313, RHSA-2025:9317, RHSA-2025:9319, RHSA-2025:9623, RHSA-2025:9634, RHSA-2025:9635, RHSA-2025:9637, RHSA-2025:9638, RHSA-2025:9639, RHSA-2025:9640, RHSA-2025:9641, RHSA-2025:9642, RHSA-2025:9711, RHSA-2025:9712, RHSA-2025:9713, RHSA-2025:9714, RHSA-2025:9715, RHSA-2025:9756, RHSA-2025:9844, RHSA-2025:9845, RHSA-2025:9975, RLSA-2025:12831, RLSA-2025:12850, RLSA-2025:8476, RLSA-2025:8477, RLSA-2025:8478, RLSA-2025:8666, RLSA-2025:8667, RLSA-2025:8682, RLSA-2025:8915, RLSA-2025:8916, RLSA-2025:8918, RLSA-2025:9060, RLSA-2025:9063, RLSA-2025:9106, RLSA-2025:9142, RLSA-2025:9143, RLSA-2025:9144, RLSA-2025:9145, RLSA-2025:9146, RLSA-2025:9147, RLSA-2025:9148, RLSA-2025:9149, RLSA-2025:9150, RLSA-2025:9151, RLSA-2025:9156, RLSA-2025:9317, RLSA-2025:9635, RLSA-2025:9844, RLSA-2025:9845, SUSE-SU-2025:1141-1, SUSE-SU-2025:1153-1, SUSE-SU-2026:22950-1, SUSE-SU-2026:22958-1, UBUNTU-CVE-2025-22871, openSUSE-SU-2025:14962-1, openSUSE-SU-2025:14963-1, openSUSE-SU-2025:14978-1, openSUSE-SU-2025:15029-1, openSUSE-SU-2025:15352-1, openSUSE-SU-2026:21447-1

## 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 | Ecosystem | 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 |
| `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.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-22871 and fix it if it is affected.

What it is: 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.
Exploitation: There is no known exploitation of CVE-2025-22871 in the wild and no public exploit code.

Affected packages and fixed versions:
- spiral/roadrunner (Packagist): affected all versions; fixed in 2025.1.0
- spiral/roadrunner (Packagist): affected all versions; fixed in 2025.1.0
- golang (Bitnami): affected all versions; fixed in 1.23.8, 1.24.2
- stdlib (Go): affected all versions; fixed in 1.23.8, 1.24.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-22871/ (Markdown: https://insights.sbomify.com/CVE-2025-22871/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-22871
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-22871
- OSV: https://osv.dev/vulnerability/CVE-2025-22871

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-22871/
Summaries are generated and may contain mistakes; the official description above is the record.
