Integer Overflow to Buffer Overflow Affecting libcurl package, versions [7.76.0,8.12.1)


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.28% (52nd 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-CONAN-LIBCURL-10076484
  • published8 May 2025
  • disclosed5 Feb 2025
  • creditz2_

Introduced: 5 Feb 2025

CVE-2025-0725  (opens in a new tab)
CWE-680  (opens in a new tab)

How to fix?

Upgrade libcurl to version 8.12.1 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow to Buffer Overflow in the gzip_do_write() function in content_encoding.c. If the CURLOPT_ACCEPT_ENCODING option is in use, enabling Content-Encoding: gzip, and the runtime version of zlib is older than 1.2.0.4 (released in 2003), this could allow code execution on the vulnerable server.

Although the attacker-controlled overflow allows for code execution, the realistic exploitability of this vulnerability is extremely limited by its reliance on the presence of a very outdated compression library. The project maintainers have therefore assessed Low severity for the issue despite its relatively high CVSS score. The vulnerability can be eliminated by upgrading or patching, but it is very likely that the only action needed is confirming that the zlib version in use is more recent than those that trigger the vulnerable code path.

CVSS Base Scores

version 4.0
version 3.1