CVE-2026-5450

scanf %mc off-by-one heap buffer overflow

Published Apr 20, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
Calling the scanf family of functions with a %mc (malloc'd character match) in the GNU C Library version 2.7 to version 2.43 with a format width specifier with an explicit width greater than 1024 could result in a one byte heap buffer overflow.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8611-1 GNU C Library vulnerabilities
History
Type Values Removed Values Added
First Time appeared Gnu
Gnu glibc
Weaknesses CWE-787
CPEs cpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:*
Vendors & Products Gnu
Gnu glibc
Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared The Gnu C Library
The Gnu C Library glibc
Vendors & Products The Gnu C Library
The Gnu C Library glibc
Type Values Removed Values Added
Description Calling the scanf family of functions with a %mc (malloc'd character match) in the GNU C Library version 2.7 to version 2.43 with a format width specifier with an explicit width greater than 1024 could result in a one byte heap buffer overflow.
Title scanf %mc off-by-one heap buffer overflow
Weaknesses CWE-122
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
glibc
Published
Updated
Oct 15, 2026, 1:12 AM
Reserved
Apr 2, 2026, 9:47 PM
Status
Modified
Published
Apr 20, 2026, 9:16 PM
Modified
Nov 11, 2026, 11:10 PM
Severity
Moderate
Public date
Apr 20, 2026, 8:55 PM