CVE catalog

CVE-2022-24836

ruby-nokogiri affected and fixed versions

[CVE catalog]

Nokogiri is an open source XML and HTML library for Ruby. Nokogiri `< v1.13.4` contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to detect encoding in HTML documents. Users are advised to upgrade to Nokogiri `>= 1.13.4`. There are no known workarounds for this issue.

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
3.52% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Debiantrixieruby-nokogiri1.13.5+dfsg-1FixedDistribution-reported fixed boundary[CVE-2022-24836]
Debiantrixieruby-nokogiri1.18.2+dfsg-1Fixed[CVE-2022-24836]
Debiansidruby-nokogiri1.13.5+dfsg-1FixedDistribution-reported fixed boundary[CVE-2022-24836]
Debiansidruby-nokogiri1.19.4+dfsg-1Fixed[CVE-2022-24836]
Debianforkyruby-nokogiri1.13.5+dfsg-1FixedDistribution-reported fixed boundary[CVE-2022-24836]
Debianforkyruby-nokogiri1.19.4+dfsg-1Fixed[CVE-2022-24836]
Debianbookwormruby-nokogiri1.13.10+dfsg-2Fixed[CVE-2022-24836]
Debianbookwormruby-nokogiri1.13.5+dfsg-1FixedDistribution-reported fixed boundary[CVE-2022-24836]

Showing 8 fix observations. All 35 observations, including unknown and conflicting reports, are available below.

Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
UnknownRelease not reportedruby-nokogiri1.13.5+dfsg-1UnknownSource applicability is not establishedProvider not reported
Debianbookwormruby-nokogiri1.13.10+dfsg-2Fixed[CVE-2022-24836]
Debianbookwormruby-nokogiri1.13.5+dfsg-1FixedDistribution-reported fixed boundary[CVE-2022-24836]
Debianforkyruby-nokogiri1.13.5+dfsg-1FixedDistribution-reported fixed boundary[CVE-2022-24836]
Debianforkyruby-nokogiri1.19.4+dfsg-1Fixed[CVE-2022-24836]
Debiansidruby-nokogiri1.13.5+dfsg-1FixedDistribution-reported fixed boundary[CVE-2022-24836]
Debiansidruby-nokogiri1.19.4+dfsg-1Fixed[CVE-2022-24836]
Debiantrixieruby-nokogiri1.13.5+dfsg-1FixedDistribution-reported fixed boundary[CVE-2022-24836]
Debiantrixieruby-nokogiri1.18.2+dfsg-1Fixed[CVE-2022-24836]
Opensuseleap 15.3rubygem-nokogiri1.8.5-150000.3.9.1UnknownSource applicability is not established[SUSE-SU-2022:4015-1]
Opensuseleap 15.4rubygem-nokogiri1.8.5-150400.14.3.1UnknownSource applicability is not established[SUSE-SU-2022:4016-1]
Suselinux enterprise high availability extension 15rubygem-nokogiri1.8.5-150000.3.9.1UnknownSource applicability is not established[SUSE-SU-2022:4015-1]
Suselinux enterprise high availability extension 15 sp1rubygem-nokogiri1.8.5-150000.3.9.1UnknownSource applicability is not established[SUSE-SU-2022:4015-1]
Suselinux enterprise high availability extension 15 sp2rubygem-nokogiri1.8.5-150000.3.9.1UnknownSource applicability is not established[SUSE-SU-2022:4015-1]
Suselinux enterprise module for basesystem 15 sp3rubygem-nokogiri1.8.5-150000.3.9.1UnknownSource applicability is not established[SUSE-SU-2022:4015-1]
Suselinux enterprise module for basesystem 15 sp4rubygem-nokogiri1.8.5-150400.14.3.1UnknownSource applicability is not established[SUSE-SU-2022:4016-1]
Suseopenstack cloud crowbar 8rubygem-nokogiri1.6.1-5.6.1UnknownSource applicability is not established[SUSE-SU-2022:3890-1]
Suseopenstack cloud crowbar 9rubygem-nokogiri1.6.1-5.6.1UnknownSource applicability is not established[SUSE-SU-2022:3890-1]
Ubuntu16.04ruby-nokogiri1.6.6.2+ds-2build2UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Ubuntu16.04ruby-nokogiri1.6.6.3-1UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Ubuntu16.04ruby-nokogiri1.6.7-1UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Ubuntu16.04ruby-nokogiri1.6.7.1-1UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Ubuntu16.04ruby-nokogiri1.6.7.2-3UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Ubuntu16.04ruby-nokogiri1.6.7.2-3build1UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Ubuntu16.04ruby-nokogiri1.6.7.2-3ubuntu0.1UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Ubuntu18.04ruby-nokogiri1.8.0-1UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Ubuntu18.04ruby-nokogiri1.8.1-1UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Ubuntu18.04ruby-nokogiri1.8.1-1build1UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Ubuntu18.04ruby-nokogiri1.8.2-1build1UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Ubuntu18.04ruby-nokogiri1.8.2-1ubuntu0.1UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Ubuntuproruby-nokogiri1.11.1+dfsg-2ubuntu1UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Ubuntuproruby-nokogiri1.11.7+dfsg-3UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Ubuntuproruby-nokogiri1.11.7+dfsg-3build1UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Ubuntuproruby-nokogiri1.13.1+dfsg-2UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Ubuntuproruby-nokogiri1.13.1+dfsg-2ubuntu0.1~esm1UnknownSource applicability is not established[UBUNTU-CVE-2022-24836]
Original provider fields
{
  "package_releases": [
    {
      "name": "ruby-nokogiri",
      "status": "fixed",
      "release": "sid",
      "version": "1.19.4+dfsg-1"
    },
    {
      "name": "ruby-nokogiri",
      "status": "fixed",
      "release": "forky",
      "version": "1.19.4+dfsg-1"
    },
    {
      "name": "ruby-nokogiri",
      "status": "fixed",
      "release": "trixie",
      "version": "1.18.2+dfsg-1"
    },
    {
      "name": "ruby-nokogiri",
      "status": "fixed",
      "release": "bookworm",
      "version": "1.13.10+dfsg-2"
    }
  ],
  "fixed_versions": [
    {
      "bug": 1009787,
      "name": "ruby-nokogiri",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "not yet assigned",
      "fixed_version": "1.13.5+dfsg-1"
    },
    {
      "bug": 1009787,
      "name": "ruby-nokogiri",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "not yet assigned",
      "fixed_version": "1.13.5+dfsg-1"
    },
    {
      "bug": 1009787,
      "name": "ruby-nokogiri",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "not yet assigned",
      "fixed_version": "1.13.5+dfsg-1"
    },
    {
      "bug": 1009787,
      "name": "ruby-nokogiri",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": "1.13.5+dfsg-1"
    }
  ],
  "distribution_packages": [
    {
      "name": "ruby-nokogiri",
      "fixed_version": "1.13.5+dfsg-1",
      "applicability_unknown": true
    },
    {
      "name": "rubygem-nokogiri",
      "distro": "suse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.8.5-150000.3.9.1"
            }
          ]
        }
      ],
      "release": "linux enterprise module for basesystem 15 sp3",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:4015-1",
      "fixed_version": "1.8.5-150000.3.9.1",
      "provider_source": "pypi",
      "provider_record_id": "SUSE-SU-2022:4015-1",
      "provider_updated_at": "2026-02-04T03:17:14.004740Z",
      "applicability_unknown": true
    },
    {
      "name": "rubygem-nokogiri",
      "distro": "suse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.8.5-150000.3.9.1"
            }
          ]
        }
      ],
      "release": "linux enterprise high availability extension 15",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:4015-1",
      "fixed_version": "1.8.5-150000.3.9.1",
      "provider_source": "pypi",
      "provider_record_id": "SUSE-SU-2022:4015-1",
      "provider_updated_at": "2026-02-04T03:17:14.004740Z",
      "applicability_unknown": true
    },
    {
      "name": "rubygem-nokogiri",
      "distro": "suse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.8.5-150000.3.9.1"
            }
          ]
        }
      ],
      "release": "linux enterprise high availability extension 15 sp1",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:4015-1",
      "fixed_version": "1.8.5-150000.3.9.1",
      "provider_source": "pypi",
      "provider_record_id": "SUSE-SU-2022:4015-1",
      "provider_updated_at": "2026-02-04T03:17:14.004740Z",
      "applicability_unknown": true
    },
    {
      "name": "rubygem-nokogiri",
      "distro": "suse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.8.5-150000.3.9.1"
            }
          ]
        }
      ],
      "release": "linux enterprise high availability extension 15 sp2",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:4015-1",
      "fixed_version": "1.8.5-150000.3.9.1",
      "provider_source": "pypi",
      "provider_record_id": "SUSE-SU-2022:4015-1",
      "provider_updated_at": "2026-02-04T03:17:14.004740Z",
      "applicability_unknown": true
    },
    {
      "name": "rubygem-nokogiri",
      "distro": "opensuse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.8.5-150000.3.9.1"
            }
          ]
        }
      ],
      "release": "leap 15.3",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:4015-1",
      "fixed_version": "1.8.5-150000.3.9.1",
      "provider_source": "pypi",
      "provider_record_id": "SUSE-SU-2022:4015-1",
      "provider_updated_at": "2026-02-04T03:17:14.004740Z",
      "applicability_unknown": true
    },
    {
      "name": "rubygem-nokogiri",
      "distro": "suse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.8.5-150400.14.3.1"
            }
          ]
        }
      ],
      "release": "linux enterprise module for basesystem 15 sp4",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:4016-1",
      "fixed_version": "1.8.5-150400.14.3.1",
      "provider_source": "pypi",
      "provider_record_id": "SUSE-SU-2022:4016-1",
      "provider_updated_at": "2026-02-04T02:52:00.215260Z",
      "applicability_unknown": true
    },
    {
      "name": "rubygem-nokogiri",
      "distro": "opensuse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.8.5-150400.14.3.1"
            }
          ]
        }
      ],
      "release": "leap 15.4",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:4016-1",
      "fixed_version": "1.8.5-150400.14.3.1",
      "provider_source": "pypi",
      "provider_record_id": "SUSE-SU-2022:4016-1",
      "provider_updated_at": "2026-02-04T02:52:00.215260Z",
      "applicability_unknown": true
    },
    {
      "name": "rubygem-nokogiri",
      "distro": "suse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.6.1-5.6.1"
            }
          ]
        }
      ],
      "release": "openstack cloud crowbar 8",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:3890-1",
      "fixed_version": "1.6.1-5.6.1",
      "provider_source": "pypi",
      "provider_record_id": "SUSE-SU-2022:3890-1",
      "provider_updated_at": "2026-02-04T02:32:22.582243Z",
      "applicability_unknown": true
    },
    {
      "name": "rubygem-nokogiri",
      "distro": "suse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.6.1-5.6.1"
            }
          ]
        }
      ],
      "release": "openstack cloud crowbar 9",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:3890-1",
      "fixed_version": "1.6.1-5.6.1",
      "provider_source": "pypi",
      "provider_record_id": "SUSE-SU-2022:3890-1",
      "provider_updated_at": "2026-02-04T02:32:22.582243Z",
      "applicability_unknown": true
    },
    {
      "name": "ruby-nokogiri",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "pro",
      "versions": [
        "1.11.1+dfsg-2ubuntu1",
        "1.11.7+dfsg-3",
        "1.11.7+dfsg-3build1",
        "1.13.1+dfsg-2",
        "1.13.1+dfsg-2ubuntu0.1~esm1"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-24836",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2022-24836",
      "provider_updated_at": "2025-10-24T04:53:30Z",
      "applicability_unknown": true
    },
    {
      "name": "ruby-nokogiri",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "16.04",
      "versions": [
        "1.6.6.2+ds-2build2",
        "1.6.6.3-1",
        "1.6.7-1",
        "1.6.7.1-1",
        "1.6.7.2-3",
        "1.6.7.2-3build1",
        "1.6.7.2-3ubuntu0.1"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-24836",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2022-24836",
      "provider_updated_at": "2025-10-24T04:53:30Z",
      "applicability_unknown": true
    },
    {
      "name": "ruby-nokogiri",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "18.04",
      "versions": [
        "1.8.0-1",
        "1.8.1-1",
        "1.8.1-1build1",
        "1.8.2-1build1",
        "1.8.2-1ubuntu0.1"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-24836",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2022-24836",
      "provider_updated_at": "2025-10-24T04:53:30Z",
      "applicability_unknown": true
    }
  ]
}

[Debian bug #1009787]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [ruby-nokogiri]Unknown

    Source package: [ruby-nokogiri]

    Details (2)
    • 1.13.10+dfsg-2+b1 · amd64 · bookworm

      Fixed · Fixed: 1.13.5+dfsg-1

      dsa · ruby-nokogiri · debian · bookworm

    • 1.13.10+dfsg-2+b1 · arm64 · bookworm

      Fixed · Fixed: 1.13.5+dfsg-1

      dsa · ruby-nokogiri · debian · bookworm

Observed:

References