Skip to main content

ImageMagick before 7.1.2-26 and 6.9.13-51 contains a memory leak in the hough lines operation: when a specific operation fails, a small memory leak… (CVE-2026-61865)

0
Medium
Published: 07/15/2026 (07/15/2026, 12:18:00 UTC)
Source: GCVE Database
Product: imagemagick

Description

ImageMagick versions before 7.1.2-26 and 6.9.13-51 contain a memory leak vulnerability in the hough lines operation. This occurs when a specific operation fails, causing a small memory leak. The vulnerability has a medium severity with a CVSS score of 2.9. A patch is available to address this issue.

CVSS v3.1

Score 2.9low

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected software

Ubuntu:Pro:14.04:LTSmore threats →ghsa
imagemagick
pkg:deb/ubuntu/imagemagick?arch=source&distro=esm-infra-legacy/trusty
Affected versions
<8:6.7.7.10-6ubuntu3.13+esm25=8:6.7.7.10-5ubuntu3=8:6.7.7.10-5ubuntu4=8:6.7.7.10-6ubuntu1=8:6.7.7.10-6ubuntu2=8:6.7.7.10-6ubuntu3=8:6.7.7.10-6ubuntu3.1=8:6.7.7.10-6ubuntu3.2=8:6.7.7.10-6ubuntu3.3=8:6.7.7.10-6ubuntu3.4=8:6.7.7.10-6ubuntu3.5=8:6.7.7.10-6ubuntu3.6=8:6.7.7.10-6ubuntu3.7=8:6.7.7.10-6ubuntu3.8=8:6.7.7.10-6ubuntu3.9=8:6.7.7.10-6ubuntu3.11=8:6.7.7.10-6ubuntu3.12=8:6.7.7.10-6ubuntu3.13=8:6.7.7.10-6ubuntu3.13+esm1=8:6.7.7.10-6ubuntu3.13+esm2=8:6.7.7.10-6ubuntu3.13+esm3=8:6.7.7.10-6ubuntu3.13+esm4=8:6.7.7.10-6ubuntu3.13+esm5=8:6.7.7.10-6ubuntu3.13+esm6=8:6.7.7.10-6ubuntu3.13+esm7=8:6.7.7.10-6ubuntu3.13+esm8=8:6.7.7.10-6ubuntu3.13+esm9=8:6.7.7.10-6ubuntu3.13+esm10=8:6.7.7.10-6ubuntu3.13+esm11=8:6.7.7.10-6ubuntu3.13+esm12=8:6.7.7.10-6ubuntu3.13+esm13=8:6.7.7.10-6ubuntu3.13+esm14=8:6.7.7.10-6ubuntu3.13+esm15=8:6.7.7.10-6ubuntu3.13+esm16=8:6.7.7.10-6ubuntu3.13+esm17=8:6.7.7.10-6ubuntu3.13+esm18=8:6.7.7.10-6ubuntu3.13+esm19=8:6.7.7.10-6ubuntu3.13+esm20=8:6.7.7.10-6ubuntu3.13+esm21=8:6.7.7.10-6ubuntu3.13+esm22=8:6.7.7.10-6ubuntu3.13+esm23=8:6.7.7.10-6ubuntu3.13+esm24
Ubuntu:Pro:16.04:LTSmore threats →ghsa
imagemagick
pkg:deb/ubuntu/imagemagick?arch=source&distro=esm-infra-legacy/xenial
Affected versions
<8:6.8.9.9-7ubuntu5.16+esm24=8:6.8.9.9-5ubuntu2=8:6.8.9.9-6=8:6.8.9.9-6build1=8:6.8.9.9-7=8:6.8.9.9-7ubuntu1=8:6.8.9.9-7ubuntu2=8:6.8.9.9-7ubuntu3=8:6.8.9.9-7ubuntu4=8:6.8.9.9-7ubuntu5=8:6.8.9.9-7ubuntu5.1=8:6.8.9.9-7ubuntu5.2=8:6.8.9.9-7ubuntu5.3=8:6.8.9.9-7ubuntu5.4=8:6.8.9.9-7ubuntu5.5=8:6.8.9.9-7ubuntu5.6=8:6.8.9.9-7ubuntu5.7=8:6.8.9.9-7ubuntu5.8=8:6.8.9.9-7ubuntu5.9=8:6.8.9.9-7ubuntu5.11=8:6.8.9.9-7ubuntu5.12=8:6.8.9.9-7ubuntu5.13=8:6.8.9.9-7ubuntu5.14=8:6.8.9.9-7ubuntu5.15=8:6.8.9.9-7ubuntu5.16=8:6.8.9.9-7ubuntu5.16+esm1=8:6.8.9.9-7ubuntu5.16+esm2=8:6.8.9.9-7ubuntu5.16+esm3=8:6.8.9.9-7ubuntu5.16+esm4=8:6.8.9.9-7ubuntu5.16+esm5=8:6.8.9.9-7ubuntu5.16+esm6=8:6.8.9.9-7ubuntu5.16+esm7=8:6.8.9.9-7ubuntu5.16+esm8=8:6.8.9.9-7ubuntu5.16+esm9=8:6.8.9.9-7ubuntu5.16+esm10=8:6.8.9.9-7ubuntu5.16+esm11=8:6.8.9.9-7ubuntu5.16+esm12=8:6.8.9.9-7ubuntu5.16+esm13=8:6.8.9.9-7ubuntu5.16+esm14=8:6.8.9.9-7ubuntu5.16+esm15=8:6.8.9.9-7ubuntu5.16+esm16=8:6.8.9.9-7ubuntu5.16+esm17=8:6.8.9.9-7ubuntu5.16+esm18=8:6.8.9.9-7ubuntu5.16+esm19=8:6.8.9.9-7ubuntu5.16+esm20=8:6.8.9.9-7ubuntu5.16+esm21=8:6.8.9.9-7ubuntu5.16+esm22=8:6.8.9.9-7ubuntu5.16+esm23
Ubuntu:Pro:18.04:LTSmore threats →ghsa
imagemagick
pkg:deb/ubuntu/imagemagick?arch=source&distro=esm-infra/bionic
Affected versions
<8:6.9.7.4+dfsg-16ubuntu6.15+esm16=8:6.9.7.4+dfsg-16ubuntu2=8:6.9.7.4+dfsg-16ubuntu3=8:6.9.7.4+dfsg-16ubuntu4=8:6.9.7.4+dfsg-16ubuntu5=8:6.9.7.4+dfsg-16ubuntu6=8:6.9.7.4+dfsg-16ubuntu6.2=8:6.9.7.4+dfsg-16ubuntu6.3=8:6.9.7.4+dfsg-16ubuntu6.4=8:6.9.7.4+dfsg-16ubuntu6.7=8:6.9.7.4+dfsg-16ubuntu6.8=8:6.9.7.4+dfsg-16ubuntu6.9=8:6.9.7.4+dfsg-16ubuntu6.11=8:6.9.7.4+dfsg-16ubuntu6.12=8:6.9.7.4+dfsg-16ubuntu6.13=8:6.9.7.4+dfsg-16ubuntu6.14=8:6.9.7.4+dfsg-16ubuntu6.15=8:6.9.7.4+dfsg-16ubuntu6.15+esm1=8:6.9.7.4+dfsg-16ubuntu6.15+esm2=8:6.9.7.4+dfsg-16ubuntu6.15+esm3=8:6.9.7.4+dfsg-16ubuntu6.15+esm4=8:6.9.7.4+dfsg-16ubuntu6.15+esm5=8:6.9.7.4+dfsg-16ubuntu6.15+esm6=8:6.9.7.4+dfsg-16ubuntu6.15+esm7=8:6.9.7.4+dfsg-16ubuntu6.15+esm8=8:6.9.7.4+dfsg-16ubuntu6.15+esm9=8:6.9.7.4+dfsg-16ubuntu6.15+esm10=8:6.9.7.4+dfsg-16ubuntu6.15+esm11=8:6.9.7.4+dfsg-16ubuntu6.15+esm12=8:6.9.7.4+dfsg-16ubuntu6.15+esm13=8:6.9.7.4+dfsg-16ubuntu6.15+esm14=8:6.9.7.4+dfsg-16ubuntu6.15+esm15
Ubuntu:Pro:20.04:LTSmore threats →ghsa
imagemagick
pkg:deb/ubuntu/imagemagick?arch=source&distro=esm-apps/focal
Affected versions
<8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14=8:6.9.10.23+dfsg-2.1ubuntu3=8:6.9.10.23+dfsg-2.1ubuntu8=8:6.9.10.23+dfsg-2.1ubuntu9=8:6.9.10.23+dfsg-2.1ubuntu10=8:6.9.10.23+dfsg-2.1ubuntu11=8:6.9.10.23+dfsg-2.1ubuntu11.1=8:6.9.10.23+dfsg-2.1ubuntu11.2=8:6.9.10.23+dfsg-2.1ubuntu11.4=8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1=8:6.9.10.23+dfsg-2.1ubuntu11.5=8:6.9.10.23+dfsg-2.1ubuntu11.6=8:6.9.10.23+dfsg-2.1ubuntu11.6+esm1=8:6.9.10.23+dfsg-2.1ubuntu11.7=8:6.9.10.23+dfsg-2.1ubuntu11.7+esm1=8:6.9.10.23+dfsg-2.1ubuntu11.9=8:6.9.10.23+dfsg-2.1ubuntu11.9+esm1=8:6.9.10.23+dfsg-2.1ubuntu11.9+esm2=8:6.9.10.23+dfsg-2.1ubuntu11.10=8:6.9.10.23+dfsg-2.1ubuntu11.10+esm1=8:6.9.10.23+dfsg-2.1ubuntu11.11=8:6.9.10.23+dfsg-2.1ubuntu11.11+esm1=8:6.9.10.23+dfsg-2.1ubuntu11.11+esm2=8:6.9.10.23+dfsg-2.1ubuntu11.11+esm3=8:6.9.10.23+dfsg-2.1ubuntu11.11+esm4=8:6.9.10.23+dfsg-2.1ubuntu11.11+esm5=8:6.9.10.23+dfsg-2.1ubuntu11.11+esm6=8:6.9.10.23+dfsg-2.1ubuntu11.11+esm7=8:6.9.10.23+dfsg-2.1ubuntu11.11+esm8=8:6.9.10.23+dfsg-2.1ubuntu11.11+esm9=8:6.9.10.23+dfsg-2.1ubuntu11.11+esm10=8:6.9.10.23+dfsg-2.1ubuntu11.11+esm11=8:6.9.10.23+dfsg-2.1ubuntu11.11+esm12=8:6.9.10.23+dfsg-2.1ubuntu11.11+esm13
Ubuntu:Pro:22.04:LTSmore threats →ghsa
imagemagick
pkg:deb/ubuntu/imagemagick?arch=source&distro=esm-apps/jammy
Affected versions
<8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14=8:6.9.11.60+dfsg-1ubuntu1=8:6.9.11.60+dfsg-1.3=8:6.9.11.60+dfsg-1.3build1=8:6.9.11.60+dfsg-1.3build2=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.2=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.2+esm1=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3+esm1=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3+esm2=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3+esm3=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm1=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm2=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm3=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm4=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm5=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm6=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm7=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm8=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm9=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm10=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm11=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm12=8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm13
Ubuntu:Pro:24.04:LTSmore threats →ghsa
imagemagick
pkg:deb/ubuntu/imagemagick?arch=source&distro=esm-apps/noble
Affected versions
<8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm13=8:6.9.11.60+dfsg-1.6ubuntu1=8:6.9.12.98+dfsg1-5=8:6.9.12.98+dfsg1-5.2build1=8:6.9.12.98+dfsg1-5.2build2=8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm1=8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm2=8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm3=8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm4=8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm5=8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm6=8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm7=8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm8=8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm9=8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm10=8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm11=8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm12
Ubuntu:26.10more threats →ghsa
imagemagick
pkg:deb/ubuntu/imagemagick?arch=source&distro=stonking
Affected versions
=8:7.1.2.18+dfsg1-1=8:7.1.2.25+dfsg1-2=8:7.1.2.27+dfsg1-1=8:7.1.2.31+dfsg1-1
Ubuntu:Pro:26.04:LTSmore threats →ghsa
imagemagick
pkg:deb/ubuntu/imagemagick?arch=source&distro=esm-apps/resolute
Affected versions
<8:7.1.2.18+dfsg1-1ubuntu0.1~esm2=8:7.1.2.3+dfsg1-1=8:7.1.2.8+dfsg1-1=8:7.1.2.12+dfsg1-1=8:7.1.2.13+dfsg1-1=8:7.1.2.15+dfsg1-1=8:7.1.2.16+dfsg1-1=8:7.1.2.18+dfsg1-1=8:7.1.2.18+dfsg1-1ubuntu0.1~esm1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 00:21:27 UTC

Technical Analysis

CVE-2026-61865 describes a memory leak vulnerability in ImageMagick's hough lines operation present in versions prior to 7.1.2-26 and 6.9.13-51. When a particular operation within this function fails, a small amount of memory is not properly released, leading to a memory leak. The vulnerability has been assigned a CVSS v3.1 score of 2.9, indicating low impact on confidentiality and integrity but some impact on availability due to resource exhaustion. Multiple affected versions, including various Ubuntu package versions, are listed. Official patches are available as per Ubuntu security notices USN-8739-1 and USN-8739-2.

Potential Impact

The vulnerability causes a memory leak in the hough lines operation of ImageMagick, which could lead to resource exhaustion and reduced availability of the affected system or service. There is no impact on confidentiality or integrity. No known exploits in the wild have been reported.

Mitigation Recommendations

A patch is available and should be applied to affected ImageMagick versions. Refer to the official Ubuntu security notices USN-8739-1 and USN-8739-2 for patch details and update instructions.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-61865
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:Pro:14.04:LTS","Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:Pro:22.04:LTS","Ubuntu:Pro:24.04:LTS","Ubuntu:26.10","Ubuntu:Pro:26.04:LTS"]
Cvss Version
3.1

Threat ID: 6ad3f5cb2cdf04f656662923

Added to database: 10/17/2026, 22:25:15 UTC

Last enriched: 10/18/2026, 00:21:27 UTC

Last updated: 10/18/2026, 00:21:27 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses