CVE-2026-49756
Multipart form-data header injection in Req via unescaped name/filename/content_type
Check your servers for CVE-2026-49756
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-49756 affects req, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in wojtekmach Req allows multipart parameter smuggling via attacker-influenced part metadata.
Req.Utils.encode_form_part/2 in lib/req/utils.ex builds the per-part headers by interpolating the caller-supplied name, filename, and content_type values directly into the content-disposition and content-type lines with no escaping or CRLF stripping. A value containing ", \r, or \n closes the surrounding quoted value and starts a new header line; an additional \r\n--<boundary> terminates the current part and prepends a smuggled part of the attacker's choosing.
This is reachable through every supported way of supplying a part. It is particularly easy when value is a %File.Stream{}, because filename then defaults to Path.basename(stream.path) and POSIX filenames may legitimately contain \r and \n. Any application that forwards user-controlled filenames (or field names / MIME types) through Req.post/2 with form_multipart: lets an attacker inject arbitrary headers into the outgoing multipart body or smuggle additional fields and parts into the request the victim service sends downstream.
This issue affects req: from 0.5.3 before 0.6.0.
Severity (CVSS)
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality none, integrity low, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality low, integrity low, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.28%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 21.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 8 Jun 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-93 Improper Neutralization of CRLF Sequences
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
req
package
req |
affected from 0.5.3, before 0.6.0
Other versions: unaffected
|
|
req
package
wojtekmach/req |
affected 60253dbe9436cb8e9c738f895032f2e87939b597 and later (unaffected from 2d77dbeb6b2a6932fe181432b1c36e9ea1d9fa23, unaffected from 74506ff2c5addf74df85d79dc726e9b2e264a8ba)
Other versions: unaffected
|
Is my server affected?
Find the installed version of req and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i req
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-49756 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-49756RHEL, Rocky, Alma, Fedora
rpm -q req
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-49756Alpine
apk list --installed | grep -i reqWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-49756
trivy image --scanners vuln IMAGE | grep CVE-2026-49756
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Patches and release notes
- Fix commit 2d77dbe in wojtekmach/req github.com · patch
- Fix commit 74506ff in wojtekmach/req github.com · patch
Exploits and proof of concept
- Multipart form-data header injection via unescaped name/filename/content_type github.com · vendor advisory, related, exploit
Other references
- EEF CNA record for CVE-2026-49756 cna.erlef.org · related
- OSV record EEF-CVE-2026-49756 osv.dev · related
- Introducing commit 60253db in wojtekmach/req github.com · related
Source: the record CVE-2026-49756 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse