Vulnerability in libsocket-perl
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as DEBIAN-CVE-2026-12087 has been found in libsocket-perl.
Confidential information can be exposed externally.
What to do: upgrade libsocket-perl to 2.038-1+deb13u1 or later.
If unsure, ask your IT team or search "libsocket-perl DEBIAN-CVE-2026-12087" on the vendor's site.
DEBIAN-CVE-2026-12087 (libsocket-perl)
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Patched: 2.038-1+deb13u1 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (unclassified) exists in libsocket-perl.
Check the vendor advisory for the affected versions of libsocket-perl.
Severity: ?. Confidential information can be exposed externally.
Update to 2.038-1+deb13u1.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'libsocket-perl' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'libsocket-perl' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
libsocket-perlを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade libsocket-perl to 2.038-1+deb13u1ステージング環境で 2.038-1+deb13u1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Debian:12libsocket-perl |
All versions→ Not listed |
Not listed |
| Debian:13libsocket-perl |
< 2.038-1+deb13u1→ 2.038-1+deb13u1 |
2.038-1+deb13u1 |
| Debian:14libsocket-perl |
< 2.041-1→ 2.041-1 |
2.041-1 |
| Debian:12perl |
< 5.36.0-7+deb12u4→ 5.36.0-7+deb12u4 |
5.36.0-7+deb12u4 |
| Debian:13perl |
< 5.40.1-6+deb13u1→ 5.40.1-6+deb13u1 |
5.40.1-6+deb13u1 |
| Debian:14perl |
< 5.42.3-1→ 5.42.3-1 |
5.42.3-1 |
Original description The description as published by the source.
Socket versions before 2.041 for Perl have an out-of-bounds heap read. In 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. Calling pack_ip_mreq_source() with a source value shorter than 4 bytes copies adjacent heap memory into the returned packed structure.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security-tracker.debian.org