{"id":"CVE-2019-25004","aliases":["EUVD-2021-1734","GHSA-gx73-2498-r55c","RUSTSEC-2019-0028"],"status":"published","title":"Unsound casting in flatbuffers","description":"An issue was discovered in the flatbuffers crate before 0.6.1 for Rust. Arbitrary bytes can be reinterpreted as a bool, defeating soundness.","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.00582,"percentile":0.4811,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-704"],"published":"2019-10-20T12:00:00Z","modified":"2026-06-17T02:31:27Z","fixes":[{"ecosystem":"crates.io","package":"flatbuffers","fixed_in":["0.6.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"flatbuffers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.4.0"},{"fixed":"0.6.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"flatbuffers","ranges":[{"type":"SEMVER","events":[{"introduced":"0.4.0"},{"fixed":"0.6.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"flatbuffers","ranges":[{"type":"SEMVER","events":[{"introduced":"0.4.0"},{"fixed":"0.6.1"}]}]}],"products":[{"vendor":"google","product":"flatbuffers"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2019-0028.html","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-25004","tags":["advisory"]},{"url":"https://github.com/google/flatbuffers/issues/5530","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-gx73-2498-r55c"},{"url":"https://github.com/google/flatbuffers","tags":["package"]},{"url":"https://crates.io/crates/flatbuffers","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2019-25004","description":"An issue was discovered in the flatbuffers crate before 0.6.1 for Rust. Arbitrary bytes can be reinterpreted as a bool, defeating soundness.","status":"published","published":"2020-12-31T08:32:41Z","modified":"2024-08-05T03:00:18.81Z","updated_at":"2026-11-02T14:20:19.399352Z"}],"euvd":[{"id":"EUVD-2021-1734","description":"An issue was discovered in the flatbuffers crate before 0.6.1 for Rust. Arbitrary bytes can be reinterpreted as a bool, defeating soundness.","status":"published","published":"2020-12-31T08:32:41Z","modified":"2024-08-05T03:00:18Z","updated_at":"2026-11-03T02:40:19.824838Z"}],"ghsa":[{"id":"GHSA-gx73-2498-r55c","title":"Unsound casting in flatbuffers","description":"The implementation of impl Follow for bool allows to reinterpret arbitrary bytes as a bool.\n\nIn Rust bool has stringent requirements for its in-memory representation. Use of this function allows to violate these requirements and invoke undefined behaviour in safe code.","status":"published","published":"2021-08-25T20:46:49Z","modified":"2023-06-13T17:17:50Z","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-704"],"updated_at":"2026-11-02T14:36:53.654352Z"}],"nvd":[{"id":"CVE-2019-25004","description":"An issue was discovered in the flatbuffers crate before 0.6.1 for Rust. Arbitrary bytes can be reinterpreted as a bool, defeating soundness.","status":"published","published":"2020-12-31T10:15:14.363Z","modified":"2026-06-17T02:31:27.83Z","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":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:05:48.502374Z"}],"osv":[{"id":"GHSA-gx73-2498-r55c","title":"Unsound casting in flatbuffers","description":"The implementation of impl Follow for bool allows to reinterpret arbitrary bytes as a bool.\n\nIn Rust bool has stringent requirements for its in-memory representation. Use of this function allows to violate these requirements and invoke undefined behaviour in safe code.","status":"published","published":"2021-08-25T20:46:49Z","modified":"2023-11-08T04:01:32.107935Z","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-704"],"updated_at":"2026-11-02T15:46:48.191583Z"},{"id":"RUSTSEC-2019-0028","title":"Unsound `impl Follow for bool`","description":"The implementation of `impl Follow for bool` allows to reinterpret arbitrary bytes as a `bool`.\n\nIn Rust `bool` has stringent requirements for its in-memory representation. Use of this function\nallows to violate these requirements and invoke undefined behaviour in safe code.","status":"published","published":"2019-10-20T12:00:00Z","modified":"2023-11-08T04:01:32.107935Z","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"}]}}
