CWE
22
Advisory Published
Updated

REDHAT-BUG-2249901: Path Traversal

First published: Wed Nov 15 2023(Updated: )

Summary: CPIO found to be vulnerable to Path Traversal vulnerability that can be leveraged to achieve full Remote Command Execution on the target. Details: While handling CPIO archives, the CPIO follows symlink, cpio by default will follow stored symlinks while extracting and the Archiver will not check the symlink location, which leads to arbitrary file writes to unintended locations. When the victim extracts the archive, the attacker can craft a malicious cpio archive to achieve RCE on the target system. PoC ( Steps to reproduce ) : Complete instructions to craft a cpio archive to demonstrate the vulnerability. ``` mkdir testcpio ln -sf /tmp/ testcpio/tmp echo "TEST Traversal" > testcpio/tmpYtrav.txt cd testcpio/ ls | cpio -ov > ../trav.cpio cd ../ sed -i s/"tmpY"/"tmp\/"/g trav.cpio ``` Extract the malicious archive: cpio -i < trav.cpio Impact: An attacker can craft malicious cpio archives that exploit the vulnerability to write files on locations such as ~/.ssh, ~/.bashrc, ~/.config/autostart/ etc., to achieve full remote command execution on the target/victim system. Software that uses CPIO as a component might be vulnerable. Credit: Febin Mon Saji

Affected SoftwareAffected VersionHow to fix
GNU Cpio

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-2249901?

    The severity of REDHAT-BUG-2249901 is critical due to its potential for remote command execution.

  • How do I fix REDHAT-BUG-2249901?

    To fix REDHAT-BUG-2249901, it is recommended to update to a patched version of GNU CPIO.

  • What are the potential risks associated with REDHAT-BUG-2249901?

    The potential risks associated with REDHAT-BUG-2249901 include unauthorized remote command execution on the affected system.

  • Which software is affected by REDHAT-BUG-2249901?

    REDHAT-BUG-2249901 specifically affects GNU CPIO.

  • What is the nature of the vulnerability in REDHAT-BUG-2249901?

    The nature of the vulnerability in REDHAT-BUG-2249901 is a Path Traversal vulnerability that allows following symlinks during extraction.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203