Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Budibase: Server Filesystem Existence/Read Oracle via Builder-Controlled MongoDB tlsCertificateKeyFile

0
High
Published: 07/24/2026 (07/24/2026, 21:16:41 UTC)
Source: GCVE Database
Product: @budibase/server

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N

Affected software

npmghsa
@budibase/server
Affected versions
<=3.38.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/25/2026, 23:57:24 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses