警戒
@fastify/multipart arbitrary relative-path file write in upload handling
CVE-2026-124289
Upload helpers in some Fastify apps let attackers save files anywhere.
- CVE
- CVE-2026-124289(新しいタブで開きます)
- スコア
- CVSS 7.5
- 初確認
7.5
対処法
Update @fastify/multipart to 10.1.9 or later. Until then, call saveRequestFiles only after confirming the request is multipart, and reduce each returned filename to its basename or validate it against an allowlist.
要約
A forged object in the request body can make the plugin save attacker-chosen bytes under an attacker-chosen filename. Filenames with parent directory segments can then write files to arbitrary locations, affecting versions 7.4.0 through 10.1.8.
該当する条件
- attachFieldsToBody option enabled
- app uses the filename from saveRequestFiles as a write destination
製品別のインシデント: @fastify/multipart
@fastify/multipart のほかの最近のインシデント
CVE レコードを読む · cve.org(新しいタブで開きます)
- CVE レコード: cve.org(新しいタブで開きます)