{
  "id": "CVE-2026-12087",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-12087",
  "published_at": "2026-06-15T21:11:09.876Z",
  "title": "Socket versions before 2.041 for Perl have an out-of-bounds heap read",
  "vendor": "PEVANS",
  "product": "Socket",
  "cvss": {
    "score": 9.1,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Socket versions before 2.041 for Perl have an out-of-bounds heap read.\n\nIn Socket.xs, pack_ip_mreq_source() checks the length of its source argument before the argument is read, so the check tests the byte length carried over from the preceding multiaddr argument instead. Both addresses occupy a 4-byte field, so a valid multiaddr lets a source of any length pass the check, and the source is then copied into the 4-byte imr_sourceaddr field with a fixed-size copy. A source shorter than 4 bytes is not rejected, and the copy reads up to 3 bytes past the end of its buffer.\n\nCalling pack_ip_mreq_source() with a source value shorter than 4 bytes copies adjacent heap memory into the returned packed structure.",
  "cwe": "CWE-125",
  "cvss_by_source": {
    "cisa-adp": 9.1
  },
  "repos": [
    {
      "repo": "gduma-phData/patch-CVE-2026-12087",
      "url": "https://github.com/gduma-phData/patch-CVE-2026-12087",
      "created_at": "2026-08-24T03:02:26Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "detection",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-11-13T20:03:11Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "PEVANS",
        "product": "Socket",
        "ranges": [
          "\u003c 2.041"
        ],
        "fixed_in": [
          "2.041"
        ]
      }
    ],
    "solutions": [
      "Upgrade to version 2.041 or later."
    ],
    "upgrade": [
      "Upgrade Socket to 2.041 or later."
    ],
    "references": [
      {
        "kind": "Release notes",
        "url": "https://metacpan.org/release/PEVANS/Socket-2.041/changes"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/Perl/perl5/commit/de19a0b0ad1900fef976c5c1400bd8f11ec6c6cb.patch"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
