{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-12087 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-12087 is a critical memory corruption vulnerability in PEVANS Socket, published on 15 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-12087 and fix it if it is affected.\n\nWhat it is: CVE-2026-12087 is a critical memory corruption vulnerability in PEVANS Socket, published on 15 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-12087 in the wild and no public exploit code.\n\nAffected product: PEVANS Socket. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-12087/ (Markdown: https://insights.sbomify.com/CVE-2026-12087/index.md)","id":"CVE-2026-12087","markdown":"https://insights.sbomify.com/CVE-2026-12087/index.md","name":"CVE-2026-12087","record":{"aliases":["AZL-90156","DEBIAN-CVE-2026-12087","ECHO-31e4-d78e-2b62","GHSA-q5cv-5vf6-95gp","MGASA-2026-0251","OESA-2026-2843","OESA-2026-2844","OESA-2026-2845","OESA-2026-2846","RHSA-2026:11342","ROOT-OS-DEBIAN-11-CVE-2026-12087","UBUNTU-CVE-2026-12087"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Perl Socket library","requires_auth":"none","summary":"An out-of-bounds heap read in the Perl Socket library allows attackers to disclose adjacent memory contents by providing a short source address.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"CPANSec","cpe":[],"cvss":{"score":9.1,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-805","name":"Buffer Access with Incorrect Length Value"},{"id":"CWE-125","name":"Out-of-bounds Read"}],"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.","ecosystems":["Red Hat:hummingbird:1"],"exploits":{"exploitdb":0,"first_seen":"2026-08-24","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-08-24T03:02:26Z","kind":"github_poc","ref":"https://github.com/gduma-phData/patch-CVE-2026-12087","stars":0,"title":"Patch: Heap overflow in SSL-VPN (Fortinet FortiOS)"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Socket versions before 2.041 for Perl have an out-of-bounds heap read","id":"CVE-2026-12087","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"WS Optimize – All-in-One Speed Booster \u0026 Cache Tools \u003c= 3.3.19 - Authenticated (Editor+) Arbitrary File Read","id":"CVE-2026-12089"},"packages":[{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:2.041-1.hum1"],"introduced":["0"],"last_affected":[],"package":"perl-Socket","purl":"pkg:rpm/redhat/perl-Socket","source":"RHSA-2026:11342"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:2.041-1.hum1"],"introduced":["0"],"last_affected":[],"package":"perl-Socket-tests","purl":"pkg:rpm/redhat/perl-Socket-tests","source":"RHSA-2026:11342"}],"prev":{"headline":"Information disclosure in UCD - IBM DevOps Deploy","id":"CVE-2026-12086"},"products":["Socket"],"published":"2026-06-15","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-16","vendors":["PEVANS"]},"summary":"An out-of-bounds heap read in the Perl Socket library allows attackers to disclose adjacent memory contents by providing a short source address.","url":"https://insights.sbomify.com/CVE-2026-12087/"}