Skip to content

net/textproto, mime/multipart: memory limit bypass when parsing MIME headers #81741

Closed

Description

@neild

Parsing a multipart form could bypass memory limits and read an
arbitrarily long line into memory when the remaining limit at the
start of a part was less than 400 bytes.

Multipart form memory limits are now properly enforced in this situation.

Thanks to Jakub Ciolek (https://ciolek.dev) for reporting this issue.

This is CVE-2026-94440 and Go issue https://go.dev/issue/81741.


This was a PRIVATE track issue originally tracked in http://b/547883711.

Activity

  1. added this to the Go1.28 milestone on Sep 24, 2026
  2. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Sep 29, 2026
  3. removed
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Sep 30, 2026
  4. thatnealpatel commented on Sep 30, 2026

    @thatnealpatel
    Member

    @gopherbot Please open backports for this security issue.

  5. gopherbot commented on Sep 30, 2026

    @gopherbot
    Contributor

    Backport issue(s) opened: #81901 (for 1.26), #81902 (for 1.27).

    Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases.

  6. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Oct 5, 2026
  7. gopherbot commented on Oct 8, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/847026 mentions this issue: [release-branch.go1.27] net/textproto: enforce MIME memory limit on first line

  8. gopherbot commented on Oct 8, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/847106 mentions this issue: [release-branch.go1.26] net/textproto: enforce MIME memory limit on first line

  9. gopherbot commented on Oct 8, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/847307 mentions this issue: net/textproto: enforce MIME memory limit on first line

  10. changed the title [-]security: fix CVE-2026-94440[/-] [+]net/textproto, mime/multipart: memory limit bypass when parsing MIME headers[/+] on Oct 8, 2026
  11. removed
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions