9.1critical
Null pointer deference in fltk
- Severity
- 9.1critical CVSS:3.1 by NVD
- Exploit likelihood
- 1.28% (higher than 70% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-5pg8-h4gv-m3p8GHSA-7qcc-g2m9-8533GHSA-vjmg-pc8h-p6p8RUSTSEC-2021-0038
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| fltk (crates.io) | before 0.15.3, from 0.0.0-0 before 0.15.3 | GitHub Advisory Database, RustSec Advisory Database |
| fltk_project fltk | before 0.15.3 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | 6.4medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
GitHub Advisory Database
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.
RustSec Advisory Database
Affected versions contain multiple memory safety issues, such as:
- Setting a multi label type where an image doesn't exist would lead to a NULL pointer dereference.
- Setting a window icon using a non-raster image (which FLTK rasterizes lazily) would lead to a NULL dereference.
- Pixmap constructor would not check for correct pixmaps which could lead to out-of bound reads.
NVD (es)
Se detectó un problema en la crate fltk versiones anteriores a 0.15.3 para Rust. Se presenta una lectura fuera de límites porque el constructor pixmap carece de una comprobación de entrada de pixmap
References
| https://rustsec.org/advisories/RUSTSEC-2021-0038.html | advisory, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-28306 | advisory | |
| https://github.com/MoAlyousef/fltk-rs/issues/519 | report, web | |
| https://github.com/MoAlyousef/fltk-rs | package | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-28307 | advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-28308 | advisory | |
| https://crates.io/crates/fltk | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-28308 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5pg8-h4gv-m3p8 changed 2024-03-15 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-7qcc-g2m9-8533 changed 2024-03-15 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-vjmg-pc8h-p6p8 changed 2024-03-15 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0038 changed 2024-03-15 | CC0-1.0 |
| NVD | CVE-2021-28308 changed 2026-06-17 | Public domain |