| Version | Supported |
|---|---|
| 1.x.x | ✅ |
We take security seriously. If you discover a security vulnerability in RustyZip, please report it responsibly.
- Do not open a public GitHub issue for security vulnerabilities
- Email the maintainers directly or use GitHub's private vulnerability reporting feature
- Include as much detail as possible:
- Description of the vulnerability
- Steps to reproduce
- Potential impact
- Suggested fix (if any)
- Acknowledgment: We will acknowledge receipt of your report within 48 hours
- Updates: We will provide updates on our progress within 7 days
- Resolution: We aim to resolve critical vulnerabilities within 30 days
- Credit: We will credit reporters in our release notes (unless you prefer to remain anonymous)
RustyZip includes several built-in security protections:
- Size limit: Default 2 GB maximum decompressed size
- Ratio limit: Default 500:1 maximum compression ratio
- Both limits are configurable via the
SecurityPolicyAPI
- All paths are validated to prevent directory traversal attacks
- Paths containing
..or absolute paths outside the target directory are rejected - This protection is always enabled and cannot be disabled
- Symlink extraction is blocked by default
- Can be explicitly enabled via
allow_symlinksparameter when needed
- Passwords are wrapped in a
Passwordtype that implementsZeroize - Passwords are securely erased from memory when no longer needed
- AES-256: Strong encryption (recommended, requires 7-Zip/WinRAR to open)
- ZipCrypto: Legacy encryption for compatibility (weaker security)
- None: No encryption
When using RustyZip in your applications:
- Use AES-256 encryption for sensitive data
- Use strong passwords when encrypting archives
- Keep default security limits unless you have a specific need to change them
- Validate input paths before compression
- Keep RustyZip updated to get the latest security patches
This project has not undergone a formal security audit. If you're using RustyZip in a security-critical application, consider conducting your own security review.