Critical, CVSS 9.8MavenPublished
Apache Commons BCEL vulnerable to out-of-bounds write
CVE-2022-42920 · GHSA-97xg-phpr-rg8q
- Affected
- Maven org.apache.bcel:bcel < 6.6.0
- Fixed in
- 6.6.0· Vendor fix available
- Issue
- 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.
Recommended action: Upgrade to 6.6.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.