Security mailing lists by PureSourceCode

HSEC-2025-0006

MEDIUM 5.3CVSS 3.1

Private key leak via inherited file descriptor

Private key leak via inherited file descriptor

The X.509 key reading function readKeyFile opened a file
descriptor to the private key without setting the close-on-exec
flag. If a child process is execed at the same time, it would
inherit that file descriptor and could read the private key
material.

Impact is limited to child processes that run untrusted code, but
that do not close inherited file descriptors. (For example, the
su(1) command.)

This leak was fixed by setting the close-on-exec flag on
unix-based systems.

Published
17 Nov 2025
Last modified
17 Nov 2025
Sources
OSVJSON

Scores

SourceScored byVersionScoreVector / decision
OSV HSEC CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Hackage x509-store >= 0.1
OSV Hackage crypton-x509-store >= 1.6.9, < 1.6.12 1.6.12

References

History

  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 17 Nov 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.