Out-of-bounds Write Affecting curl package, versions <0:7.29.0-51.0.1.el7


Severity

Recommended
high

Based on Oracle Linux security rating.

Threat Intelligence

EPSS
1.29% (87th 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-ORACLE7-CURL-2545071
  • published10 Apr 2022
  • disclosed31 Jul 2018

Introduced: 31 Jul 2018

CVE-2016-8622  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Oracle:7 curl to version 0:7.29.0-51.0.1.el7 or higher.
This issue was patched in ELSA-2019-4652.

NVD Description

Note: Versions mentioned in the description apply only to the upstream curl package and not the curl package as distributed by Oracle. See How to fix? for Oracle:7 relevant fixed versions and status.

The URL percent-encoding decode function in libcurl before 7.51.0 is called curl_easy_unescape. Internally, even if this function would be made to allocate a unscape destination buffer larger than 2GB, it would return that new length in a signed 32 bit integer variable, thus the length would get either just truncated or both truncated and turned negative. That could then lead to libcurl writing outside of its heap based buffer.