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 cfpm Packages
# List all installed packages
cfpm list

# List all available packages
cfpm listall

# Show details for one package
cfpm info pdf

Install Packages

Install cfpm 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/app

Update Packages

Update cfpm Packages
# Update all packages including core
cfpm update ALL

# Update installed packages only
cfpm update packages

Remove Packages

Remove cfpm Packages
# Uninstall unused package
cfpm uninstall chart

# Uninstall multiple packages (dependencies are not removed)
cfpm uninstall chart,presentation

Common 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 ALL after 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:

  1. Apply the ColdFusion core update or hotfix
  2. Run cfpm list to review the installed packages
  3. Run cfpm update ALL to apply all available package updates
  4. Thoroughly validate your application functionality to ensure everything works correctly
Important: Package updates may be required after core hotfixes. Always check after applying updates.

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:

cfpm in Docker Container
# 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 /app

cfpm 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

Need Help?

Convective can help plan and implement modular ColdFusion deployments with cfpm.

Find out more
ColdFusion Package Manager (cfpm) - Modular Installation and Updates Guide | CFGuide