CVE-2025-32024: Github.com/bep/imagemeta Bep/imagemeta Allows Excessively Large EXIF Vulnerability

MODERATE
Advisory Identifier: GHSA-q7rw-w4cq-2j6w
CWE-770
Published
Advisory Summary

CVE-2025-32024 is a MODERATE bep/imagemeta allows excessively large exif vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Github.com/bep/imagemeta libraries in the Go ecosystem. The issue involves bep/imagemeta allows excessively large exif data structures. Remediation is available by upgrading affected packages to version 0.10.0.

CVE-2025-32024 at a Glance

CVE Identifier CVE-2025-32024
GHSA Identifier GHSA-q7rw-w4cq-2j6w
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Github.com/bep/imagemeta
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2025-32024

To remediate this vulnerability, upgrade all affected Github.com/bep/imagemeta dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/bep/imagemeta fixed: 0.10.0
Upgrade github.com/bep/imagemeta to 0.10.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/bep/imagemeta

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-32024, inspect your project dependencies for Github.com/bep/imagemeta:

inspect dependencies for github.com/bep/imagemeta

Analyze the terminal output to locate any version of Github.com/bep/imagemeta in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Github.com/bep/imagemeta, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The EXIF data format allows for defining excessively large data structures in relatively small payloads. Before `v0.10.0`, If you didn't trust the input images, this could be abused to construct denial-of-service attacks. ### Patches `v0.10.0` added LimitNumTags (default 5000) and LimitTagSize (default 10000) options.

CVE-2025-32024 Affected Github.com/bep/imagemeta Versions

1 component(s)
Fixed Versions:
0.10.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/bep/imagemeta
Go
< 0.10.0
0.10.0

References

Frequently Asked Questions

What is CVE-2025-32024?
CVE-2025-32024 is a security vulnerability in Github.com/bep/imagemeta involving bep/imagemeta allows excessively large EXIF data structures under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Github.com/bep/imagemeta versions are affected?
Affected versions include releases prior to 0.10.0 across affected packages: github.com/bep/imagemeta.
What version fixes CVE-2025-32024?
Upgrading to 0.10.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/bep/imagemeta affected?
Yes, github.com/bep/imagemeta is affected in releases prior to 0.10.0. Upgrade your dependency to 0.10.0 or later.
What CWE is associated with CVE-2025-32024?
CVE-2025-32024 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Go dependencies for CVE-2025-32024?
Run the dependency tree command: 'inspect dependencies for github.com/bep/imagemeta'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q7rw-w4cq-2j6w",
  "modified" : "2025-04-09T12:57:44Z",
  "published" : "2025-04-09T12:57:44Z",
  "aliases" : [ "CVE-2025-32024" ],
  "summary" : "bep/imagemeta allows excessively large EXIF data structures",
  "details" : "### Impact\nThe EXIF data format allows for defining excessively large data structures in relatively small payloads. Before `v0.10.0`, If you didn't trust the input images, this could be abused to construct denial-of-service attacks.\n\n### Patches\n`v0.10.0` added LimitNumTags (default 5000) and LimitTagSize (default 10000) options.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/bep/imagemeta"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.10.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/bep/imagemeta/security/advisories/GHSA-q7rw-w4cq-2j6w"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-32024"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bep/imagemeta/commit/4fd89616d8bf7f9bb892360d3fb19080ec2b4602"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/bep/imagemeta"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-09T12:57:44Z",
    "nvd_published_at" : "2025-04-08T16:15:27Z"
  }
}