{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "source": "REFERENCES"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0adb386f6e68eb2e73d32e19f235d012df009528"
            },
            {
              "fixed": "5858e42c539dac8394636a6e9b30472b8994851f"
            },
            {
              "fixed": "71f2e02a52d47417a6fd69f456346cd8aa7aca98"
            },
            {
              "fixed": "aaf850fd333cd89e9aada03d92aaa788a6cb1bb8"
            }
          ],
          "repo": "https://github.com/python/cpython",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "PSF",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/0xxx/CVE-2026-0864.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "fixed": "3.15.0"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "When using the \"configparser\" module to write configuration files\ncontaining multi-line text values with carriage return characters (\\r) the\nresulting file could be injected with unexpected keys and values if the\nattacker controls the written value.",
  "id": "CVE-2026-0864",
  "modified": "2026-07-08T05:38:35.049557130Z",
  "published": "2026-06-23T17:42:01.947Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/0xxx/CVE-2026-0864.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://mail.python.org/archives/list/security-announce@python.org/thread/CV4NE6AFCRJL7XQOHX7J5TSDHUWVWGJS/"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-0864"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/python/cpython/issues/143927"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/0adb386f6e68eb2e73d32e19f235d012df009528"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/5858e42c539dac8394636a6e9b30472b8994851f"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/71f2e02a52d47417a6fd69f456346cd8aa7aca98"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/aaf850fd333cd89e9aada03d92aaa788a6cb1bb8"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/pull/151559"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/python/cpython"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Configuration Injection via Carriage Return (\\r) in write() method"
}