CVE-2026-124289

Source
https://cve.org/CVERecord?id=CVE-2026-124289
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-124289.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-124289
Aliases
  • GHSA-gmhr-r4mc-w935
Published
2026-11-16T13:09:49Z
Modified
2026-11-17T20:45:53Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
@fastify/multipart vulnerable to arbitrary file write via type confusion in saveRequestFiles()
Details

@fastify/multipart is the official Fastify plugin for handling multipart/form-data uploads. In versions 7.4.0 through 10.1.8, when the plugin is registered with the attachFieldsToBody option, the saveRequestFiles helper treats any object in the parsed request body that carries truthy file and buffer properties as an uploaded file. An unauthenticated client can forge such an object through a plain JSON request or a JSON-typed multipart field, so attacker-chosen bytes are written to the temporary directory while upload hooks and the file count and size limits are skipped, and the saved entry keeps the attacker's filename verbatim instead of being reduced to its basename. Because that filename can contain parent directory segments, applications that use it as a write destination, as the project README example does, are exposed to an arbitrary relative-path file write from a single request. The issue is fixed in @fastify/multipart 10.1.9, and users should upgrade to 10.1.9 or later. As a workaround, call saveRequestFiles only after confirming the request is multipart, and reduce each returned filename to its basename or validate it against an allowlist before using it as a destination.

Database specific
{
    "cna_assigner":  "openjs",
    "cwe_ids":  [
        "CWE-22",
        "CWE-843"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/124xxx/CVE-2026-124289.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "introduced":  "7.4.0"
                        },
                        {
                            "fixed":  "10.1.9"
                        }
                    ],
                    "source":  "AFFECTED_FIELD",
                    "strategy":  "StandardRange"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/fastify/fastify-multipart

Affected ranges

Type
GIT
Repo
https://github.com/fastify/fastify-multipart
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "7.4.0"
                },
                {
                    "last_affected":  "10.1.8"
                }
            ],
            "source":  "DESCRIPTION"
        }
    ]
}

Affected versions

v10.*
v10.0.0
v10.1.0
v10.1.1
v10.1.2
v10.1.3
v10.1.4
v10.1.5
v10.1.6
v10.1.7
v10.1.8
v7.*
v7.4.0
v7.4.1
v7.4.2
v7.5.0
v7.6.0
v7.6.1
v7.7.0
v7.7.1
v7.7.2
v7.7.3
v8.*
v8.0.0
v8.1.0
v8.2.0
v8.3.0
v9.*
v9.0.0
v9.0.1
v9.0.2
v9.0.3
v9.1.0
v9.2.0
v9.2.1
v9.3.0
v9.4.0

Database specific

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