CVE-2022-42920

NameCVE-2022-42920
DescriptionApache 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
bcel (PTS)buster6.2-1vulnerable
buster (security)6.2-1+deb10u1fixed
bullseye6.5.0-1vulnerable
bullseye (security)6.5.0-1+deb11u1fixed
bookworm, sid6.5.0-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
bcelsourcebuster6.2-1+deb10u1
bcelsourcebullseye6.5.0-1+deb11u1
bcelsource(unstable)6.5.0-2

Notes

https://www.openwall.com/lists/oss-security/2022/11/04/6
https://www.openwall.com/lists/oss-security/2022/11/04/8
https://github.com/apache/commons-bcel/pull/147
https://github.com/apache/commons-bcel/commit/f3267cbcc900f80851d561bdd16b239d936947f5
Duplicate of CVE-2022-34169. But CVE-2022-34169 was assigned for Apache Xalan Java XSLT library,
whereeas CVE-2022-42920 is associated with bcel itself.
check with the assigning CNAs which one to retain if confirmed to be handled as duplicate and move CVE-2022-34169 to Apache Xalan Java XSLT use of BCEL only.

Search for package or bug name: Reporting problems