Skip to content
Heist/ feed
Back to feed
High

rust-idna — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2024-12224

Improper Validation of Unsafe Equivalence in punycode by the idna crate from Servo rust-url allows an attacker to create a punycode hostname that one part of a system might treat as distinct while another part of that system would treat as equivalent to another hostname.

Products
rust-idna
Affected versions
0.1.5-1, 0.2.0-1, 0.3.0-1, 0.4.0-1, 1.0.3-2, 1.1.0-1
Fixed versions
Not specified
CVEs
CVE-2024-12224
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:12 UTC · Revision 1

Source evidence

UBUNTU-CVE-2024-12224

core-osv · Original source

Published 30 May 2025, 02:15 UTC

Improper Validation of Unsafe Equivalence in punycode by the idna crate from Servo rust-url allows an attacker to create a punycode hostname that one part of a system might treat as distinct while another part of that system would treat as equivalent to another hostname.

osv:UBUNTU-CVE-2024-12224

rust-idna

Fixed versions: Not specified

rust-idna

Fixed versions: Not specified

rust-idna

Fixed versions: Not specified

rust-idna

Fixed versions: Not specified

rust-idna

Fixed versions: Not specified

rust-idna

Fixed versions: Not specified

Complete source record
{
  "id": "b932f41979d5feb5f5bbe48f4bbd5c1e46e76a125fb5d01f4e99de8babc595f0",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-12224",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2024-12224",
    "summary": "Improper Validation of Unsafe Equivalence in punycode by the idna crate from Servo rust-url allows an attacker to create a punycode hostname that one part of a system might treat as distinct while another part of that system would treat as equivalent to another hostname.",
    "evidence": "osv:UBUNTU-CVE-2024-12224",
    "products": [
      {
        "name": {
          "value": "rust-idna",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.1.5-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.2.0-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-idna",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.2.0-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-idna",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.3.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.4.0-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-idna",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.0.3-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-idna",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1.0-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-idna",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.0.3-2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.1.0-1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2024-12224",
      "aliases": [
        "UBUNTU-CVE-2024-12224"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        },
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-idna",
            "purl": "pkg:deb/ubuntu/rust-idna?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.1.5-1",
            "0.2.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-12224.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-idna-dev",
                "binary_version": "0.2.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-idna",
            "purl": "pkg:deb/ubuntu/rust-idna?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.2.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-12224.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-idna-dev",
                "binary_version": "0.2.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-idna",
            "purl": "pkg:deb/ubuntu/rust-idna?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.3.0-1",
            "0.4.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-12224.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-idna-dev",
                "binary_version": "0.4.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-idna",
            "purl": "pkg:deb/ubuntu/rust-idna?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.4.0-1",
            "1.0.3-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-12224.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-idna-dev",
                "binary_version": "1.0.3-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-idna",
            "purl": "pkg:deb/ubuntu/rust-idna?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.1.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-12224.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-idna-dev",
                "binary_version": "1.1.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-idna",
            "purl": "pkg:deb/ubuntu/rust-idna?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.0.3-2",
            "1.1.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-12224.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-idna-dev",
                "binary_version": "1.1.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:43.146057737Z",
      "provider": "osv",
      "upstream": [
        "CVE-2024-12224"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2024-12224",
        "https://www.cve.org/CVERecord?id=CVE-2024-12224",
        "https://rustsec.org/advisories/RUSTSEC-2024-0421.html",
        "https://bugzilla.mozilla.org/show_bug.cgi?id=1887898"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2024-12224",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356046,
  "published_at": "2025-05-30T02:15:00+00:00"
}