Skip to main content
CVE-2026-58203VulnerabilityPublished Updated

dvc · pydantic-settings: NestedSecretsSettingsSource follows symlinks outside secrets_dir, enabling local file read and

Affects dvcSource GCVE Database

0
Compare
Authoritative record:CVE-2026-58203· Medium 5.3

Not known to be exploited · CVSS 5.3 Medium : upgrade to 3.67.1_8 when convenient.

Data as of 4 Dec 2026, 20:16 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 3.67.1_8, 2.14.2
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.

What to do

Upgrade dvc to 3.67.1_8; pydantic-settings to 2.14.2.

Affected software

ProductAffectedFixed in
Homebrewdvcpkg:brew/dvcOther threatsAffected
  • >=3.64.0 <3.67.1_8
Fixed in
  • 3.67.1_8
PyPIpydantic-settingspkg:pypi/pydantic-settingsOther threatsAffected
  • 2.12.0 – 2.14.1
  • >=2.12.0 <2.14.2
5 affected builds
Fixed in
  • 2.14.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade to pydantic-settings version 3.67.1_8 or later, which fixes the issue by using a single, cycle-safe directory traversal that only descends into directories within the configured secrets_dir and enforces size limits consistently. If upgrading is not possible immediately, ensure the secrets_dir is fully controlled by the application with no writable or attacker-influenced entries, or disable secrets_nested_subdir=True.

Description

The NestedSecretsSettingsSource component in pydantic-settings versions >=3.64.0 <3.67.1_8 improperly follows symbolic links inside the configured secrets directory that point outside this directory. This allows reading files outside the intended secrets directory into application settings, bypassing the configured maximum size limit for secrets loading. The issue arises from inconsistent directory traversal methods used for size checking and loading, enabling local file read and resource exhaustion via cyclic symlinks. The vulnerability requires the ability to place symlinks inside the secrets directory and is not remotely exploitable by itself. It is fixed in version 3.67.1_8.

References

Community reviews

Loading reviews…