CVE-2013-4259: Vulnerability in Ansible

ansible Updated 02 Oct 2025

Summary

16/09/2013
Yes i
Low
4.0

CVE-2013-4259: runner/connection_plugins/ssh.py in Ansible before 1.2.3, when using ControlPersist, allows local users to redirect a ssh session via a symlink attack on a socket file with a predictable name in /tmp/. Affects ansible versions < 1.2.3. Fixed in 1.2.3. How to fix ↓

Also tracked for

The same CVE-2013-4259 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Ansible is an open-source automation tool that allows users to automate tasks such as configuration management, application deployment, and orchestration. It is widely used in IT infrastructure management and provides a simple and agentless approach to automate complex tasks. However, a vulnerability has been identified in Ansible versions prior to 1.2.3.

Vulnerability Detail

The vulnerability (CVE-2013-4259) exists in the 'runner/connection_plugins/ssh.py' file of Ansible. When using ControlPersist, local users can exploit a symlink attack on a socket file with a predictable name in the '/tmp/' directory. This allows the attacker to redirect an SSH session and potentially gain unauthorized access or perform malicious actions on the target system.

How To Fix

Latest published version: 14.5.0 as of 22 Oct 2026

pip install --upgrade "ansible==14.5.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.2.3

This is the first release that contains the fix.

pip install --upgrade "ansible==1.2.3"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, users can mitigate the risk by ensuring that the '/tmp/' directory is properly secured and restricting access to sensitive files and directories.

Conclusion

The vulnerability in Ansible (CVE-2013-4259) allows local users to redirect SSH sessions and potentially gain unauthorized access or perform malicious actions. It is crucial to upgrade Ansible to version 1.2.3 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for ansible →

Share this vulnerability

FAQ

Ansible is an open-source automation tool used for configuration management, application deployment, and orchestration.

The vulnerability allows local users to redirect SSH sessions and potentially gain unauthorized access or perform malicious actions on the target system.

Versions of Ansible prior to 1.2.3 are affected by this vulnerability.

Yes, upgrading Ansible to version 1.2.3 or later fixes this vulnerability.

While there is no specific workaround mentioned, securing the '/tmp/' directory and restricting access to sensitive files can help mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for ansible.

How To Fix

Latest published version: 14.5.0 as of 22 Oct 2026

pip install --upgrade "ansible==14.5.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.2.3

This is the first release that contains the fix.

pip install --upgrade "ansible==1.2.3"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback