Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security] Bump mini_magick from 1.3.2 to 4.9.4 #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link

Bumps mini_magick from 1.3.2 to 4.9.4. This update includes security fixes.

Vulnerabilities fixed

Sourced from The Ruby Advisory Database.

MiniMagick Gem for Ruby URI Handling Arbitrary Command Injection MiniMagick Gem for Ruby contains a flaw that is triggered during the handling of specially crafted input from an untrusted source passed via a URL that contains a ';' character. This may allow a context-dependent attacker to potentially execute arbitrary commands.

Patched versions: >= 3.6.0 Unaffected versions: none

Sourced from The Ruby Advisory Database.

Remote command execution via filename A remote shell execution vulnerability when using MiniMagick::Image.open with URL coming from unsanitized user input. e.g. MiniMagick::Image.open("| touch.txt")

Patched versions: >= 4.9.4 Unaffected versions: none

Sourced from The GitHub Security Advisory Database.

High severity vulnerability that affects mini_magick lib/mini_magick.rb in the MiniMagick Gem 1.3.1 for Ruby allows remote attackers to execute arbitrary commands via shell metacharacters in a URL.

Affected versions: < 3.6.0

Release notes

Sourced from mini_magick's releases.

v4.9.4

  • Fixed a remote shell execution vulnerability when using MiniMagick::Image.open with URL coming from unsanitized user input (thanks to @rootxharsh)
  • Fixed some Ruby warnings (thanks to @koic)

v4.9.3

  • make MiniMagick::Tool not respond to everything

v4.9.2

  • Fix breakage for MRI 2.3 and below

v4.9.1

  • Properly handle EXIF parsing with ImageMagick 7
  • Show an informative exception message on Timeout::Error
  • Wait for the MiniMagick command to terminate after sending SIGTERM with open3

v4.9.0

New features

  • Support ImageMagick 7

    • MiniMagick::Tool::Convert will now generate magick convert commands (and the same for others)
    • MiniMagick::Tool::Magick was added for generating magick commands
  • MiniMagick.cli_prefix was added to configure a prefix for commands

    MiniMagick.cli_prefix = "firejail"
    MiniMagick::Tool::Magick.new { |magick| ... } # executes firejail magick ...

Other Improvements

  • Fix deadlocks when using posix-spawn as a shell backend

  • Fix Errno::ESRCH sometimes being raised when the ImageMagick command would time out

  • #label and #caption will now generate regular options

    MiniMagick::Tool::Convert.new do |convert|
                             # BEFORE:       NOW:
      convert.label("foo")   # label:foo    -label foo
      convert.caption("bar") # caption:bar  -caption bar
    end
  • Add pango creation operator

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [mini_magick](https://github.com/minimagick/minimagick) from 1.3.2 to 4.9.4. **This update includes security fixes.**
- [Release notes](https://github.com/minimagick/minimagick/releases)
- [Commits](https://github.com/minimagick/minimagick/commits/v4.9.4)

Signed-off-by: dependabot-preview[bot] <[email protected]>
@dependabot-preview dependabot-preview bot added dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability labels Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants