Skip to content
This page tracks the Alpine Linux fix status. The vulnerability itself is described on the main CVE page. View CVE-2026-40199 →
Unrated

Vulnerability in perl-net-cidr-lite

ALPINE-CVE-2026-40199 First seen on SecPulse

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 ALPINE-CVE-2026-40199 has been found in perl-net-cidr-lite.
Risk of unauthorized operations or information disclosure.
What to do: upgrade perl-net-cidr-lite to 0.23-r0 or later.
If unsure, ask your IT team or search "perl-net-cidr-lite ALPINE-CVE-2026-40199" on the vendor's site.

ALPINE-CVE-2026-40199 (perl-net-cidr-lite)
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Patched: 0.23-r0 — 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.

What is the problem

A vulnerability (unclassified) exists in perl-net-cidr-lite.

Affected scope

Check the vendor advisory for the affected versions of perl-net-cidr-lite.

Severity

Severity: ?. Risk of unauthorized operations or information disclosure.

How to fix

Update to 0.23-r0.

Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'perl-net-cidr-lite' . 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. 1
    Identify exposureidentify
    grep -r 'perl-net-cidr-lite' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で perl-net-cidr-lite を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply patchpatch
    Upgrade perl-net-cidr-lite to 0.23-r0

    ステージング環境で 0.23-r0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
Alpine:v3.21perl-net-cidr-lite
< 0.23-r0→ 0.23-r0
Alpine:v3.22perl-net-cidr-lite
< 0.23-r0→ 0.23-r0
Alpine:v3.23perl-net-cidr-lite
< 0.23-r0→ 0.23-r0
Alpine:v3.24perl-net-cidr-lite
< 0.23-r0→ 0.23-r0
Original description The description as published by the source.

Net::CIDR::Lite versions before 0.23 for Perl mishandles IPv4 mapped IPv6 addresses, which may allow IP ACL bypass.

_pack_ipv6() includes the sentinel byte from _pack_ipv4() when building the packed representation of IPv4 mapped addresses like ::ffff:192.168.1.1. This produces an 18 byte value instead of 17 bytes, misaligning the IPv4 part of the address.

The wrong length causes incorrect results in mask operations (bitwise AND truncates to the shorter operand) and in find() / bin_find() which use Perl string comparison (lt/gt). This can cause find() to incorrectly match or miss addresses.

Example:

my $cidr = Net::CIDR::Lite->new("::ffff:192.168.1.0/120");
$cidr->find("::ffff:192.168.2.0"); # incorrectly returns true

This is triggered by valid RFC 4291 IPv4 mapped addresses (::ffff:x.x.x.x).

See also CVE-2026-40198, a related issue in the same function affecting malformed IPv6 addresses.

Source: OSV.dev (Open Source Vulnerabilities) OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details