{"id":"GHSA-99vc-2jx2-688p","revision":"847ec24e4192427593d5d8ae9af8cdc2","records":[{"revision":"847ec24e4192427593d5d8ae9af8cdc2","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-99vc-2jx2-688p","aliases":["CVE-2026-46551"],"title":"NocoDB: Missing File Size Enforcement in Upload-by-URL Allows Denial of Service via Disk Exhaustion","description":"### Summary\n\nThe `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.\n\n### Details\n\nIn `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.\n\nThis is distinct from GHSA-xr7v-j379-34v9 (blind SSRF via HEAD) — same code area, different class.\n\n### Impact\n\n- Authenticated DoS via disk exhaustion. Editor role suffices.\n- Cascading failures once disk fills: blocked DB writes, log rotation, application crash.\n\n### Credit\n\nThis issue was reported by [@ik0z](https://github.com/ik0z).","state":0,"publishedAt":"2026-05-21T20:35:41+00:00","modifiedAt":"2026-07-20T21:30:36.2341033+00:00","affected":[{"ecosystem":"npm","name":"nocodb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"0.301.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/nocodb/nocodb/security/advisories/GHSA-99vc-2jx2-688p","https://nvd.nist.gov/vuln/detail/CVE-2026-46551","https://github.com/nocodb/nocodb"],"sourceUrl":"https://github.com/advisories/GHSA-99vc-2jx2-688p","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-99vc-2jx2-688p","identifiers":["GHSA-99vc-2jx2-688p","CVE-2026-46551"]},"retained":false,"historicalAffected":[]}],"coverage":[]}