CVE-2025-58186 Affecting oci-add-hooks package, versions <0:0-0.1.20200504git268e3bb.amzn2023.0.6


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.06% (18th 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-AMZN2023-OCIADDHOOKS-13880712
  • published11 Nov 2025
  • disclosed29 Oct 2025

Introduced: 29 Oct 2025

NewCVE-2025-58186  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 oci-add-hooks to version 0:0-0.1.20200504git268e3bb.amzn2023.0.6 or higher.
This issue was patched in ALAS2023-2025-1273.

NVD Description

Note: Versions mentioned in the description apply only to the upstream oci-add-hooks package and not the oci-add-hooks package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

Despite HTTP headers having a default limit of 1MB, the number of cookies that can be parsed does not have a limit. By sending a lot of very small cookies such as "a=;", an attacker can make an HTTP server allocate a large amount of structs, causing large memory consumption.

CVSS Base Scores

version 3.1