OS Command Injection Affecting perl-HTTP-Daemon package, versions <0:6.16-1.amzn2023.0.1


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
1.06% (61st 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-PERLHTTPDAEMON-17290998
  • published10 Jun 2026
  • disclosed27 May 2026

Introduced: 27 May 2026

NewCVE-2026-8450  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 perl-HTTP-Daemon to version 0:6.16-1.amzn2023.0.1 or higher.
This issue was patched in ALAS2023-2026-1794.

NVD Description

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

HTTP::Daemon versions before 6.17 for Perl allow OS command injection via send_file().

send_file() opens its string argument with Perl's 2-arg open(). The 2-arg form interprets magic prefixes: '| cmd' and 'cmd |' open a pipe to a subprocess, '> path' and '>> path' open the path for write or append.

Untrusted input passed to send_file() can run OS commands at the daemon process UID. The read-pipe form ('cmd |') also leaks subprocess stdout into the HTTP response body. The write-mode forms can create or truncate files at attacker chosen paths.

CVSS Base Scores

version 3.1