Use of Externally-Controlled Format String Affecting fmtlib/fmt package, versions [,4.1.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.35% (69th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use of Externally-Controlled Format String vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-FMTLIBFMT-2366088
  • published26 Jan 2022
  • disclosed9 Feb 2018
  • creditUnknown

Introduced: 9 Feb 2018

CVE-2018-1000052  (opens in a new tab)
CWE-134  (opens in a new tab)

How to fix?

Upgrade fmtlib/fmt to version 4.1.0 or higher.

Overview

Affected versions of this package are vulnerable to Use of Externally-Controlled Format String fmtlib version prior to version 4.1.0 (before commit 0555cea5fc0bf890afe0071a558e44625a34ba85) contains a Memory corruption (SIGSEGV), CWE-134 vulnerability in fmt::print() library function that can result in Denial of Service. This attack appear to be exploitable via Specifying an invalid format specifier in the fmt::print() function results in a SIGSEGV (memory corruption, invalid write). This vulnerability appears to have been fixed in after commit 8cf30aa2be256eba07bb1cefb998c52326e846e7.

CVSS Base Scores

version 3.1