CVE-2026-50267
JSON

4.7medium

Steeltoe: TLS private keys written to /tmp with default permissions, never deleted

Severity
4.7medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.07% (higher than 0% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-rxrh-4j9h-xgg9

Description

Steeltoe is an open source project that provides a collection of libraries that helps users build cloud-native applications. In Steeltoe.Configuration.Abstractions 4.0.0 through 4.1.0, 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`. Steeltoe.Configuration.Abstractions version 4.2.0 patches the issue. If an immediate upgrade is not possible, prevent other processes from running in the container under a different UID with access to `/tmp`.

Affected

Product or packageVersionsReported by
SteeltoeOSS Steeltoe.Configuration.Abstractions>= 4.0.0, < 4.2.0CVE List
Steeltoe.Configuration.Abstractions (NuGet)from 4.0.0 before 4.2.0GitHub Advisory Database

All scores

GitHub_M4.7medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
GitHub4.7medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-312CWE-732

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Steeltoe is an open source project that provides a collection of libraries that helps users build cloud-native applications. In Steeltoe.Configuration.Abstractions 4.0.0 through 4.1.0, 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`. Steeltoe.Configuration.Abstractions version 4.2.0 patches the issue. If an immediate upgrade is not possible, prevent other processes from running in the container under a different UID with access to `/tmp`.

GitHub Advisory Database
Summary

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.

Impact

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.

Affected configuration
  • Application is deployed on Cloud Foundry or another environment that populates VCAP_SERVICES with a MySQL or PostgreSQL service binding that includes sslKey credentials.
  • A process running as a different UID shares the container's filesystem.
Mitigations

If an immediate upgrade is not possible, prevent other processes from running in the container under a different UID with access to /tmp.

NVD (es)

Steeltoe es un proyecto de código abierto que proporciona una colección de bibliotecas que ayuda a los usuarios a construir aplicaciones nativas de la nube. En Steeltoe.Configuration.Abstractions 4.0.0 hasta 4.1.0, cuando los enlaces de servicio de MySQL o PostgreSQL de ’VCAP_SERVICES’ incluyen credenciales de cliente TLS, la biblioteca Connectors escribe esas credenciales en archivos temporales en ’Path.GetTempPath()’ usando ’File.CreateText’. En Linux, ’File.CreateText’ crea archivos con modo ’0644’ (legibles por todos) bajo la umask del proceso, y los archivos nunca se eliminan. El mismo material de clave está protegido en modo ’0400’ en ’/proc/[pid]/environ’. Steeltoe.Configuration.Abstractions versión 4.2.0 corrige el problema. Si una actualización inmediata no es posible, evite que otros procesos se ejecuten en el contenedor bajo un UID diferente con acceso a ’/tmp’.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-50267 changed 2026-06-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-rxrh-4j9h-xgg9 changed 2026-07-02CC-BY-4.0
NVDCVE-2026-50267 changed 2026-10-26Public domain