Arbitrary Code Injection Affecting pam_ssh_agent_auth package, versions <0:0.10.3-2.22.80.amzn1


Severity

Recommended
high

Based on Amazon Linux security rating

    Threat Intelligence

    EPSS
    4.7% (93rd 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 ID SNYK-AMZN201803-PAMSSHAGENTAUTH-5849597
  • published 23 Aug 2023
  • disclosed 20 Jul 2023

How to fix?

Upgrade Amazon-Linux:2018.03 pam_ssh_agent_auth to version 0:0.10.3-2.22.80.amzn1 or higher.
This issue was patched in ALAS-2023-1802.

NVD Description

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

The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remote code execution if an agent is forwarded to an attacker-controlled system. (Code in /usr/lib is not necessarily safe for loading into ssh-agent.) NOTE: this issue exists because of an incomplete fix for CVE-2016-10009.

References

CVSS Scores

version 3.1
Expand this section

NVD

9.8 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High
Expand this section

Red Hat

9.8 critical
Expand this section

SUSE

7.5 high