CVE-2026-120287

Source
https://cve.org/CVERecord?id=CVE-2026-120287
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120287.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-120287
Aliases
Published
2026-11-17T16:53:38Z
Modified
2026-11-17T19:45:22Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N CVSS Calculator
Summary
Multipart `:length` limit not charged for part and header framing in Plug.Parsers.MULTIPART
Details

Allocation of Resources Without Limits or Throttling vulnerability in Plug.Parsers.MULTIPART in elixir-plug plug allows an unauthenticated remote attacker to exhaust memory via a multipart request body built from parts without headers, or from header lines without a name and a value. The parser charges the :length limit only with the name and value bytes of each part header and the bytes of each part body. The part delimiter, the header separator, and the line endings cost nothing.

In lib/plug/parsers/multipart.ex, Plug.Parsers.MULTIPART.parse_multipart_headers/5 keeps an entry for every part without a content-disposition header, together with its header list, until the whole body is read. A request made of such parts does not reach the limit at any size, and the parser process holds a multiple of the request size in memory until parsing completes. Any endpoint that uses Plug.Parsers with the :multipart parser is reachable.

This issue affects plug: from 1.13.0 before 1.20.4.

Database specific
{
    "cna_assigner":  "EEF",
    "cwe_ids":  [
        "CWE-770"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120287.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "introduced":  "1.13.0"
                        },
                        {
                            "fixed":  "1.20.4"
                        }
                    ],
                    "source":  "AFFECTED_FIELD",
                    "strategy":  "StandardRange"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/elixir-plug/plug

Affected ranges

Type
GIT
Repo
https://github.com/elixir-plug/plug
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "e06acbd3d381931f23cbde7d763136c9ccb091ac"
                },
                {
                    "fixed":  "497913f2a6d744d693e98e96c5b9c6d88c265695"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "ChangesAt"
        },
        {
            "range":  [
                {
                    "fixed":  "e06acbd3d381931f23cbde7d763136c9ccb091ac"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "497913f2a6d744d693e98e96c5b9c6d88c265695"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "3d3fb645323643935c6c94863c1b3edfd62e2828"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120287.json"