Use cfpm to Reduce Attack Surface and Footprint
Install only what you need, nothing you don't
The ColdFusion Package Manager (cfpm) was introduced in ColdFusion (2021 release) for modular installation and management of features. Install only what your application needs to minimize security risk and resource usage.
What is cfpm?
cfpm is a command-line tool for managing ColdFusion packages that allows you to:
- Install only the specific features your application needs instead of a monolithic installation
- Update individual packages independently of the core platform
- Remove unused features to reduce your application's attack surface
Common Commands
List Packages
# List all installed packages
cfpm list
# List all available packages
cfpm listall
# Show details for one package
cfpm info pdfInstall Packages
# Install single package
cfpm install pdf
# Install multiple packages (comma-separated)
cfpm install pdf,spreadsheet,chart
# Install a specific version (PACKAGENAME:VERSION)
cfpm install pdf:<version>
# Find and install the packages your code base uses
cfpm scanandinstall /path/to/appUpdate Packages
# Update all packages including core
cfpm update ALL
# Update installed packages only
cfpm update packagesRemove Packages
# Uninstall unused package
cfpm uninstall chart
# Uninstall multiple packages (dependencies are not removed)
cfpm uninstall chart,presentationCommon Packages
Here are some of the packages you may need depending on your application requirements. Run cfpm listall for the exact package names available on your server:
- pdf: PDF generation and manipulation
- spreadsheet: Spreadsheet functions
- awss3: Amazon S3 integration
- cfmongodb: MongoDB NoSQL support
- azureblob: Azure Blob storage integration
- chart: Charting
- debugger: Remote debugging tools (listed among the packages updated in ColdFusion 2025 updates; see Adobe: ColdFusion 2025 Update 12)
Security Best Practices
- Minimal Installation: Only install the packages your application actually requires
- Regular Updates: Run
cfpm update ALLafter applying core ColdFusion updates - Remove Unused: Promptly uninstall packages that are no longer needed by your application
- Audit Dependencies: Review your installed packages quarterly to ensure they're still necessary
- Document Requirements: Maintain documentation of which packages each application depends on
Update Policy
After every ColdFusion core update, you should check for and apply package updates using this process:
- Apply the ColdFusion core update or hotfix
- Run
cfpm listto review the installed packages - Run
cfpm update ALLto apply all available package updates - Thoroughly validate your application functionality to ensure everything works correctly
Container and CI/CD Integration
In deployment scripts, run cfpm non-interactively from cfusion/bin. In Adobe's official Docker image, list packages in the installModules environment variable and the container installs them at startup:
# Dockerfile example
FROM adobecoldfusion/coldfusion2025:2025.0.14
# Packages are installed by the image's startup script
ENV acceptEULA=YES
ENV installModules=pdf,spreadsheet
# Application code
COPY ./app /appcfpm Checklist
- Only required packages installed
- Unused packages removed
- All packages updated to latest
- Package list documented
- Update policy defined
- cfpm integrated into deployment scripts
Gotchas
- Core server updates: update ALL also applies the server hotfix; use update packages to update only installed packages
- Package dependencies: Installing a package installs its dependencies automatically
- Incomplete removal: Uninstalling a package does not uninstall its dependent packages; remove those manually
- Internet access required: cfpm downloads from Adobe's package site; set proxy details in Package Manager > Settings, or host a local copy made with downloadrepo
- Version compatibility: Each package version has a minimum core server version
References
Need Help?
Convective can help plan and implement modular ColdFusion deployments with cfpm.
Find out more