Skip to content
Heist/ feed
Back to feed
Low

Mishandling of comma during folding and unicode-encoding of email headers

Type: advisorySources: OSV

During an address list folding when a separating comma ends up on a folded line and that line is to be unicode-encoded then the separator itself is also unicode-encoded. Expected behavior is that the separating comma remains a plan comma. This can result in the address header being misinterpreted by some mail servers.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-1795
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 08:24 UTC · Revision 1

Source evidence

Mishandling of comma during folding and unicode-encoding of email headers

core-osv · Original source

Published 28 Feb 2025, 18:59 UTC

During an address list folding when a separating comma ends up on a folded line and that line is to be unicode-encoded then the separator itself is also unicode-encoded. Expected behavior is that the separating comma remains a plan comma. This can result in the address header being misinterpreted by some mail servers.

osv:CVE-2025-1795
Complete source record
{
  "id": "fa9921906c77c4d79dbf0434db0a049c5d03131f4f4f86a8eef322d9119aca2d",
  "url": "https://osv.dev/vulnerability/CVE-2025-1795",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Mishandling of comma during folding and unicode-encoding of email headers",
    "summary": "During an address list folding when a separating comma ends up on a folded line and that line is to be unicode-encoded then the separator itself is also unicode-encoded. Expected behavior is that the separating comma remains a plan comma. This can result in the address header being misinterpreted by some mail servers.",
    "evidence": "osv:CVE-2025-1795",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2025-1795",
      "aliases": [
        "BIT-libpython-2025-1795",
        "BIT-python-2025-1795",
        "BIT-python-min-2025-1795",
        "CVE-2025-1795",
        "PSF-2025-3"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/python/cpython",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "865270262ade38b96fce88e32a321caac5332a87"
                },
                {
                  "introduced": "b494f5935c92951e75597bfe1c8b1f3112fec270"
                },
                {
                  "fixed": "26ee8cad13e97c7e33b41f20216df30539f49e0b"
                },
                {
                  "introduced": "deaf509e8fc6e0363bd6f26d52ad42f976ec42f2"
                },
                {
                  "fixed": "de54cf5be371a6f5e2e9f208c38def5f81d3ef02"
                },
                {
                  "introduced": "0fb18b02c8ad56299d6a2910be0bab8ad601ef24"
                },
                {
                  "fixed": "f6650f9ad73359051f3e558c2431a109bc016664"
                },
                {
                  "introduced": "2268289a47c6e3c9a220b53697f9480ec390466f"
                },
                {
                  "fixed": "076d169ebbe59f7035eaa28d33d517bcb375f342"
                },
                {
                  "fixed": "09fab93c3d857496c0bd162797fab816c311ee48"
                },
                {
                  "fixed": "70754d21c288535e86070ca7a6e90dcb670b8593"
                },
                {
                  "fixed": "9148b77e0af91cdacaa7fe3dfac09635c3fe9a74"
                },
                {
                  "fixed": "a4ef689ce670684ec132204b1cd03720c8e0a03d"
                },
                {
                  "fixed": "d4df3c55e4c5513947f907f24766b34d2ae8c090"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.9.23"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "3.10.0"
                      },
                      {
                        "fixed": "3.10.17"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "3.11.0"
                      },
                      {
                        "fixed": "3.11.9"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "3.12.0"
                      },
                      {
                        "fixed": "3.12.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "3.13.0a1"
                      },
                      {
                        "fixed": "3.13.0a5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "09fab93c3d857496c0bd162797fab816c311ee48"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "70754d21c288535e86070ca7a6e90dcb670b8593"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "9148b77e0af91cdacaa7fe3dfac09635c3fe9a74"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a4ef689ce670684ec132204b1cd03720c8e0a03d"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d4df3c55e4c5513947f907f24766b34d2ae8c090"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.9.22",
            "v3.10.16",
            "v3.9.21",
            "v3.10.15",
            "v3.9.20",
            "v3.10.14",
            "v3.9.19",
            "v3.13.0a4",
            "v3.12.2",
            "v3.11.8",
            "v3.13.0a3",
            "v3.12.1",
            "v3.11.7",
            "v3.13.0a2",
            "v3.13.0a1",
            "v3.11.6",
            "v3.12.0",
            "v3.11.5",
            "v3.9.18",
            "v3.10.13",
            "v3.11.4",
            "v3.10.12",
            "v3.9.17",
            "v3.12.0b1",
            "v3.10.11",
            "v3.11.3",
            "v3.12.0a7",
            "v3.12.0a6",
            "v3.10.10",
            "v3.11.2",
            "v3.12.0a5",
            "v3.12.0a4",
            "v3.12.0a3",
            "v3.10.9",
            "v3.11.1",
            "v3.9.16",
            "v3.12.0a2",
            "v3.12.0a1",
            "v3.11.0rc2",
            "v3.10.8",
            "v3.9.15",
            "v3.9.14",
            "v3.10.7",
            "v3.11.0rc1",
            "v3.10.6",
            "v3.11.0b5",
            "v3.11.0b4",
            "v3.10.5",
            "v3.11.0b3",
            "v3.11.0b2",
            "v3.9.13",
            "v3.11.0b1",
            "v3.11.0a7",
            "v3.10.4",
            "v3.9.12",
            "v3.9.11",
            "v3.10.3",
            "v3.11.0a6",
            "v3.11.0a5",
            "v3.11.0a4",
            "v3.10.2",
            "v3.11.0a3",
            "v3.10.1",
            "v3.9.9",
            "v3.9.8",
            "v3.10.0rc2",
            "v3.9.7",
            "v3.10.0rc1",
            "v3.10.0b4",
            "v3.9.6",
            "v3.10.0b3",
            "v3.10.0b2",
            "v3.10.0b1",
            "v3.9.5",
            "v3.10.0a7",
            "v3.9.2",
            "v3.9.2rc1",
            "v3.10.0a1",
            "v3.9.0b5",
            "v3.9.0b3",
            "v3.9.0b1",
            "v3.9.0a2",
            "v3.7.0a2",
            "v3.6.0b1",
            "v3.6.0a3",
            "v3.5.0b1",
            "v3.5.0a4",
            "v3.5.0a3",
            "v3.5.0a2",
            "v3.5.0a1",
            "v3.4.0b3",
            "v3.4.0b2",
            "v3.4.0b1",
            "v3.4.0a4",
            "v3.4.0a3",
            "v3.4.0a2",
            "v3.4.0a1",
            "v3.3.0rc3",
            "v3.3.0rc2",
            "v3.3.0rc1",
            "v3.3.0b2",
            "v3.3.0b1",
            "v3.3.0a4",
            "v3.3.0a3",
            "v3.3.0a2",
            "v3.2rc3",
            "v3.2rc2",
            "v3.2rc1",
            "v3.2b2",
            "v3.2b1",
            "v3.2a4",
            "v3.2a3",
            "v3.2a2",
            "v3.2a1",
            "v3.1",
            "v3.1rc2",
            "v3.1rc1",
            "v3.1b1",
            "v3.1a2",
            "v3.1a1",
            "v3.0rc3",
            "v3.0rc2",
            "v3.0rc1",
            "v3.0b3",
            "v3.0b2",
            "v3.0b1",
            "v3.0a5",
            "v3.0a4",
            "v3.0a3",
            "v3.0a2",
            "v3.0a1",
            "v2.4",
            "v2.4c1",
            "v2.4b2",
            "v2.4b1",
            "v2.4a3",
            "v2.4a2",
            "v2.4a1",
            "v2.3c2",
            "v2.3c1",
            "v2.2a3",
            "v2.1",
            "v2.1c2",
            "v2.1c1",
            "v2.1b2",
            "v2.1b1",
            "v2.1a2",
            "v2.1a1",
            "v2.0",
            "v2.0c1",
            "v2.0b2",
            "v2.0b1",
            "v1.6a2",
            "v1.6a1",
            "v1.5.2",
            "v1.5.2c1",
            "v1.5.2b2",
            "v1.5.2b1",
            "v1.5.2a2",
            "v1.5.2a1",
            "v1.5.1",
            "v1.5",
            "v1.5b2",
            "v1.5b1",
            "v1.5a4",
            "v1.5a3",
            "v1.5a2",
            "v1.5a1",
            "v1.4",
            "v1.4b3",
            "v1.4b2",
            "v1.4b1",
            "v1.3",
            "v1.3b1",
            "v1.2",
            "v1.2b4",
            "v1.2b3",
            "v1.2b2",
            "v1.2b1",
            "v1.1.1",
            "v1.1",
            "v1.0.2",
            "v1.0.1",
            "v0.9.9",
            "v0.9.8"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-1795.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.178078337Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00013.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1795.json",
        "https://mail.python.org/archives/list/security-announce@python.org/thread/MB62IZMEC3UM6SGHP5LET5JX2Y7H4ZUR/",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-1795",
        "https://github.com/python/cpython/issues/100884",
        "https://github.com/python/cpython/commit/09fab93c3d857496c0bd162797fab816c311ee48",
        "https://github.com/python/cpython/commit/70754d21c288535e86070ca7a6e90dcb670b8593",
        "https://github.com/python/cpython/commit/9148b77e0af91cdacaa7fe3dfac09635c3fe9a74",
        "https://github.com/python/cpython/commit/a4ef689ce670684ec132204b1cd03720c8e0a03d",
        "https://github.com/python/cpython/commit/d4df3c55e4c5513947f907f24766b34d2ae8c090",
        "https://github.com/python/cpython/pull/100885",
        "https://github.com/python/cpython/pull/119099",
        "https://github.com/python/cpython"
      ],
      "provider_metadata": {
        "cna_assigner": "PSF",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1795.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-1795",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 493792,
  "published_at": "2025-02-28T18:59:31.784+00:00"
}