CVE-2022-42920
CRITICAL9.8EPSS 3.8%Apache Commons BCEL vulnerable to out-of-bounds write
Published: 11/7/2022Modified: 4/28/2026
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.
Affected packages (2)
- Debian/bcelfrom 0, < 6.5.0-1+deb11u1
- Maven/org.apache.bcel:bcelfrom 0, < 6.6.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (14)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-42920
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-42920
- PATCHhttps://github.com/apache/commons-bcel
- WEBhttps://github.com/apache/commons-bcel/pull/147
- WEBhttps://issues.apache.org/jira/browse/BCEL-363
- WEBhttps://lists.apache.org/thread/lfxk7q8qmnh5bt9jm6nmjlv5hsxjhrz4
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LX3HEB4TV2BVCGDTK5BCLSYOZNQTOBN4
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QAMRHAKGIKZNHRBB4VLYTOIOIMMXCUCD
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QMVX6COVXZVS5GPWDODIRW6Z2GE7RPAQ
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/LX3HEB4TV2BVCGDTK5BCLSYOZNQTOBN4
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/QAMRHAKGIKZNHRBB4VLYTOIOIMMXCUCD
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/QMVX6COVXZVS5GPWDODIRW6Z2GE7RPAQ
- WEBhttps://security.gentoo.org/glsa/202401-25
- WEBhttp://www.openwall.com/lists/oss-security/2022/11/07/2