<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-07T21:35:45.208663+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-r3rm-qphw-hh76</id>
    <title>GHSA-r3rm-qphw-hh76 — Coraza: Truncated multipart body bypasses MULTIPART_STRICT_ERROR (rule 200003) via silent io.ErrUnexpectedEOF handling</title>
    <updated>2026-10-07T21:35:45.239493+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Go: github.com/corazawaf/coraza/v3</p>
<p>## Root Cause</p>
<p>File: `internal/bodyprocessors/multipart.go` (since commit `3347961b`, PR #1453 *"feat: ignore unexpected EOF in MIME multipart request body processor"*, merged 2026-03-06, first shipped in `v3.4.0`).</p>
<p>The multipart body processor treats `io.ErrUnexpectedEOF` as a benign condition. Three sites are affected; all mishandle the error the same way.</p>
<p>### File branch, filesystem-backed (lines 71–77)</p>
<p>```go
sz, err := io.Copy(temp, p)
if err != nil {
    if !errors.Is(err, io.ErrUnexpectedEOF) {
        v.MultipartStrictError().(*collections.Single).Set("1")
        return err
    }
    seenUnexpectedEOF = true     // &lt;-- flag never set for UnexpectedEOF
}
```</p>
<p>### File branch, TinyGo path (lines 82–88)</p>
<p>```go
sz, err := io.Copy(io.Discard, p)
if err != nil {
    if !errors.Is(err, io.ErrUnexpectedEOF) {
        v.MultipartStrictError().(*collections.Single).Set("1")
        return err
    }
    seenUnexpectedEOF = true     // &lt;-- same gap
}
```</p>
<p>### Field branch (lines 102–113)</p>
<p>```go
data, err := io.ReadAll(p)
if err != nil {
    if !errors.Is(err, io.ErrUnexpectedEOF) {
        v.MultipartStrictError().(*collections.Single).Set("1")
        return err
    }
}
...
if errors.Is(err, io.ErrUnexpectedEOF) {
    break                         // &lt;-- exits loop with no flag set
}
```</p>
<p>The function then returns `nil` at line 116 for any body that ended prematurely. Consequences:</p>
<p>1. `MULTIPART_STRICT_ERROR` stays at its initial value `0`.
2. `REQBODY_ERROR` is not propaga…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-r3rm-qphw-hh76"/>
  </entry>
</feed>
