portage-ng / portage / dev-libs / chmlib / 0.40-r2
portage-ng glsa
2 advisories reference dev-libs/chmlib · none place version 0.40-r2 in a vulnerable range
▸ GLSA 200702-12 CHMlib: User-assisted remote execution of arbitrary code this version unaffected normal remote 2007-02-27

A memory corruption vulnerability in CHMlib could lead to the remote execution of arbitrary code.

Announced
2007-02-27
Revised
2008-05-20 (revision 2)
Access
remote
Bugs
#163989
Advisory
https://security.gentoo.org/glsa/200702-12

Affected packages

PackageArchVulnerableUnaffected
dev-libs/chmlib*< 0.39>= 0.39

Background

CHMlib is a library for the MS CHM (Compressed HTML) file format plus extracting and HTTP server utils.

Description

When certain CHM files that contain tables and objects stored in pages are parsed by CHMlib, an unsanitized value is passed to the alloca() function resulting in a shift of the stack pointer to arbitrary memory locations.

Impact

An attacker could entice a user to open a specially crafted CHM file, resulting in the execution of arbitrary code with the permissions of the user viewing the file.

Workaround

There is no known workaround at this time.

Resolution

All CHMlib users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-libs/chmlib-0.39"

References

▸ GLSA 200511-23 chmlib, KchmViewer: Stack-based buffer overflow this version unaffected normal remote 2005-11-28

chmlib and KchmViewer contain a buffer overflow vulnerability which may lead to the execution of arbitrary code.

Announced
2005-11-28
Revised
2009-05-28 (revision 3)
Access
remote
Bugs
#110557
Advisory
https://security.gentoo.org/glsa/200511-23

Affected packages

PackageArchVulnerableUnaffected
app-text/kchmviewer*< 1.1>= 1.1
dev-libs/chmlib*< 0.37.4>= 0.37.4

Background

chmlib is a library for dealing with Microsoft ITSS and CHM format files. KchmViewer is a CHM viewer that includes its own copy of the chmlib library.

Description

Sven Tantau reported about a buffer overflow vulnerability in chmlib. The function "_chm_decompress_block()" does not properly perform boundary checking, resulting in a stack-based buffer overflow.

Impact

By convincing a user to open a specially crafted ITSS or CHM file, using KchmViewer or a program makes use of chmlib, a remote attacker could execute arbitrary code with the privileges of the user running the software.

Workaround

There is no known workaround at this time.

Resolution

All chmlib users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-libs/chmlib-0.37.4"

All KchmViewer users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-text/kchmviewer-1.1"

References