Uncaught Exception Affecting boa_engine package, versions >=0.16.0 <0.19.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th 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 Uncaught Exception vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-BOAENGINE-7687587
  • published15 Aug 2024
  • disclosed14 Aug 2024
  • creditarai-a

Introduced: 14 Aug 2024

CVE-2024-43367  (opens in a new tab)
CWE-248  (opens in a new tab)

How to fix?

Upgrade boa_engine to version 0.19.0 or higher.

Overview

Affected versions of this package are vulnerable to Uncaught Exception due to the handling of AsyncGenerator operations. This allows an attacker to trigger a state transition from a getter method for the then property, which causes the engine to fail an assertion of the assumption.

Workaround

Users who are unable to upgrade to the fixed version can use std::panic::catch_unwind to make sure exceptions caused by the engine won't impact the availability of the main application.

References

CVSS Scores

version 4.0
version 3.1