Advisory

GHSA-rxrh-4j9h-xgg9

Also known as: CVE-2026-50267

Summary

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

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-07-02 20:32 UTC
Modified
2026-07-02 20:56 UTC

Affected packages and fixes

Steeltoe.Configuration.Abstractions

NuGet · All systems

Affected

  • introduced 4.0.0, fixed 4.2.0 (ecosystem)

Fixed versions

4.2.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences