Integer Overflow or Wraparound Affecting qt/qtdeclarative package, versions [,6.4.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.53% (67th 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 Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-QTQTDECLARATIVE-3261239
  • published1 Feb 2023
  • disclosed1 Feb 2023
  • creditEmma Reuter, Theo Morales (Cisco ASIG)

Introduced: 1 Feb 2023

CVE-2022-40983  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade qt/qtdeclarative to version 6.4.1 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound when a negative or very large value is passed to the Reflect.apply() function as QML input. This could result in a crash or memory corruption, if user input is processed unchecked.

PoC

const v1 = []; const v3 = []; v3.length = 3900000000; Reflect.apply(v1.reverse,v1,v3);

CVSS Base Scores

version 3.1