CVE-2021-28308
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
fltk (crates.io)before 0.15.3, from 0.0.0-0 before 0.15.3GitHub Advisory Database, RustSec Advisory Database
fltk_project fltkbefore 0.15.3NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
NVD6.4medium CVSS:2.0AV: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

Related

Sources

SourceRecordLicence
CVE ListCVE-2021-28308 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-5pg8-h4gv-m3p8 changed 2024-03-15CC-BY-4.0
GitHub Advisory DatabaseGHSA-7qcc-g2m9-8533 changed 2024-03-15CC-BY-4.0
GitHub Advisory DatabaseGHSA-vjmg-pc8h-p6p8 changed 2024-03-15CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2021-0038 changed 2024-03-15CC0-1.0
NVDCVE-2021-28308 changed 2026-06-17Public domain