CVE-2022-42920 Apache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds writing
CriticalCVSS 9.8
EPSS 3.5%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
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.
Upgrade path
11 packages: 10 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Apache Commons BCEL | >= Apache Commons BCEL, < 6.6.0 | 6.6.0 | Fixed |
| apache commons bcel | < 6.6.0 | 6.6.0 | Fixed |
| debian/bcel(Debian 12) | < 6.5.0-2 | 6.5.0-2 | Fixed |
| debian/bcel(Debian 13) | < 6.5.0-2 | 6.5.0-2 | Fixed |
| debian/bcel(Debian 14) | < 6.5.0-2 | 6.5.0-2 | Fixed |
| org.apache.bcel/bcel(Maven) | < 6.6.0; = 5.2; = 6.0; = 6.1 +6 more | 6.6.0 | Fixed |
| ubuntu/bcel(Ubuntu 22.04) | < 6.5.0-1ubuntu0.1; = 6.5.0-1 | 6.5.0-1ubuntu0.1 | Fixed |
| ubuntu/bcel(Ubuntu Pro 16.04) | < 6.0~rc3-2ubuntu1+esm1; = 6.0~rc3-1ubuntu1; = 6.0~rc3-2ubuntu1 | 6.0~rc3-2ubuntu1+esm1 | Fixed |
| ubuntu/bcel(Ubuntu Pro 18.04) | < 6.2-1ubuntu0.1~esm1; = 6.0-1; = 6.1-1; = 6.2-1 | 6.2-1ubuntu0.1~esm1 | Fixed |
| ubuntu/bcel(Ubuntu Pro 20.04) | < 6.4.1-1ubuntu0.1~esm1; = 6.3-1; = 6.4.1-1 | 6.4.1-1ubuntu0.1~esm1 | Fixed |
| fedoraproject fedora | = 35; = 36; = 37 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.apache.bcel/bcel(Maven) | < 6.6.0 | 6.6.0 |
| org.apache.bcel/bcel(Maven) | = 5.2 | No fix listed |
| org.apache.bcel/bcel(Maven) | = 6.0 | No fix listed |
| org.apache.bcel/bcel(Maven) | = 6.1 | No fix listed |
| org.apache.bcel/bcel(Maven) | = 6.2 | No fix listed |
| org.apache.bcel/bcel(Maven) | = 6.3 | No fix listed |
| org.apache.bcel/bcel(Maven) | = 6.3.1 | No fix listed |
| org.apache.bcel/bcel(Maven) | = 6.4.0 | No fix listed |
| org.apache.bcel/bcel(Maven) | = 6.4.1 | No fix listed |
| org.apache.bcel/bcel(Maven) | = 6.5.0 | No fix listed |
| Apache Commons BCEL | >= Apache Commons BCEL, < 6.6.0 | 6.6.0 |
| ubuntu/bcel(Ubuntu:22.04) | < 6.5.0-1ubuntu0.1 | 6.5.0-1ubuntu0.1 |
| apache commons bcel | < 6.6.0 | 6.6.0 |
| fedoraproject fedora | = 35 | No fix listed |
| fedoraproject fedora | = 36 | No fix listed |
| fedoraproject fedora | = 37 | No fix listed |
| debian/bcel(Debian:12) | < 6.5.0-2 | 6.5.0-2 |
| debian/bcel(Debian:13) | < 6.5.0-2 | 6.5.0-2 |
| debian/bcel(Debian:14) | < 6.5.0-2 | 6.5.0-2 |
| ubuntu/bcel(Ubuntu:Pro:16.04) | < 6.0~rc3-2ubuntu1+esm1 | 6.0~rc3-2ubuntu1+esm1 |
| ubuntu/bcel(Ubuntu:Pro:16.04) | = 6.0~rc3-1ubuntu1 | No fix listed |
| ubuntu/bcel(Ubuntu:Pro:16.04) | = 6.0~rc3-2ubuntu1 | No fix listed |
| ubuntu/bcel(Ubuntu:Pro:18.04) | < 6.2-1ubuntu0.1~esm1 | 6.2-1ubuntu0.1~esm1 |
| ubuntu/bcel(Ubuntu:Pro:18.04) | = 6.0-1 | No fix listed |
| ubuntu/bcel(Ubuntu:Pro:18.04) | = 6.1-1 | No fix listed |
Show 5 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/bcel(Ubuntu:Pro:18.04) | = 6.2-1 | No fix listed |
| ubuntu/bcel(Ubuntu:Pro:20.04) | < 6.4.1-1ubuntu0.1~esm1 | 6.4.1-1ubuntu0.1~esm1 |
| ubuntu/bcel(Ubuntu:Pro:20.04) | = 6.3-1 | No fix listed |
| ubuntu/bcel(Ubuntu:Pro:20.04) | = 6.4.1-1 | No fix listed |
| ubuntu/bcel(Ubuntu:22.04) | = 6.5.0-1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch
- github.com product
- issues.apache.org
- lists.apache.org issue-tracking mailing-list vendor-advisory
- FEDORA-2022-01a56f581c vendor-advisory
- FEDORA-2022-f60a52e054 vendor-advisory
- FEDORA-2022-0e358addb8 vendor-advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- GLSA-202401-25 vendor-advisory
- [oss-security] 20221107 Re: CVE-2022-42920: Apache Commons BCEL prior to 6.6.0 allows producing arbitrary bytecode via out-of-bounds writing mailing-list third-party-advisory
- github.com
- Debian Security Tracker CVE-2022-42920 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-7208-1 vendor-advisory
- www.cve.org issue-tracking
- www.openwall.com issue-tracking
- www.openwall.com issue-tracking
- github.com issue-tracking