GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

UBUNTU-CVE-2017-9226 (CVE-2017-9226)

Vulnerability from osv_ubuntu – Published: 2017-05-24 00:00 – Updated: 2026-04-22 07:38 – Source website
VLAI
Details

An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A heap out-of-bounds write or read occurs in next_state_val() during regular expression compilation. Octal numbers larger than 0xff are not handled correctly in fetch_token() and fetch_token_in_cc(). A malformed regular expression containing an octal number in the form of '\700' would produce an invalid code point value larger than 0xff in next_state_val(), resulting in an out-of-bounds write memory corruption.


{
  "affected": [
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libonig2",
            "binary_version": "5.9.1-1ubuntu1.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:14.04:LTS",
        "name": "libonig",
        "purl": "pkg:deb/ubuntu/libonig@5.9.1-1ubuntu1.1?arch=source\u0026distro=trusty"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.9.1-1ubuntu1.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "5.9.1-1",
        "5.9.1-1ubuntu1"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libapache2-mod-php5",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "libapache2-mod-php5filter",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "libphp5-embed",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php-pear",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-cgi",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-cli",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-common",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-curl",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-enchant",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-fpm",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-gd",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-gmp",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-intl",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-ldap",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-mysql",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-mysqlnd",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-odbc",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-pgsql",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-pspell",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-readline",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-recode",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-snmp",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-sqlite",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-sybase",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-tidy",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-xmlrpc",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          },
          {
            "binary_name": "php5-xsl",
            "binary_version": "5.5.9+dfsg-1ubuntu4.22"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:14.04:LTS",
        "name": "php5",
        "purl": "pkg:deb/ubuntu/php5@5.5.9+dfsg-1ubuntu4.22?arch=source\u0026distro=trusty"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.5.9+dfsg-1ubuntu4.22"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "5.5.3+dfsg-1ubuntu2",
        "5.5.3+dfsg-1ubuntu3",
        "5.5.6+dfsg-1ubuntu1",
        "5.5.6+dfsg-1ubuntu2",
        "5.5.8+dfsg-2ubuntu1",
        "5.5.9+dfsg-1ubuntu1",
        "5.5.9+dfsg-1ubuntu2",
        "5.5.9+dfsg-1ubuntu3",
        "5.5.9+dfsg-1ubuntu4",
        "5.5.9+dfsg-1ubuntu4.1",
        "5.5.9+dfsg-1ubuntu4.2",
        "5.5.9+dfsg-1ubuntu4.3",
        "5.5.9+dfsg-1ubuntu4.4",
        "5.5.9+dfsg-1ubuntu4.5",
        "5.5.9+dfsg-1ubuntu4.6",
        "5.5.9+dfsg-1ubuntu4.7",
        "5.5.9+dfsg-1ubuntu4.9",
        "5.5.9+dfsg-1ubuntu4.11",
        "5.5.9+dfsg-1ubuntu4.12",
        "5.5.9+dfsg-1ubuntu4.13",
        "5.5.9+dfsg-1ubuntu4.14",
        "5.5.9+dfsg-1ubuntu4.16",
        "5.5.9+dfsg-1ubuntu4.17",
        "5.5.9+dfsg-1ubuntu4.19",
        "5.5.9+dfsg-1ubuntu4.20",
        "5.5.9+dfsg-1ubuntu4.21"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libonig2",
            "binary_version": "5.9.6-1ubuntu0.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:16.04:LTS",
        "name": "libonig",
        "purl": "pkg:deb/ubuntu/libonig@5.9.6-1ubuntu0.1?arch=source\u0026distro=xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.9.6-1ubuntu0.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "5.9.6-1"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libapache2-mod-php7.0",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "libphp7.0-embed",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-bcmath",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-bz2",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-cgi",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-cli",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-common",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-curl",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-dba",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-enchant",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-fpm",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-gd",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-gmp",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-imap",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-interbase",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-intl",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-json",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-ldap",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-mbstring",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-mcrypt",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-mysql",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-odbc",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-opcache",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-pgsql",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-phpdbg",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-pspell",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-readline",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-recode",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-snmp",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-soap",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-sqlite3",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-sybase",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-tidy",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-xml",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-xmlrpc",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-xsl",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          },
          {
            "binary_name": "php7.0-zip",
            "binary_version": "7.0.22-0ubuntu0.16.04.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:16.04:LTS",
        "name": "php7.0",
        "purl": "pkg:deb/ubuntu/php7.0@7.0.22-0ubuntu0.16.04.1?arch=source\u0026distro=xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "7.0.22-0ubuntu0.16.04.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "7.0.1-5",
        "7.0.1-6",
        "7.0.2-1",
        "7.0.2-3",
        "7.0.2-4",
        "7.0.2-5",
        "7.0.3-2",
        "7.0.3-3",
        "7.0.3-9ubuntu1",
        "7.0.4-5ubuntu1",
        "7.0.4-5ubuntu2",
        "7.0.4-7ubuntu1",
        "7.0.4-7ubuntu2",
        "7.0.4-7ubuntu2.1",
        "7.0.8-0ubuntu0.16.04.1",
        "7.0.8-0ubuntu0.16.04.2",
        "7.0.8-0ubuntu0.16.04.3",
        "7.0.13-0ubuntu0.16.04.1",
        "7.0.15-0ubuntu0.16.04.1",
        "7.0.15-0ubuntu0.16.04.2",
        "7.0.15-0ubuntu0.16.04.4",
        "7.0.18-0ubuntu0.16.04.1"
      ]
    }
  ],
  "aliases": [],
  "details": "An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A heap out-of-bounds write or read occurs in next_state_val() during regular expression compilation. Octal numbers larger than 0xff are not handled correctly in fetch_token() and fetch_token_in_cc(). A malformed regular expression containing an octal number in the form of \u0027\\700\u0027 would produce an invalid code point value larger than 0xff in next_state_val(), resulting in an out-of-bounds write memory corruption.",
  "id": "UBUNTU-CVE-2017-9226",
  "modified": "2026-04-22T07:38:16Z",
  "published": "2017-05-24T00:00:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2017-9226"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-3382-1"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-3382-2"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2017-9226"
    }
  ],
  "related": [
    "USN-3382-1",
    "USN-3382-2"
  ],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2017-9226"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…