Advisory

UBUNTU-CVE-2022-24720

Also known as: CVE-2022-24720

Summary

The record has no summary.

Details

image_processing is an image processing wrapper for libvips and ImageMagick/GraphicsMagick. Prior to version 1.12.2, using the #apply method from image_processing to apply a series of operations that are coming from unsanitized user input allows the attacker to execute shell commands. This method is called internally by Active Storage variants, so Active Storage is vulnerable as well. The vulnerability has been fixed in version 1.12.2 of image_processing. As a workaround, users who process based on user input should always sanitize the user input by allowing only a constrained set of operations.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2022-03-01 23:15 UTC
Modified
2026-02-04 10:01 UTC

Affected packages and fixes

ruby-image-processing

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 1.10.3-1ubuntu0.20.04.1 (ecosystem)

Fixed versions

1.10.3-1ubuntu0.20.04.1

Fix

  • Fixed version 1.10.3-1ubuntu0.20.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

ruby-image-processing

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 1.10.3-1ubuntu0.22.04.1 (ecosystem)

Fixed versions

1.10.3-1ubuntu0.22.04.1

Fix

  • Fixed version 1.10.3-1ubuntu0.22.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences