{"id":"CVE-2019-16139","aliases":["EUVD-2021-1621","GHSA-7j36-gc4r-9x3r","RUSTSEC-2019-0015"],"status":"published","title":"Out of bounds access in compact_arena","description":"An issue was discovered in the compact_arena crate before 0.4.0 for Rust. Generativity is mishandled, leading to an out-of-bounds write or read.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01855,"percentile":0.79329,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125","CWE-787"],"published":"2019-05-21T12:00:00Z","modified":"2026-06-17T02:21:44Z","fixes":[{"ecosystem":"crates.io","package":"compact_arena","fixed_in":["0.4.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"compact_arena","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"compact_arena","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"compact_arena","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.4.0"}]}]}],"products":[{"vendor":"compact_arena_project","product":"compact_arena"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2019-0015.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web","advisory"]},{"url":"https://github.com/llogiq/compact_arena/issues/22","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-16139","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-7j36-gc4r-9x3r"},{"url":"https://github.com/llogiq/compact_arena","tags":["package"]},{"url":"https://crates.io/crates/compact_arena","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2019-16139","description":"An issue was discovered in the compact_arena crate before 0.4.0 for Rust. Generativity is mishandled, leading to an out-of-bounds write or read.","status":"published","published":"2019-09-09T11:50:34Z","modified":"2024-08-05T01:10:41.246Z","updated_at":"2026-11-02T14:32:23.485011Z"}],"euvd":[{"id":"EUVD-2021-1621","description":"An issue was discovered in the compact_arena crate before 0.4.0 for Rust. Generativity is mishandled, leading to an out-of-bounds write or read.","status":"published","published":"2019-09-09T11:50:34Z","modified":"2024-08-05T01:10:41Z","updated_at":"2026-11-03T02:40:33.179924Z"}],"ghsa":[{"id":"GHSA-7j36-gc4r-9x3r","title":"Out of bounds access in compact_arena","description":"Affected versions of this crate did not properly implement the generativity, because the invariant lifetimes were not necessarily dropped.\n\nThis allows an attacker to mix up two arenas, using indices created from one arena with another one. This might lead to an out-of-bounds read or write access into the memory reserved for the arena.\n\nThe flaw was corrected by implementing generativity correctly in version 0.4.0.","status":"published","published":"2021-08-25T20:44:48Z","modified":"2023-06-13T16:57:57Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-125","CWE-787"],"updated_at":"2026-11-02T14:36:53.103029Z"}],"nvd":[{"id":"CVE-2019-16139","description":"An issue was discovered in the compact_arena crate before 0.4.0 for Rust. Generativity is mishandled, leading to an out-of-bounds write or read.","status":"published","published":"2019-09-09T12:15:10.757Z","modified":"2026-06-17T02:21:44.77Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":9,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-125","CWE-787"],"updated_at":"2026-11-02T14:05:25.691233Z"}],"osv":[{"id":"GHSA-7j36-gc4r-9x3r","title":"Out of bounds access in compact_arena","description":"Affected versions of this crate did not properly implement the generativity, because the invariant lifetimes were not necessarily dropped.\n\nThis allows an attacker to mix up two arenas, using indices created from one arena with another one. This might lead to an out-of-bounds read or write access into the memory reserved for the arena.\n\nThe flaw was corrected by implementing generativity correctly in version 0.4.0.","status":"published","published":"2021-08-25T20:44:48Z","modified":"2023-11-08T04:01:16.163639Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-125","CWE-787"],"updated_at":"2026-11-02T15:46:41.002603Z"},{"id":"RUSTSEC-2019-0015","title":"Flaw in generativity allows out-of-bounds access","description":"Affected versions of this crate did not properly implement the generativity,\nbecause the invariant lifetimes were not necessarily `drop`ped.\n\nThis allows an attacker to mix up two arenas, using indices created from one\narena with another one. This might lead to an out-of-bounds read or write\naccess into the memory reserved for the arena.\n\nThe flaw was corrected by implementing generativity correctly in version 0.4.0.","status":"published","published":"2019-05-21T12:00:00Z","modified":"2023-11-08T04:01:16.163639Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
