{"id":"ALPINE-CVE-2020-36323","details":"In the standard library in Rust before 1.52.0, there is an optimization for joining strings that can cause uninitialized bytes to be exposed (or the program to crash) if the borrowed string changes after its length is checked.","modified":"2026-03-09T01:19:13.454742Z","published":"2021-04-14T07:15:12.087Z","upstream":["CVE-2020-36323"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2020-36323"}],"affected":[{"package":{"name":"rust","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/rust?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.51.0-r2"}]}],"versions":["1.10.0-r0","1.10.0-r1","1.16.0-r0","1.16.0-r1","1.16.0-r2","1.16.0-r3","1.16.0-r4","1.16.0-r5","1.17.0-r0","1.17.0-r1","1.17.0-r2","1.17.0-r3","1.18.0-r1","1.19.0-r0","1.20.0-r0","1.21.0-r0","1.21.0-r1","1.22.1-r0","1.23.0-r0","1.23.0-r1","1.24.0-r0","1.24.1-r0","1.25.0-r0","1.26.0-r0","1.26.0-r1","1.26.2-r0","1.27.0-r0","1.27.2-r0","1.28.0-r0","1.29.0-r0","1.30.0-r0","1.30.0-r1","1.31.1-r1","1.31.1-r2","1.32.0-r0","1.33.0-r0","1.34.2-r0","1.34.2-r1","1.35.0-r0","1.36.0-r0","1.37.0-r0","1.38.0-r0","1.38.0-r1","1.38.0-r2","1.39.0-r0","1.40.0-r0","1.40.0-r1","1.41.0-r0","1.41.0-r1","1.41.1-r0","1.42.0-r0","1.42.0-r1","1.42.0-r2","1.43.0-r0","1.43.1-r0","1.43.1-r1","1.44.0-r0","1.44.1-r0","1.45.1-r0","1.45.2-r0","1.46.0-r0","1.46.0-r1","1.46.0-r2","1.47.0-r0","1.47.0-r1","1.47.0-r2","1.48.0-r0","1.49.0-r0","1.50.0-r0","1.50.0-r1","1.51.0-r0","1.51.0-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-36323.json"}},{"package":{"name":"rust","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/rust?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.51.0-r2"}]}],"versions":["1.10.0-r0","1.10.0-r1","1.16.0-r0","1.16.0-r1","1.16.0-r2","1.16.0-r3","1.16.0-r4","1.16.0-r5","1.17.0-r0","1.17.0-r1","1.17.0-r2","1.17.0-r3","1.18.0-r1","1.19.0-r0","1.20.0-r0","1.21.0-r0","1.21.0-r1","1.22.1-r0","1.23.0-r0","1.23.0-r1","1.24.0-r0","1.24.1-r0","1.25.0-r0","1.26.0-r0","1.26.0-r1","1.26.2-r0","1.27.0-r0","1.27.2-r0","1.28.0-r0","1.29.0-r0","1.30.0-r0","1.30.0-r1","1.31.1-r1","1.31.1-r2","1.32.0-r0","1.33.0-r0","1.34.2-r0","1.34.2-r1","1.35.0-r0","1.36.0-r0","1.37.0-r0","1.38.0-r0","1.38.0-r1","1.38.0-r2","1.39.0-r0","1.40.0-r0","1.40.0-r1","1.41.0-r0","1.41.0-r1","1.41.1-r0","1.42.0-r0","1.42.0-r1","1.42.0-r2","1.43.0-r0","1.43.1-r0","1.43.1-r1","1.44.0-r0","1.44.1-r0","1.45.1-r0","1.45.2-r0","1.46.0-r0","1.46.0-r1","1.46.0-r2","1.47.0-r0","1.47.0-r1","1.47.0-r2","1.48.0-r0","1.49.0-r0","1.50.0-r0","1.50.0-r1","1.51.0-r0","1.51.0-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-36323.json"}},{"package":{"name":"rust","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/rust?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.51.0-r2"}]}],"versions":["1.10.0-r0","1.10.0-r1","1.16.0-r0","1.16.0-r1","1.16.0-r2","1.16.0-r3","1.16.0-r4","1.16.0-r5","1.17.0-r0","1.17.0-r1","1.17.0-r2","1.17.0-r3","1.18.0-r1","1.19.0-r0","1.20.0-r0","1.21.0-r0","1.21.0-r1","1.22.1-r0","1.23.0-r0","1.23.0-r1","1.24.0-r0","1.24.1-r0","1.25.0-r0","1.26.0-r0","1.26.0-r1","1.26.2-r0","1.27.0-r0","1.27.2-r0","1.28.0-r0","1.29.0-r0","1.30.0-r0","1.30.0-r1","1.31.1-r1","1.31.1-r2","1.32.0-r0","1.33.0-r0","1.34.2-r0","1.34.2-r1","1.35.0-r0","1.36.0-r0","1.37.0-r0","1.38.0-r0","1.38.0-r1","1.38.0-r2","1.39.0-r0","1.40.0-r0","1.40.0-r1","1.41.0-r0","1.41.0-r1","1.41.1-r0","1.42.0-r0","1.42.0-r1","1.42.0-r2","1.43.0-r0","1.43.1-r0","1.43.1-r1","1.44.0-r0","1.44.1-r0","1.45.1-r0","1.45.2-r0","1.46.0-r0","1.46.0-r1","1.46.0-r2","1.47.0-r0","1.47.0-r1","1.47.0-r2","1.48.0-r0","1.49.0-r0","1.50.0-r0","1.50.0-r1","1.51.0-r0","1.51.0-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-36323.json"}},{"package":{"name":"rust","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/rust?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.51.0-r2"}]}],"versions":["1.10.0-r0","1.10.0-r1","1.16.0-r0","1.16.0-r1","1.16.0-r2","1.16.0-r3","1.16.0-r4","1.16.0-r5","1.17.0-r0","1.17.0-r1","1.17.0-r2","1.17.0-r3","1.18.0-r1","1.19.0-r0","1.20.0-r0","1.21.0-r0","1.21.0-r1","1.22.1-r0","1.23.0-r0","1.23.0-r1","1.24.0-r0","1.24.1-r0","1.25.0-r0","1.26.0-r0","1.26.0-r1","1.26.2-r0","1.27.0-r0","1.27.2-r0","1.28.0-r0","1.29.0-r0","1.30.0-r0","1.30.0-r1","1.31.1-r1","1.31.1-r2","1.32.0-r0","1.33.0-r0","1.34.2-r0","1.34.2-r1","1.35.0-r0","1.36.0-r0","1.37.0-r0","1.38.0-r0","1.38.0-r1","1.38.0-r2","1.39.0-r0","1.40.0-r0","1.40.0-r1","1.41.0-r0","1.41.0-r1","1.41.1-r0","1.42.0-r0","1.42.0-r1","1.42.0-r2","1.43.0-r0","1.43.1-r0","1.43.1-r1","1.44.0-r0","1.44.1-r0","1.45.1-r0","1.45.2-r0","1.46.0-r0","1.46.0-r1","1.46.0-r2","1.47.0-r0","1.47.0-r1","1.47.0-r2","1.48.0-r0","1.49.0-r0","1.50.0-r0","1.50.0-r1","1.51.0-r0","1.51.0-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-36323.json"}},{"package":{"name":"rust","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/rust?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.51.0-r2"}]}],"versions":["1.10.0-r0","1.10.0-r1","1.16.0-r0","1.16.0-r1","1.16.0-r2","1.16.0-r3","1.16.0-r4","1.16.0-r5","1.17.0-r0","1.17.0-r1","1.17.0-r2","1.17.0-r3","1.18.0-r1","1.19.0-r0","1.20.0-r0","1.21.0-r0","1.21.0-r1","1.22.1-r0","1.23.0-r0","1.23.0-r1","1.24.0-r0","1.24.1-r0","1.25.0-r0","1.26.0-r0","1.26.0-r1","1.26.2-r0","1.27.0-r0","1.27.2-r0","1.28.0-r0","1.29.0-r0","1.30.0-r0","1.30.0-r1","1.31.1-r1","1.31.1-r2","1.32.0-r0","1.33.0-r0","1.34.2-r0","1.34.2-r1","1.35.0-r0","1.36.0-r0","1.37.0-r0","1.38.0-r0","1.38.0-r1","1.38.0-r2","1.39.0-r0","1.40.0-r0","1.40.0-r1","1.41.0-r0","1.41.0-r1","1.41.1-r0","1.42.0-r0","1.42.0-r1","1.42.0-r2","1.43.0-r0","1.43.1-r0","1.43.1-r1","1.44.0-r0","1.44.1-r0","1.45.1-r0","1.45.2-r0","1.46.0-r0","1.46.0-r1","1.46.0-r2","1.47.0-r0","1.47.0-r1","1.47.0-r2","1.48.0-r0","1.49.0-r0","1.50.0-r0","1.50.0-r1","1.51.0-r0","1.51.0-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-36323.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H"}]}