J-Security Center

Title: abctab2ps Trim_Title Function ABC File Remote Buffer Overflow Vulnerability

Severity: HIGH

Description:

abctab2ps is a music and tablature typesetting program. It converts ABC format files to postscript.

abctab2ps is reported prone to a remote buffer overflow vulnerability. This issue arises because the application fails to carry out proper boundary checks before copying user-supplied data in to sensitive process buffers. It is reported that this issue can allow an attacker to gain unauthorized access to a computer in the context of the application.

The vulnerability exists in the 'trim_title()' function of 'parse.cpp' file. This function copies user-supplied data from an ABC file processed by the application to finite-sized buffers of 301 and 81 bytes. Due to the lack of restrictions on the size of a user-supplied string, the 'str[]' and 'rest' arrays can be overflowed.

An attacker can exploit this issue by crafting a malicious ABC file that contains excessive string data, replacement memory addresses, and executable instructions to trigger this issue.

If a user obtains this file and processes it through the application, the attacker-supplied instructions may be executed on the vulnerable computer. It is reported that successful exploitation may result in a compromise in the context of the application.

abctab2ps version 1.6.3 is reported prone to this vulnerability. It is likely that other versions are affected as well.

Affected Products:

  • abctab2ps abctab2ps 1.6.3

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.