Skip to content

Commit a285059

Browse files
authored
Update RUSTSEC-0000-0000.md
1 parent 2c95894 commit a285059

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

crates/openssl-probe/RUSTSEC-0000-0000.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ categories = ["memory-corruption"]
1010
cvss = "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H"
1111
keywords = ["ssl", "openssl", "environment"]
1212

13+
[affected.functions]
14+
"openssl_probe::try_init_ssl_cert_env_vars" = ["< 0.1.6"]
15+
1316
[affected]
1417
os = ["linux"]
1518

1619
[versions]
17-
patched = []
20+
patched = [">= 0.1.6"]
1821
```
1922

2023
# `openssl-probe` may cause memory corruption in multi-threaded processes
@@ -27,5 +30,10 @@ may cause the other threads to access dangling pointer values in the cases where
2730
environment data is moved or resized in response to an additional environment variable being
2831
added, or a variable's contents being enlarged.
2932

33+
This is shown to occur on Linux, but it will also likely occur on any other platform where `getenv`
34+
and `setenv` are not thread-safe, though trigger conditions may vary widely.
35+
3036
The affected function is `try_init_ssl_cert_env_vars` in
31-
<https://github.com/alexcrichton/openssl-probe/blob/master/src/lib.rs#L65>.
37+
<https://github.com/alexcrichton/openssl-probe/blob/db67c9e5b333b1b4164467b17f5d99207fad004c/src/lib.rs#L65>.
38+
39+
The crate's author released a fix in versions `>=0.1.6` which marks these functions as `unsafe` and `#[deprecated]`.

0 commit comments

Comments
 (0)