Skip to content

extract_signed_shortcut can be raced to overflow a heap buffer

High
0xilis published GHSA-x4q8-vv6v-g998 May 7, 2024

Package

libshortcutsign (misc)

Affected versions

4acc70eece6a07937a3e94978f8f4412763c59c5

Patched versions

140ae721b90f65d21258e7042189ecbcded390f8

Description

Impact

extract_signed_shortcut has a race condition which may lead to a heap buffer overflow. This is as a file can be modified to be larger after binary_size is saved but before the bytes finish copying. This may result in the contents of the file being written past the buffer.

Patches

The issue has been patched in a recent commit on May 7 2024 EST. It can be viewed here: 140ae72

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

CVE ID

No known CVE

Weaknesses

Credits