RUSTSEC-2020-0071: Potential segfault in the time crate
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 25/100
Direzione di ricerca
Inizia con le informazioni sulle dipendenze Rust in questo avviso e ispeziona le dichiarazioni delle dipendenze del repository per la crate time. Usa cargo update come descritto, assicurati che la dipendenza venga risolta a una versione con patch non interessata e verifica che nell'albero delle dipendenze non rimanga alcuna versione vulnerabile di time.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Potential segfault in the time crate
| Details | |
|---|---|
| Package | time |
| Version | 0.1.44 |
| URL | https://github.com/time-rs/time/issues/293 |
| Date | 2020-11-18 |
| Patched versions | >=0.2.23 |
| Unaffected versions | =0.2.0,=0.2.1,=0.2.2,=0.2.3,=0.2.4,=0.2.5,=0.2.6 |
Impact
Unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires an environment variable to be set in a different thread than the affected functions. This may occur without the user's knowledge, notably in a third-party library.
The affected functions from time 0.2.7 through 0.2.22 are:
time::UtcOffset::local_offset_attime::UtcOffset::try_local_offset_attime::UtcOffset::current_local_offsettime::UtcOffset::try_current_local_offsettime::OffsetDateTime::now_localtime::OffsetDateTime::try_now_local
The affected functions in time 0.1 (all versions) are:
atat_utcnow
Non-Unix targets (including Windows and wasm) are unaffected.
Patches
Pending a proper fix, the internal method that determines the local offset has been modified to always return None on the affected operating systems. This has the effect of returning an Err on the try_* methods and UTC on the non-try_* methods.
Users and library authors with time in their dependency tree should perform cargo update, which will pull in the updated, unaffected code.
Users of time 0.1 do not have a patch and should upgrade to an unaffected version: time 0.2.23 or greater or the 0.3 series.
Workarounds
No workarounds are known.
See advisory page for additional details.
- Lingua principale
- Python
- Stelle
- 9
- Fork
- 2
- Merge medio
- 1g 9h
- PR unite (30g)
- 8
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di stackabletech/listener-operator
-
stackabletech/listener-operator#330 · 5 commenti · 1 reazione · 1 assegnatario ·
-
OpenShift Route backend Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
customer-request
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
stackabletech/listener-operator#302 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 20/100
-
Rename `listeners.stackable.tech/listener-class` PVC annotation to `listeners.stackable.tech/class` Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 43/100
stackabletech/listener-operator#271 · 1 commento ·
Tutte le issue di stackabletech/listener-operator
Issue simili
-
essnmx good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
-
[Feature] 奇物选择添加优先级 Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
syfoud/Simulated_Scepter#174 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Giskard-AI/giskard-oss#2840 · 1 commento ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Apertaarea: repo bug perceived difficulty: 2
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
yeti-platform/yeti#1380 ·