Use After Free Affecting z3 package, versions [,4.9.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.39% (60th 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 After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-Z3-10078567
  • published8 May 2025
  • disclosed22 Aug 2023
  • credit5hadowblad3

Introduced: 22 Aug 2023

CVE-2020-19725  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade z3 to version 4.9.1 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free when processing files in pdd_simplifier.cpp. An attacker can cause segmentation faults or execute arbitrary code by triggering unexpected memory access. This occurs as the solver is trying to simplify the constraints, which leads to a use-after-free vulnerability.

CVSS Base Scores

version 3.1