Summary
Budibase Server from version 3.39.18 up to (but not including) 4.0.0 contains a prototype pollution vulnerability (CWE-943). An unauthenticated attacker can supply __proto__ as a dynamic JSON key in PUBLIC queries. This reduces the MongoDB query filter to an empty object {}.
Per the CVSS vector (score 10.0, critical), the attack is carried out over the network with low complexity and requires no authentication and no user interaction. The impact extends beyond the vulnerable component (scope changed). A single request to the query execution endpoint is enough.
The attacker can then read, update or delete every document in the affected MongoDB collection. This means a full loss of data confidentiality and integrity. The vulnerability is not listed in CISA KEV. EPSS is about 1.1% (66th percentile).
Who is affected
Organizations running Budibase Server versions 3.39.18 through before 4.0.0 with MongoDB data sources and PUBLIC queries.
What to do
- Upgrade Budibase Server to version 4.0.0 or later.
- Check your running version and whether your apps expose PUBLIC queries against MongoDB data sources.
- Until you upgrade, restrict network access to the Budibase instance and its query execution endpoint. Consider temporarily removing public access to queries.
- Review request logs for __proto__ keys and verify data integrity in your MongoDB collections.
- Refer to the official advisory GHSA-x4w8-596q-fmh7 for details.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Affects other components
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- None
Weakness type (CWE)
- CWE-943 Improper Neutralization of Special Elements in Data Query Logic
References
- github.com/Budibase/budibase/security/advisories/GHSA-x4w8-596q-fmh7 vendor advisory
- www.vulncheck.com/advisories/budibase-server-3.39.18-before-4.0.0-mongodb-filter-erasure-v
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.