{"id":"CVE-2021-28307","aliases":["CVE-2021-28307","GHSA-5pg8-h4gv-m3p8","GHSA-7qcc-g2m9-8533","GHSA-vjmg-pc8h-p6p8","RUSTSEC-2021-0038"],"related":["CVE-2021-28306","CVE-2021-28308"],"kind":"vulnerability","state":"published","title":"Null pointer deference in fltk","summary":"An issue was discovered in the fltk crate before 0.15.3 for Rust. There is a NULL pointer dereference during attempted use of a non-raster image for a window icon.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the fltk crate before 0.15.3 for Rust. There is a NULL pointer dereference during attempted use of a non-raster image for a window icon.","source":"cvelist"},{"lang":"en","text":"An issue was discovered in the fltk crate before 0.15.3 for Rust. There is a NULL pointer dereference during attempted use of a multi label type if the image is nonexistent.","format":"markdown","source":"ghsa"},{"lang":"en","text":"An issue was discovered in the fltk crate before 0.15.3 for Rust. There is an out-of bounds read because the pixmap constructor lacks pixmap input validation.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Affected versions contain multiple memory safety issues, such as:\n\n - Setting a multi label type where an image doesn't exist would lead to a NULL pointer dereference.\n - Setting a window icon using a non-raster image (which FLTK rasterizes lazily) would lead to a NULL dereference.\n - Pixmap constructor would not check for correct pixmaps which could lead to out-of bound reads.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate fltk versiones anteriores a 0.15.3 para Rust.&#xa0;Se presenta una desreferencia del puntero NULL durante el intento de usar una imagen non-raster para un icono de window","source":"nvd"}],"published":"2021-03-06T12:00:00.000Z","modified":"2026-06-17T03:46:08.220Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-125","CWE-476"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.15.3"}],"ecosystem":"crates.io","package":"fltk","purl":"pkg:cargo/fltk","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.15.3"}],"ecosystem":"crates.io","package":"fltk","purl":"pkg:cargo/fltk","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.15.3"}],"ecosystem":"crates.io","package":"fltk","purl":"pkg:cargo/fltk","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.15.3"}],"ecosystem":"crates.io","package":"fltk","purl":"pkg:cargo/fltk","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.15.3"}],"vendor":"fltk_project","product":"fltk","cpe":"cpe:2.3:a:fltk_project:fltk:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0038.html","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28306","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/MoAlyousef/fltk-rs/issues/519","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/MoAlyousef/fltk-rs","tags":["package"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28307","tags":["advisory"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28308","tags":["advisory"],"sources":["ghsa"]},{"url":"https://crates.io/crates/fltk","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-28307","url":"https://www.cve.org/CVERecord?id=CVE-2021-28307","licence":"CVE Terms of Use","modified":"2024-08-03T21:40:13.190Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5pg8-h4gv-m3p8","url":"https://github.com/advisories/GHSA-5pg8-h4gv-m3p8","licence":"CC-BY-4.0","modified":"2024-03-15T00:05:17.414Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7qcc-g2m9-8533","url":"https://github.com/advisories/GHSA-7qcc-g2m9-8533","licence":"CC-BY-4.0","modified":"2024-03-15T00:05:17.414Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vjmg-pc8h-p6p8","url":"https://github.com/advisories/GHSA-vjmg-pc8h-p6p8","licence":"CC-BY-4.0","modified":"2024-03-15T00:05:17.414Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0038","url":"https://rustsec.org/advisories/RUSTSEC-2021-0038.html","licence":"CC0-1.0","modified":"2024-03-15T00:05:17.414Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-28307","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28307","licence":"Public domain","modified":"2026-06-17T03:46:08.220Z"}],"updatedAt":"2026-11-25T22:58:00.273Z","epss":{"score":0.0113,"percentile":0.67321,"date":"2026-12-01T12:00:22.000Z"}}