ImageMagick: Incorrect Type Conversion or Cast
CVE-2022-32547 is a high-severity incorrect type conversion or cast vulnerability in ImageMagick, with a CVSS 3.1 base score of 7.8 out of 10. It can be exploited with local access to the system by an unauthenticated attacker, but only if a user takes part, for example by opening a link or file. Affected ImageMagick versions: Fixed in ImageMagick 6.9.12-45, ImageMagick 7.1.0-30. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 1.41% chance of exploitation within 30 days, higher than 73% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Check which version of ImageMagick you run against the affected versions below, and install the vendor's latest release.
- Because the attack needs a user to take part, warn users about unexpected links and files related to this product until it is patched.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| ImageMagick | ImageMagick | Fixed in ImageMagick 6.9.12-45, ImageMagick 7.1.0-30 | Not stated |
| Fedora Project | Fedora | 36 | Not stated |
| Red Hat | Enterprise Linux | 6.0; 7.0 | Not stated |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- LocalThe attacker needs local access or must trick a user into running something.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- RequiredA user must take an action such as opening a file or link.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.8 | High | NVD |
| CVSS 2.0 | 6.8 | Medium | NVD |
Official description
In ImageMagick, there is load of misaligned address for type 'double', which requires 8 byte alignment and for type 'float', which requires 4 byte alignment at MagickCore/property.c. Whenever crafted or untrusted input is processed by ImageMagick, this causes a negative impact to application availability or other problems related to undefined behavior.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Incorrect Type Conversion or Cast
The product does not correctly convert an object, resource, or structure from one type to a different type.
More Incorrect Type Conversion or Cast vulnerabilities (CWE-704)
Timeline
- CVE record published.
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- bugzilla.redhat.com/show_bug.cgi?id=2091813Issue Tracking, Third Party Advisory
- github.com/ImageMagick/ImageMagick/commit/eac8ce4d873f28bb6a46aa3a662fb196b49b95d0Third Party Advisory
- github.com/ImageMagick/ImageMagick6/commit/dc070da861a015d3c97488fdcca6063b44d47a7bThird Party Advisory
Other references
Other vulnerabilities in ImageMagick
- 7.5 High severity
- 8.1 High severity
- 7.5 High severity
Recent Incorrect Type Conversion or Cast vulnerabilities
- 7.5 High severity
Spotted an error? Tell us.