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


0.0
medium

Snyk CVSS

    Attack Complexity Low
    Availability High

    Threat Intelligence

    EPSS 0.25% (66th percentile)
Expand this section
NVD
8.8 high

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 ID SNYK-UNMANAGED-QTQTDECLARATIVE-3261239
  • published 1 Feb 2023
  • disclosed 1 Feb 2023
  • credit Emma Reuter, Theo Morales (Cisco ASIG)

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);