← Back
CVE-2021-29510
Vulnerability in pydantic (CVE-2021-29510)
Summary
vulnerability in pydantic (CVE-2021-29510). Risk of unauthorized operations or information disclosure. Mitigation: upgrade to `1.7.4` or later.
AI summary snake-internal / snake-material-v2
A vulnerability tracked as **CVE-2021-29510** has been found in pydantic.
Risk of unauthorized operations or information disclosure. CVSS score: ?/10.
What to do: upgrade pydantic to **1.7.4** or later.
If unsure, ask your IT team or search "pydantic CVE-2021-29510" on the vendor's site.
CVE-2021-29510 (pydantic) — CWE-835 /
Attack vector: local / unauthenticated
Patched: `1.7.4` — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
❓ What is the problem
**A vulnerability** (CWE-835) exists in pydantic.
📍 Affected scope
pydantic — .
🔥 Severity
Severity: ?. Risk of unauthorized operations or information disclosure
🔧 How to fix
Update to **1.7.4**.
🛡️ Workaround
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
🔍 Detection
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run `grep -r 'pydantic' .` against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response Actions (7 steps)
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'pydantic' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `pydantic` を grep し、稼働しているサービス・バージョンを把握する。
-
6Apply patch patch
Upgrade pydantic to 1.7.4ステージング環境で 1.7.4 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
PyPI
pydantic
[{"type":"ECOSYSTEM","events":[{"introduced":"1.7"},{"fixed":"1.7.4"}]}]
pip
pydantic
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.4"}]}]
References
- advisory https://nvd.nist.gov/vuln/detail/CVE-2021-29510
- package https://github.com/pydantic/pydantic
- web https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh
- web https://github.com/samuelcolvin/pydantic/commit/7e83fdd2563ffac081db7ecdf1affa65ef38c468
- web https://github.com/pydantic/pydantic/commit/1c24f1d74ba95ea985b50bdc001ce96c813229aa
- web https://github.com/pydantic/pydantic/commit/80e0dd3f752bef145dce12f160d262bb40ec8d47
- web https://github.com/pydantic/pydantic/commit/bdde15b7b947c94ca00fd6eb92da8db390a13520
- web https://github.com/pypa/advisory-database/tree/main/vulns/pydantic/PYSEC-2021-47.yaml
- web https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S2HT266L6Q7H6ICP7DFGXOGBJHNNKMKB
- web https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UEFWM7DYKD2ZHE7R5YT5EQWJPV4ZKYRB
- web https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UMKAJX4O6IGBBCE32CO2G7PZQCCQSBLV
- web https://github.com/advisories/GHSA-5jqp-qgf6-3pvh