Budibase: Server Filesystem Existence/Read Oracle via Builder-Controlled MongoDB tlsCertificateKeyFile
Budibase versions up to 3.38.1 have a vulnerability where the MongoDB datasource configuration accepts arbitrary absolute filesystem paths for tlsCertificateKeyFile and tlsCAFile fields. This allows a builder to perform arbitrary file existence checks and read file contents on the underlying server via the datasource verification API. The server responds differently depending on whether the file exists or not, enabling an attacker to enumerate files. This affects multi-tenant Budibase Cloud servers by exposing sensitive server files and potentially other tenants' data. No official patch or fix is currently documented.
AI Analysis
Technical Summary
Budibase improperly passes the tlsCertificateKeyFile and tlsCAFile configuration fields directly to the MongoDB driver as filesystem paths without validation or confinement. On Budibase Cloud, where customers cannot place files on the server, this allows a builder to specify arbitrary absolute paths on the multi-tenant server. When verifying the datasource, the MongoDB driver attempts to read these files, causing the server to reveal whether the file exists and, if it does, returning errors indicating file content was read. This creates an arbitrary-path existence and read oracle on the server filesystem accessible via the /api/datasources/verify endpoint. The vulnerability arises from lack of allow-listing, no path confinement, and acceptance of absolute and relative paths with '..'.
Potential Impact
An attacker with builder-level access can enumerate arbitrary files on the underlying multi-tenant Budibase Cloud server by observing differing error responses from the datasource verification API. This can expose server configuration files, secrets, and other tenants' files. Additionally, PEM/certificate files can be exfiltrated via mutual-TLS connections to an attacker-controlled MongoDB server. This compromises confidentiality of sensitive server data and potentially other tenants' data in a shared environment.
Mitigation Recommendations
No official patch or fix is documented in the provided data. Recommended mitigations include disallowing filesystem paths for tlsCertificateKeyFile and tlsCAFile on managed/cloud environments, instead accepting PEM content and writing it to a temporary file in a fixed directory. Absolute and '..' paths should be rejected, and file references confined to an allow-listed certificates directory. Additionally, routing MongoDB connection hosts through SSRF blacklists is advised. Until an official fix is released, restrict builder permissions and avoid using untrusted MongoDB datasource configurations with these fields.
Budibase: Server Filesystem Existence/Read Oracle via Builder-Controlled MongoDB tlsCertificateKeyFile
Description
Budibase versions up to 3.38.1 have a vulnerability where the MongoDB datasource configuration accepts arbitrary absolute filesystem paths for tlsCertificateKeyFile and tlsCAFile fields. This allows a builder to perform arbitrary file existence checks and read file contents on the underlying server via the datasource verification API. The server responds differently depending on whether the file exists or not, enabling an attacker to enumerate files. This affects multi-tenant Budibase Cloud servers by exposing sensitive server files and potentially other tenants' data. No official patch or fix is currently documented.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Budibase improperly passes the tlsCertificateKeyFile and tlsCAFile configuration fields directly to the MongoDB driver as filesystem paths without validation or confinement. On Budibase Cloud, where customers cannot place files on the server, this allows a builder to specify arbitrary absolute paths on the multi-tenant server. When verifying the datasource, the MongoDB driver attempts to read these files, causing the server to reveal whether the file exists and, if it does, returning errors indicating file content was read. This creates an arbitrary-path existence and read oracle on the server filesystem accessible via the /api/datasources/verify endpoint. The vulnerability arises from lack of allow-listing, no path confinement, and acceptance of absolute and relative paths with '..'.
Potential Impact
An attacker with builder-level access can enumerate arbitrary files on the underlying multi-tenant Budibase Cloud server by observing differing error responses from the datasource verification API. This can expose server configuration files, secrets, and other tenants' files. Additionally, PEM/certificate files can be exfiltrated via mutual-TLS connections to an attacker-controlled MongoDB server. This compromises confidentiality of sensitive server data and potentially other tenants' data in a shared environment.
Mitigation Recommendations
No official patch or fix is documented in the provided data. Recommended mitigations include disallowing filesystem paths for tlsCertificateKeyFile and tlsCAFile on managed/cloud environments, instead accepting PEM content and writing it to a temporary file in a fixed directory. Absolute and '..' paths should be rejected, and file references confined to an allow-listed certificates directory. Additionally, routing MongoDB connection hosts through SSRF blacklists is advised. Until an official fix is released, restrict builder permissions and avoid using untrusted MongoDB datasource configurations with these fields.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-ppr4-5f46-j9c6
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a6542309c2644c7f808a736
Added to database: 07/25/2026, 23:09:36 UTC
Last enriched: 07/25/2026, 23:57:24 UTC
Last updated: 07/26/2026, 04:51:35 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.