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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.34% (72nd 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 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);

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
6.6 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    High
Expand this section

NVD

8.8 high