Skip to content

v10.0.1

Latest

Choose a tag to compare

@orangewolf orangewolf released this 09 Nov 18:38
· 30 commits to main since this release

Security fix

This release addresses vulnerabilities in Bulkrax’s CSV and BagIt cloud-file import handling. An attacker able to submit cloud-file selections to an importer could supply crafted filenames or source URLs to write files outside the importer’s workspace, access local files outside the configured filesystem-provider directory, or make requests to internal network services. Depending on application permissions and deployment configuration, arbitrary file writes could lead to remote code execution.

The vulnerable code is present in Bulkrax 1.0.0 through 10.0.0. Actual exposure depends on access to the import functionality and the application’s configuration.

What changed

  • Added filename and destination validation, including path-traversal and escaping-symlink checks.
  • Restricted filesystem sources to the configured provider root and added connection-time protections against server-side request forgery.
  • Disabled remote-download redirects and prevented caller-supplied Host headers from overriding the intended destination.
  • Added cloud-selection validation before importer persistence and deferred asynchronous download dispatch until required saves succeed.
  • Preserved streamed downloads, with temporary-file cleanup and atomic publication of completed files.

Upgrade guidance

Upgrade to the patched release for your supported release line and restart application and background-worker processes. Review your application’s gem constraints before running:

bundle update bulkrax

This security patch introduces no database migrations.

Compatibility notes

Cloud-provider URLs that depend on HTTP redirects are now rejected. Filesystem-provider imports must resolve within the configured provider root.

Applications that invoke Bulkrax::DownloadCloudFileJob directly must provide the importer_id: and relative_filename: keywords. Calls without this destination context now fail safely; the legacy positional target path is not trusted.

Temporary mitigation

If an immediate upgrade is not possible, disable access to cloud-file imports, including direct requests submitting cloud selections—not only the file-picker interface. Configuring Browse Everything with only the filesystem provider is not sufficient mitigation.

Advisory: GHSA-wh5f-2g46-6cj2

Full Changelog: v10.0.0...v10.0.1