Out-of-bounds Read Affecting libdwarf package, versions [,0.3.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.82% (53rd 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 Learn

Learn about Out-of-bounds Read vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-LIBDWARF-9673748
  • published16 Apr 2023
  • disclosed16 Apr 2023
  • creditCasper Sun

Introduced: 16 Apr 2023

CVE-2020-27545  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade libdwarf to version 0.3.4 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read. A carefully crafted object with an invalid line table could cause libdwarf to dereference a pointer reading a single byte outside of the intended .debug_line section and potentially outside of memory visible to the library. A segmentation fault is possible. The code testing for the error was coded incorrectly so an invalid dereference could occur.

CVSS Base Scores

version 3.1