Skip to content
Heist/ feed
Back to feed
Critical

hashcat — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-42482

A stack-based buffer overflow in mangle_to_hex_lower() and mangle_to_hex_upper() in src/rp_cpu.c in hashcat v7.1.2 allows an attacker to cause a denial of service or possibly execute arbitrary code via a crafted rule file, or via the -j or -k rule options used with password candidates of 128 or more characters. The vulnerability is caused by a bounds check that fails to account for the 2x expansion that occurs when password bytes are converted to hexadecimal.

Products
hashcat
Affected versions
3.60-1, 4.0.1-1, 5.1.0+ds1-1, 5.1.0+ds1-2, 6.1.1+ds1-1, 6.2.5+ds1-2, 6.2.6+ds1-1, 6.2.6+ds1-1build1, 6.2.6+ds1-1build2, 6.2.6+ds2-1, 7.1.2+ds1-3, 7.1.2+ds1-4
Fixed versions
Not specified
CVEs
CVE-2026-42482
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:03 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-42482

core-osv · Original source

Published 1 May 2026, 14:16 UTC

A stack-based buffer overflow in mangle_to_hex_lower() and mangle_to_hex_upper() in src/rp_cpu.c in hashcat v7.1.2 allows an attacker to cause a denial of service or possibly execute arbitrary code via a crafted rule file, or via the -j or -k rule options used with password candidates of 128 or more characters. The vulnerability is caused by a bounds check that fails to account for the 2x expansion that occurs when password bytes are converted to hexadecimal.

osv:UBUNTU-CVE-2026-42482

hashcat

Fixed versions: Not specified

hashcat

Fixed versions: Not specified

hashcat

Fixed versions: Not specified

hashcat

Fixed versions: Not specified

hashcat

Fixed versions: Not specified

hashcat

Fixed versions: Not specified

hashcat

Fixed versions: Not specified

Complete source record
{
  "id": "ff903af4b838e77dd5299f788f1fe06ae43e5c9c19255daf4acd43723de86fea",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-42482",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-42482",
    "summary": "A stack-based buffer overflow in mangle_to_hex_lower() and mangle_to_hex_upper() in src/rp_cpu.c in hashcat v7.1.2 allows an attacker to cause a denial of service or possibly execute arbitrary code via a crafted rule file, or via the -j or -k rule options used with password candidates of 128 or more characters. The vulnerability is caused by a bounds check that fails to account for the 2x expansion that occurs when password bytes are converted to hexadecimal.",
    "evidence": "osv:UBUNTU-CVE-2026-42482",
    "products": [
      {
        "name": {
          "value": "hashcat",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.60-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.0.1-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hashcat",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.1.0+ds1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.1.0+ds1-2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hashcat",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.1.1+ds1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "6.2.5+ds1-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hashcat",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.2.6+ds1-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.2.6+ds1-1build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.2.6+ds1-1build2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hashcat",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.2.6+ds2-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hashcat",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "7.1.2+ds1-3",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "7.1.2+ds1-4",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hashcat",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.2.6+ds2-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "7.1.2+ds1-3",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2026-42482",
      "aliases": [
        "UBUNTU-CVE-2026-42482"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "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.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hashcat",
            "purl": "pkg:deb/ubuntu/hashcat?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "3.60-1",
            "4.0.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42482.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "hashcat",
                "binary_version": "4.0.1-1"
              },
              {
                "binary_name": "hashcat-data",
                "binary_version": "4.0.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hashcat",
            "purl": "pkg:deb/ubuntu/hashcat?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "5.1.0+ds1-1",
            "5.1.0+ds1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42482.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "hashcat",
                "binary_version": "5.1.0+ds1-2"
              },
              {
                "binary_name": "hashcat-data",
                "binary_version": "5.1.0+ds1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hashcat",
            "purl": "pkg:deb/ubuntu/hashcat?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "6.1.1+ds1-1",
            "6.2.5+ds1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42482.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "hashcat",
                "binary_version": "6.2.5+ds1-2"
              },
              {
                "binary_name": "hashcat-data",
                "binary_version": "6.2.5+ds1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hashcat",
            "purl": "pkg:deb/ubuntu/hashcat?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "6.2.6+ds1-1",
            "6.2.6+ds1-1build1",
            "6.2.6+ds1-1build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42482.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "hashcat",
                "binary_version": "6.2.6+ds1-1build2"
              },
              {
                "binary_name": "hashcat-data",
                "binary_version": "6.2.6+ds1-1build2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hashcat",
            "purl": "pkg:deb/ubuntu/hashcat?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "6.2.6+ds2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42482.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "hashcat",
                "binary_version": "6.2.6+ds2-1"
              },
              {
                "binary_name": "hashcat-data",
                "binary_version": "6.2.6+ds2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hashcat",
            "purl": "pkg:deb/ubuntu/hashcat?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "7.1.2+ds1-3",
            "7.1.2+ds1-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42482.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "hashcat",
                "binary_version": "7.1.2+ds1-4"
              },
              {
                "binary_name": "hashcat-data",
                "binary_version": "7.1.2+ds1-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hashcat",
            "purl": "pkg:deb/ubuntu/hashcat?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "6.2.6+ds2-1",
            "7.1.2+ds1-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42482.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "hashcat",
                "binary_version": "7.1.2+ds1-3"
              },
              {
                "binary_name": "hashcat-data",
                "binary_version": "7.1.2+ds1-3"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:05.175904177Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-42482"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-42482",
        "https://www.cve.org/CVERecord?id=CVE-2026-42482",
        "https://gist.github.com/sgInnora/107f2eb20367e47d58c911e38d56a91f"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-42482",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360290,
  "published_at": "2026-05-01T14:16:00+00:00"
}