{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-49756","id":"CVE-2026-49756","title":"Multipart form-data header injection in Req via unescaped name/filename/content_type","description":"Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in wojtekmach Req allows multipart parameter smuggling via attacker-influenced part metadata.\n\nReq.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 escapin","descriptionLong":"Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in wojtekmach Req allows multipart parameter smuggling via attacker-influenced part metadata.\n\nReq.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.\n\nThis 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.\n\nThis issue affects req: from 0.5.3 before 0.6.0.","published":"2026-06-08T15:20:24.035Z","updated":"2026-11-20T10:00:12.422869641Z","reserved":"2026-06-01T13:45:22.448Z","status":"Modified","rejected":false,"assigner":"EEF","metric":{"version":"4.0","score":2.1,"vector":"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","rating":"low","source":"EEF"},"metrics":[{"version":"4.0","score":2.1,"vector":"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","rating":"low","source":"EEF"},{"version":"4.0","score":2.1,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"low","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"low","source":"NVD"}],"rating":"low","products":["wojtekmach req"],"affectedProducts":[{"vendor":"wojtekmach","product":"req","defaultStatus":"unaffected","versions":[{"lessThan":"0.6.0","status":"affected","version":"0.5.3","versionType":"semver"}],"platforms":[]},{"vendor":"wojtekmach","product":"req","defaultStatus":"unaffected","versions":[{"changes":[{"at":"2d77dbeb6b2a6932fe181432b1c36e9ea1d9fa23","status":"unaffected"},{"at":"74506ff2c5addf74df85d79dc726e9b2e264a8ba","status":"unaffected"}],"lessThan":"*","status":"affected","version":"60253dbe9436cb8e9c738f895032f2e87939b597","versionType":"git"}],"platforms":[]}],"packages":[{"ecosystem":"Hex","name":"req","purl":"pkg:hex/req","ranges":[">=0.5.3 <0.6.0"],"fixed":["0.6.0"],"advisory":"GHSA-px9f-whj3-246m"}],"cwes":["CWE-93"],"aliases":["EEF-CVE-2026-49756","GHSA-px9f-whj3-246m"],"references":[{"url":"https://github.com/wojtekmach/req/security/advisories/GHSA-px9f-whj3-246m","tags":["vendor-advisory","related","exploit","Vendor Advisory","advisory","web"]},{"url":"https://cna.erlef.org/cves/CVE-2026-49756.html","tags":["related","Mitigation","Third Party Advisory","web"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-49756","tags":["related","Third Party Advisory","web"]},{"url":"https://github.com/wojtekmach/req/commit/60253dbe9436cb8e9c738f895032f2e87939b597","tags":["related","fix"]},{"url":"https://github.com/wojtekmach/req/commit/2d77dbeb6b2a6932fe181432b1c36e9ea1d9fa23","tags":["patch","fix"]},{"url":"https://github.com/wojtekmach/req/commit/74506ff2c5addf74df85d79dc726e9b2e264a8ba","tags":["patch","Patch","fix","web"]},{"url":"https://github.com","tags":["web"]},{"url":"https://repo.hex.pm","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49756.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49756","tags":["advisory"]},{"url":"https://github.com/wojtekmach/req","tags":["package"]},{"url":"https://github.com/wojtekmach/req/releases/tag/v0.6.0","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00207,"epssPercentile":0.1093,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-49756","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49756","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-49756","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-px9f-whj3-246m","ok":true,"note":"GHSA-px9f-whj3-246m"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-49756","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}