AZL-116665: CVE-2026-40558 affecting package libnet 1.2-2

Published Nov 29, 2026
·
Updated

Net::FTP versions before 3.17 for Perl connect the passive data channel to the address named in the server's PASV reply.

The pasv method uses the IP address from the server's 227 reply for the data connection and never compares it with the control connection's peer.

A malicious FTP server can make the client open TCP connections to arbitrary hosts and ports, including internal addresses reachable only from the client.

Affected Software

1 affected component
azure-linux/libnet<=1.2-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.17

Event History

Nov 29, 2026
Advisory Published
via OSV·11:17 PM
Data Sourced
via OSV·11:17 PM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Which deployments are exposed?

Applications using Net::FTP versions earlier than 3.17 are exposed when they connect to an FTP server that can provide a malicious PASV response.

2

What does an attacker need to exploit this issue?

The attacker needs to control, or otherwise cause the client to connect to, an FTP server that returns a crafted 227 PASV reply. The client will use the address in that reply for the passive data connection without verifying that it matches the control connection peer.

3

What can a successful exploit reach?

A malicious server can cause the client to initiate TCP connections to arbitrary hosts and ports, including internal addresses that are reachable from the client but not from the attacker.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203