Buffer Overflow Affecting Matthias-Wandel/jhead package, versions [,3.08)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.09% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-MATTHIASWANDELJHEAD-5707466
  • published14 Jun 2023
  • disclosed14 Jun 2023
  • creditMarsman1996

Introduced: 14 Jun 2023

CVE-2022-28550  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade Matthias-Wandel/jhead to version 3.08 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overflow. Matthias-Wandel/jhead jhead 3.06 is vulnerable to Buffer Overflow via shellescape(), jhead.c, jhead. jhead copies strings to a stack buffer when it detects a &i or &o. However, jhead does not check the boundary of the stack buffer. As a result, there will be a stack buffer overflow problem when multiple &i or &o are given.

CVSS Base Scores

version 3.1