Payload
Payload: SQL injection in SQLite/Postgres
Payload is a free and open source headless content management system. Prior to 3.90.0 and 4.0.0-canary.34, an attacker with read and create or update access to a collection containing a json field or a blocks field with blocksAsJSON enabled can inject SQL through a crafted field path and operators. Collections without those fields are not affected, and richText fields are not affected. The SQLite packages are fixed in versions 3.90.0 and 4.0.0-canary.34, and the Postgres packages are fixed in version 3.73.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3.0.0, < 3.90.0
- >= 4.0.0-canary.0, < 4.0.0-canary.34
Fixed in 3.90.0, 4.0.0-canary.34
- >= 3.0.0, < 3.90.0
- >= 4.0.0-canary.0, < 4.0.0-canary.34
Fixed in 3.90.0, 4.0.0-canary.34
- >= 3.0.0 < 3.73.0
Fixed in 3.73.0
- >= 3.0.0, < 3.90.0
- >= 4.0.0-canary.0, < 4.0.0-canary.34
Fixed in 3.90.0, 4.0.0-canary.34
- >= 3.0.0 < 3.73.0
Fixed in 3.73.0
Mitigation
Upgrade payload to 3.90.0 or 4.0.0-canary.34 or later.
Upgrade db-d1-sqlite to 3.90.0 or 4.0.0-canary.34 or later.
Upgrade db-postgres to 3.73.0 or later.
Upgrade db-sqlite to 3.90.0 or 4.0.0-canary.34 or later.
Upgrade db-vercel-postgres to 3.73.0 or later.
References
- Vendor advisory github.com/payloadcms/payload/security/advisor…
- Patch github.com/payloadcms/payload/commit/03b78c7e0…
- Release notes github.com/payloadcms/payload/releases/tag/v3.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.