PYSEC-2026-1605

Vulnerability from pysec - Published: 2026-07-07 16:03 - Updated: 2026-07-07 17:24
VLAI
Details

Impact

Schema.load(data, many=True) is vulnerable to denial of service attacks. A moderately sized request can consume a disproportionate amount of CPU time.

Patches

4.1.2, 3.26.2

Workarounds

# Fail fast
def load_many(schema, data, **kwargs):
    if not isinstance(data, list):
        raise ValidationError(['Invalid input type.'])
    return [schema.load(item, **kwargs) for item in data]
Impacted products
Name purl
marshmallow pkg:pypi/marshmallow

{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "marshmallow",
        "purl": "pkg:pypi/marshmallow"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "3.0.0rc1"
            },
            {
              "fixed": "3.26.2"
            },
            {
              "introduced": "4.0.0"
            },
            {
              "fixed": "4.1.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "3.0.0",
        "3.0.0rc1",
        "3.0.0rc2",
        "3.0.0rc3",
        "3.0.0rc4",
        "3.0.0rc5",
        "3.0.0rc6",
        "3.0.0rc7",
        "3.0.0rc8",
        "3.0.0rc9",
        "3.0.1",
        "3.0.2",
        "3.0.3",
        "3.0.4",
        "3.0.5",
        "3.1.0",
        "3.1.1",
        "3.10.0",
        "3.11.0",
        "3.11.1",
        "3.12.0",
        "3.12.1",
        "3.12.2",
        "3.13.0",
        "3.14.0",
        "3.14.1",
        "3.15.0",
        "3.16.0",
        "3.17.0",
        "3.17.1",
        "3.18.0",
        "3.19.0",
        "3.2.0",
        "3.2.1",
        "3.2.2",
        "3.20.0",
        "3.20.1",
        "3.20.2",
        "3.21.0",
        "3.21.1",
        "3.21.2",
        "3.21.3",
        "3.22.0",
        "3.23.0",
        "3.23.1",
        "3.23.2",
        "3.23.3",
        "3.24.0",
        "3.24.1",
        "3.24.2",
        "3.25.0",
        "3.25.1",
        "3.26.0",
        "3.26.1",
        "3.3.0",
        "3.4.0",
        "3.5.0",
        "3.5.1",
        "3.5.2",
        "3.6.0",
        "3.6.1",
        "3.7.0",
        "3.7.1",
        "3.8.0",
        "3.9.0",
        "3.9.1",
        "4.0.0",
        "4.0.1",
        "4.1.0",
        "4.1.1"
      ]
    }
  ],
  "aliases": [
    "CVE-2025-68480",
    "GHSA-428g-f7cq-pgp5"
  ],
  "details": "### Impact\n\n`Schema.load(data, many=True)` is vulnerable to denial of service attacks. A moderately sized request can consume a disproportionate amount of CPU time.\n\n### Patches\n\n4.1.2, 3.26.2\n\n### Workarounds\n\n```py\n# Fail fast\ndef load_many(schema, data, **kwargs):\n    if not isinstance(data, list):\n        raise ValidationError([\u0027Invalid input type.\u0027])\n    return [schema.load(item, **kwargs) for item in data]\n```",
  "id": "PYSEC-2026-1605",
  "modified": "2026-07-07T17:24:38.130255Z",
  "published": "2026-07-07T16:03:14.008333Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/marshmallow-code/marshmallow/security/advisories/GHSA-428g-f7cq-pgp5"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-68480"
    },
    {
      "type": "WEB",
      "url": "https://github.com/marshmallow-code/marshmallow/commit/d24a0c9df061c4daa92f71cf85aca25b83eee508"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/marshmallow-code/marshmallow"
    },
    {
      "type": "PACKAGE",
      "url": "https://pypi.org/project/marshmallow"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-428g-f7cq-pgp5"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Marshmallow has DoS in Schema.load(many)"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…