Out-of-bounds Write Affecting bcel package, versions <0:6.5.0-3.amzn2023.0.2


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
3.5% (90th 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 IDSNYK-AMZN2023-BCEL-3350402
  • published7 Mar 2023
  • disclosed7 Nov 2022

Introduced: 7 Nov 2022

CVE-2022-42920  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 bcel to version 0:6.5.0-3.amzn2023.0.2 or higher.
This issue was patched in ALAS2023-2023-105.

NVD Description

Note: Versions mentioned in the description apply only to the upstream bcel package and not the bcel package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

Apache Commons BCEL has a number of APIs that would normally only allow changing specific class characteristics. However, due to an out-of-bounds writing issue, these APIs can be used to produce arbitrary bytecode. This could be abused in applications that pass attacker-controllable data to those APIs, giving the attacker more control over the resulting bytecode than otherwise expected. Update to Apache Commons BCEL 6.6.0.

CVSS Base Scores

version 3.1