HSEC-2025-0006
Not scored
Private key leak via inherited file descriptor
- Severity
- Not scored
- Published
- Last changed
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| x509-store (Hackage) | from 0.1 | Haskell Security Advisories |
| crypton-x509-store (Hackage) | from 1.6.9 before 1.6.12 | Haskell Security Advisories |
References
Sources
| Source | Record | Licence |
|---|---|---|
| Haskell Security Advisories | HSEC-2025-0006 changed 2025-11-17 | CC0-1.0 |