When MySQL or PostgreSQL service bindings from VCAP_SERVICES include TLS client credentials, the Connectors library writes those credentials to temporary files in Path.GetTempPath() using File.CreateText. On Linux, File.CreateText creates files with mode 0644 (world-readable) under the process umask, and the files are never deleted. The same key material is protected at mode 0400 in /proc/<pid>/environ.
Any process co-located in the container that runs as a different UID can read the TLS client private key from /tmp and use it to impersonate the application when connecting to the backing database over mutual TLS.
VCAP_SERVICES with a MySQL or PostgreSQL service binding that includes sslKey credentials.If an immediate upgrade is not possible, prevent other processes from running in the container under a different UID with access to /tmp.
{
"github_reviewed_at": "2026-07-02T20:32:09Z",
"nvd_published_at": "2026-06-17T23:17:04Z",
"github_reviewed": true,
"cwe_ids": [
"CWE-312",
"CWE-732"
],
"severity": "MODERATE"
}