{
  "id": "cve-2025-58050",
  "title": "PCRE2 regular-expression matching out-of-bounds read with (*scs:) and (*ACCEPT)",
  "product": "PCRE2",
  "ai_system": "Google Big Sleep",
  "organization": "Google DeepMind / Google Project Zero",
  "summary": "In PCRE2 10.45, a regex combining (*scs:...) with (*ACCEPT) can leave end_subject and true_end_subject set to the end of the scanned substring when the assertion succeeds immediately. A later operation such as a backreference performs a bounds check using the shortened pointer; subtraction can underflow and allow memcmp to read beyond the subject buffer. An attacker-controlled regex pattern is required; crafted subject text alone cannot trigger the issue. PCRE2 10.44 and earlier are not affected. The maintainer says the issue could have denial-of-service or information-disclosure implications, but does not claim either was observed.",
  "ai_role": "The PCRE2 maintainer advisory embeds the original Google Big Sleep report and explicitly identifies the case by BIGSLEEP-438254142. Google Project Zero describes Big Sleep as a large-language-model-assisted vulnerability research agent developed with Google DeepMind and Project Zero. These sources establish system-level AI attribution for this exact issue; they do not state a specific model/version or private discovery date.",
  "disclosure_date": "2025-08-27",
  "ai_attribution_date": "2025-08-27",
  "classification": "disclosure",
  "classification_note": "The maintainer advisory is the public disclosure; it does not establish whether defenders knew of the issue or whether it was exploited before disclosure.",
  "cves": [
    "CVE-2025-58050"
  ],
  "source_url": "https://github.com/PCRE2Project/pcre2/security/advisories/GHSA-c2gv-xgf5-5cc2",
  "ai_source_url": "https://github.com/PCRE2Project/pcre2/security/advisories/GHSA-c2gv-xgf5-5cc2",
  "advisory_url": "https://github.com/PCRE2Project/pcre2/security/advisories/GHSA-c2gv-xgf5-5cc2",
  "remediation": "fix documented",
  "remediation_note": "PCRE2 10.46, released 2025-08-27 as a security-only release, fixes the issue. The maintainer says only 10.45 is affected and 10.44 and earlier are unaffected. Release status does not establish downstream deployment.",
  "checked_date": "2026-11-16",
  "cvss": [
    {
      "cve": "CVE-2025-58050",
      "version": "4.0",
      "score": 6.9,
      "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:L/SI:N/SA:L",
      "source_url": "https://github.com/PCRE2Project/pcre2/security/advisories/GHSA-c2gv-xgf5-5cc2",
      "source_name": "PCRE2 GitHub Security Advisory (original Big Sleep report)",
      "checked_date": "2026-11-16"
    }
  ],
  "impacts": [
    {
      "cves": [
        "CVE-2025-58050"
      ],
      "consequences": [
        "denial of service",
        "data disclosure"
      ],
      "conditions": "Requires an attacker-controlled regex pattern combining (*scs:...) and (*ACCEPT), followed by an operation such as a backreference that uses the corrupted match boundary. Crafted subject text alone is insufficient. The maintainer says the read could have denial-of-service or information-disclosure implications; no observed downstream consequence is reported.",
      "exploitation": "The source documents an out-of-bounds read and a proof-of-concept/ASan report; it does not report exploitation in the wild.",
      "source_url": "https://github.com/PCRE2Project/pcre2/security/advisories/GHSA-c2gv-xgf5-5cc2",
      "checked_date": "2026-11-16"
    }
  ]
}
