OSV 1.4.0 · github-reviewed · 修改于 2026-07-21 05:16
发布时间
2026-05-22 04:35
GitHub 审查时间
2026-05-22 04:35
NVD 发布时间
2026-06-24 05:16
源文件
advisories/github-reviewed/2026/05/GHSA-99vc-2jx2-688p/GHSA-99vc-2jx2-688p.json
The uploadViaURL path in the v1/v2 attachment API did not enforce NC_ATTACHMENT_FIELD_SIZE against the remote content-length or against the response stream. An authenticated user (Editor+) could direct the server to download arbitrarily large files, exhausting disk space and causing denial of service.
In packages/nocodb/src/services/attachments.service.ts, the HEAD probe read content-length but never compared it to NC_ATTACHMENT_FIELD_SIZE; the subsequent storageAdapter.fileCreateByUrl() performed the download without maxContentLength. The v3 service (v3/data-attachment-v3.service.ts) already enforced the limit, but the v1/v2 endpoints (POST /api/v1/db/storage/upload-by-url, POST /api/v2/storage/upload-by-url) did not.
This is distinct from GHSA-xr7v-j379-34v9 (blind SSRF via HEAD) — same code area, different class.
This issue was reported by @ik0z.