CVE-2026-24799

A heap-based buffer over-read or buffer overflow in davisking/dlib

Published Jan 27, 2026 CVSS 4.0 · 5.2 Medium EPSS < 1% KEV · Not listed
Description
Out-of-bounds Write, Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') vulnerability in davisking dlib (dlib/external/zlib modules). This vulnerability is associated with program files inflate.C.

This issue affects dlib: before v19.24.9.

Analysis

AI-generated

Technical impact

A heap‑based buffer over‑read or overflow exists in the dlib library, caused by a buffer copy that does not verify the size of the input. This flaw is associated with the inflate.C module and may allow an attacker to corrupt memory, potentially leading to arbitrary code execution or denial of service. The weakness matches CWE‑120 and CWE‑787, both indicating classic buffer overflow vulnerabilities.

Affected Systems

The issue affects the dlib library from the vendor davisking and impacts any installations of dlib prior to version 19.24.9.

Risk and Exploitability

The CVSS score of 5.2 indicates moderate severity, while the EPSS score of less than 1% points to a very low but nonzero likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog, reducing immediate exposure. Based on the description, it is inferred that exploitation would require delivery of a crafted payload to the inflate.C routine, which processes external input streams. Based on the description, it is inferred that if the attacker gains sufficient privileges to run code within the dlib context, the memory corruption could be leveraged for privilege escalation or arbitrary code execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade dlib to version 19.24.9 or later, following the fix identified in PR 3063.
  • If an upgrade is temporarily infeasible, disable or remove the inflate.C functionality from your deployment or enforce strict input size validation before it is called.
  • Consider compiling dlib with runtime bounds checking or using tools such as AddressSanitizer during development to detect similar over‑read situations.

Generated by OpenCVE AI on April 18, 2026 at 14:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Dlib
Dlib dlib
CPEs cpe:2.3:a:dlib:dlib:*:*:*:*:*:*:*:*
Vendors & Products Dlib
Dlib dlib
Metrics cvssV3_1

{'score': 5.6, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:H'}

Type Values Removed Values Added
First Time appeared Davisking
Davisking dlib
Vendors & Products Davisking
Davisking dlib
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Out-of-bounds Write, Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') vulnerability in davisking dlib (dlib/external/zlib modules). This vulnerability is associated with program files inflate.C. This issue affects dlib: before v19.24.9.
Title A heap-based buffer over-read or buffer overflow in davisking/dlib
Weaknesses CWE-120
CWE-787
References
Metrics cvssV4_0

{'score': 5.2, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:N/VI:L/VA:H/SC:N/SI:L/SA:L/S:N/AU:Y/R:U/V:C/RE:L/U:Amber'}

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
GovTech CSG
Published
Updated
Jan 27, 2026, 3:29 PM
Reserved
Jan 27, 2026, 8:18 AM
Status
Analyzed
Published
Jan 27, 2026, 9:15 AM
Modified
Nov 13, 2026, 5:01 PM