Arbitrary Argument Injection The advisory has been revoked - it doesn't affect any version of package amazon-cloudwatch-agent  (opens in a new tab)


Threat Intelligence

EPSS
0.53% (41st 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-AMZN2-AMAZONCLOUDWATCHAGENT-15324231
  • published20 Feb 2026
  • disclosed28 Jan 2026

Introduced: 28 Jan 2026

CVE-2025-61731  (opens in a new tab)
CWE-88  (opens in a new tab)

Amendment

The Amazon-Linux security team deemed this advisory irrelevant for Amazon-Linux:2.

NVD Description

Note: Versions mentioned in the description apply only to the upstream amazon-cloudwatch-agent package and not the amazon-cloudwatch-agent package as distributed by Amazon-Linux.

Building a malicious file with cmd/go can cause can cause a write to an attacker-controlled file with partial control of the file content. The "#cgo pkg-config:" directive in a Go source file provides command-line arguments to provide to the Go pkg-config command. An attacker can provide a "--log-file" argument to this directive, causing pkg-config to write to an attacker-controlled location.

References