p PatchFirst

CVE-2026-133429

CVE-2026-133429 · Validation bypass of extra data keys in JSON model validation

CVSS 6.3 · Mittel · EPSS 0,5% · Korrektur verfügbar

Vergleichen Sie mit Ihrer installierten Version

Betroffene Produkte und bekannte korrigierte Versionen sind öffentlich. Vergleichen Sie diese mit Ihrer installierten Version.

  • pydanticAuf 2.14.2 aktualisieren
  • pydantic Debian 14Keine Korrektur veröffentlicht
  • pydantic Ubuntu Pro 20.04 LTSKeine Korrektur veröffentlicht
  • pydantic Ubuntu Pro 22.04 LTSKeine Korrektur veröffentlicht
  • und 3 weitere

Installierte Version prüfen:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="pydantic"'

Bewerten Sie die Risiken Ihres Servers

Die kostenlose Prüfung liefert ohne Registrierung eine Bewertung und eine Risikoübersicht nach Technologie-Stacks. Sie beantwortet nicht, ob diese einzelne Schwachstelle Sie betrifft.

Die Überwachung gleicht öffentliche Informationen mit der Software Ihrer Server ab. Sie erhalten detaillierte Funde und eine Reihenfolge für Updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Server kostenlos prüfen →

Kanäle bieten allgemeine Nachrichten zu Technologien; neue Funde auf Ihren Servern meldet die Überwachung im Dashboard, per Browser-Benachrichtigung, in Telegram oder über einen Webhook.

Diese Seite enthält Fakten aus öffentlichen Sicherheitsquellen. Lesen Sie vor dem Aktualisieren die Originalmeldung.

When validating JSON data into a model allowing extra data, the keys of extra data aren't validated against the key type annotated on __pydantic_extra__, resulting in extra data not matching the declared type. This is the case if you define __pydantic_extra__ as e.g. dict[Annotated[str, Field(pattern=r'^x_')], int].

The validate_json_by_iteration() method (in pydantic-core/src/validators/model_fields.rs), used to validate JSON data into models, only validates the values of extra data, and stores the keys as is.

The issue was fixed in commit 4c65dbda9970a488e2ff21c8693fc6f6d70a3358.

Impact: validation bypass, as extra data returned by validation doesn't match the declared type. Affected are applications validating untrusted JSON data into models allowing extra data (with extra='allow'), with a key type annotated on __pydantic_extra__ (e.g. dict[Annotated[str, Field(pattern=...)], int]), using Pydantic from 2.13.0 up to (but excluding) 2.14.2.

Python mode validation isn't affected.

Veröffentlicht
Aktualisiert

Technologie-Stack: system

Betroffene Produkte und Versionen

  • pydantic

    Softwareversionen
    • ≥ 2.13.0, < 2.14.2: Betroffen (python)

    Auf 2.14.2 aktualisieren

  • pydantic Debian 14

    Softwareversionen
    • 2.10.6-2
    • 2.12.0~a1-1
    • 2.12.2-1
    • 2.12.3-1
    • 2.12.3-2
    • 2.12.4-1
    Alle Versionen (16)
    • 2.12.5-1
    • 2.12.5-2
    • 2.13.3-1
    • 2.13.4-1
    • 2.13.4-3
    • 2.13.4-4
    • 2.13.5-1
    • 2.13.5-2
    • 2.14.0-1
    • 2.14.1-1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • pydantic Ubuntu Pro 20.04 LTS

    Softwareversionen
    • 0.30.1-1
    • 1.2-1
    • 1.2-1ubuntu0.1~esm1
    • 1.2-1ubuntu0.1~esm3
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • pydantic Ubuntu Pro 22.04 LTS

    Softwareversionen
    • 1.7.4-1
    • 1.8.2-1
    • 1.8.2-1ubuntu0.1~esm1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • pydantic Ubuntu 24.04 LTS

    Softwareversionen
    • 1.10.4-1ubuntu1
    • 1.10.13-0ubuntu1
    • 1.10.14-1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • pydantic Ubuntu 26.10

    Softwareversionen
    • 2.12.5-2
    • 2.13.4-3
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • pydantic Ubuntu 26.04 LTS

    Softwareversionen
    • 2.10.6-2
    • 2.12.5-2
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

Originalquellen

Prüfen Sie Ihren Server →