libauthen-sasl-perl — security advisory
Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl generates the cnonce insecurely. The cnonce (client nonce) is generated from an MD5 hash of the PID, the epoch time and the built-in rand function. The PID will come from a small set of numbers, and the epoch time may be guessed, if it is not leaked from the HTTP Date header. The built-in rand function is unsuitable for cryptographic usage. According to RFC 2831, The cnonce-value is an opaque quoted string value provided by the client and used by both client and server to avoid chosen plaintext attacks, and to provide mutual authentication. The security of the implementation depends on a good choice. It is RECOMMENDED that it contain at least 64 bits of entropy.
- Products
- libauthen-sasl-perl
- Affected versions
- 2.1500-1, 2.1500-1ubuntu0.1~esm1, 2.1600-1, 2.1600-1.1, 2.1600-1.1ubuntu0.1, 2.1600-1ubuntu0.16.04.1~esm1, 2.1600-1ubuntu0.18.04.1~esm1, 2.1600-1ubuntu0.20.04.1~esm1, 2.1600-3, 2.1700-1, 2.1700-1ubuntu0.1, 2.2000-1, 2.2000-1ubuntu0.1, 2.2000-1ubuntu1
- Fixed versions
- Not specified
- CVEs
- CVE-2025-40918
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:28 UTC · Revision 1
Source evidence
Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl generates the cnonce insecurely. The cnonce (client nonce) is generated from an MD5 hash of the PID, the epoch time and the built-in rand function. The PID will come from a small set of numbers, and the epoch time may be guessed, if it is not leaked from the HTTP Date header. The built-in rand function is unsuitable for cryptographic usage. According to RFC 2831, The cnonce-value is an opaque quoted string value provided by the client and used by both client and server to avoid chosen plaintext attacks, and to provide mutual authentication. The security of the implementation depends on a good choice. It is RECOMMENDED that it contain at least 64 bits of entropy.
osv:UBUNTU-CVE-2025-40918
libauthen-sasl-perl
Fixed versions: Not specified
libauthen-sasl-perl
Fixed versions: Not specified
libauthen-sasl-perl
Fixed versions: Not specified
libauthen-sasl-perl
Fixed versions: Not specified
libauthen-sasl-perl
Fixed versions: Not specified
libauthen-sasl-perl
Fixed versions: Not specified
libauthen-sasl-perl
Fixed versions: Not specified
libauthen-sasl-perl
Fixed versions: Not specified
libauthen-sasl-perl
Fixed versions: Not specified
Complete source record
{
"id": "e142ceb0b8e2f3c4a1c7059019a81dbb57d7b6b092fb1c5efa7cc5bba7daabd4",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-40918",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2025-40918",
"summary": "Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl generates the cnonce insecurely. The cnonce (client nonce) is generated from an MD5 hash of the PID, the epoch time and the built-in rand function. The PID will come from a small set of numbers, and the epoch time may be guessed, if it is not leaked from the HTTP Date header. The built-in rand function is unsuitable for cryptographic usage. According to RFC 2831, The cnonce-value is an opaque quoted string value provided by the client and used by both client and server to avoid chosen plaintext attacks, and to provide mutual authentication. The security of the implementation depends on a good choice. It is RECOMMENDED that it contain at least 64 bits of entropy.",
"evidence": "osv:UBUNTU-CVE-2025-40918",
"products": [
{
"name": {
"value": "libauthen-sasl-perl",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.1500-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.1500-1ubuntu0.1~esm1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "libauthen-sasl-perl",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.1600-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.1600-1ubuntu0.16.04.1~esm1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "libauthen-sasl-perl",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.1600-1",
"evidence": "/affected/2/versions"
},
{
"value": "2.1600-1ubuntu0.18.04.1~esm1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "libauthen-sasl-perl",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.1600-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.1600-1ubuntu0.20.04.1~esm1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "libauthen-sasl-perl",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.1600-1.1",
"evidence": "/affected/4/versions"
},
{
"value": "2.1600-1.1ubuntu0.1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "libauthen-sasl-perl",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.1600-3",
"evidence": "/affected/5/versions"
},
{
"value": "2.1700-1",
"evidence": "/affected/5/versions"
},
{
"value": "2.1700-1ubuntu0.1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "libauthen-sasl-perl",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.1700-1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "libauthen-sasl-perl",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.2000-1",
"evidence": "/affected/7/versions"
},
{
"value": "2.2000-1ubuntu1",
"evidence": "/affected/7/versions"
}
]
},
{
"name": {
"value": "libauthen-sasl-perl",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.1700-1",
"evidence": "/affected/8/versions"
},
{
"value": "2.2000-1",
"evidence": "/affected/8/versions"
},
{
"value": "2.2000-1ubuntu0.1",
"evidence": "/affected/8/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2025-40918",
"aliases": [
"UBUNTU-CVE-2025-40918"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
},
{
"type": "Ubuntu",
"score": "low"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libauthen-sasl-perl",
"purl": "pkg:deb/ubuntu/libauthen-sasl-perl?arch=source&distro=esm-infra-legacy%2Ftrusty",
"ecosystem": "Ubuntu:Pro:14.04:LTS"
},
"versions": [
"2.1500-1",
"2.1500-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40918.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libauthen-sasl-perl",
"binary_version": "2.1500-1ubuntu0.1~esm1"
}
],
"priority_reason": "Vulnerability in obsolete SASL mechanism"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libauthen-sasl-perl",
"purl": "pkg:deb/ubuntu/libauthen-sasl-perl?arch=source&distro=esm-infra-legacy%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"versions": [
"2.1600-1",
"2.1600-1ubuntu0.16.04.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40918.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libauthen-sasl-perl",
"binary_version": "2.1600-1ubuntu0.16.04.1~esm1"
}
],
"priority_reason": "Vulnerability in obsolete SASL mechanism"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libauthen-sasl-perl",
"purl": "pkg:deb/ubuntu/libauthen-sasl-perl?arch=source&distro=esm-infra%2Fbionic",
"ecosystem": "Ubuntu:Pro:18.04:LTS"
},
"versions": [
"2.1600-1",
"2.1600-1ubuntu0.18.04.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40918.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libauthen-sasl-perl",
"binary_version": "2.1600-1ubuntu0.18.04.1~esm1"
}
],
"priority_reason": "Vulnerability in obsolete SASL mechanism"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libauthen-sasl-perl",
"purl": "pkg:deb/ubuntu/libauthen-sasl-perl?arch=source&distro=esm-infra%2Ffocal",
"ecosystem": "Ubuntu:Pro:20.04:LTS"
},
"versions": [
"2.1600-1",
"2.1600-1ubuntu0.20.04.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40918.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libauthen-sasl-perl",
"binary_version": "2.1600-1ubuntu0.20.04.1~esm1"
}
],
"priority_reason": "Vulnerability in obsolete SASL mechanism"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libauthen-sasl-perl",
"purl": "pkg:deb/ubuntu/libauthen-sasl-perl?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2.1600-1.1",
"2.1600-1.1ubuntu0.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40918.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libauthen-sasl-perl",
"binary_version": "2.1600-1.1ubuntu0.1"
}
],
"priority_reason": "Vulnerability in obsolete SASL mechanism"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libauthen-sasl-perl",
"purl": "pkg:deb/ubuntu/libauthen-sasl-perl?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.1600-3",
"2.1700-1",
"2.1700-1ubuntu0.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40918.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libauthen-sasl-perl",
"binary_version": "2.1700-1ubuntu0.1"
}
],
"priority_reason": "Vulnerability in obsolete SASL mechanism"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libauthen-sasl-perl",
"purl": "pkg:deb/ubuntu/libauthen-sasl-perl?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.1700-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40918.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libauthen-sasl-perl",
"binary_version": "2.1700-1"
}
],
"priority_reason": "Vulnerability in obsolete SASL mechanism"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libauthen-sasl-perl",
"purl": "pkg:deb/ubuntu/libauthen-sasl-perl?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.2000-1",
"2.2000-1ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40918.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libauthen-sasl-perl",
"binary_version": "2.2000-1ubuntu1"
}
],
"priority_reason": "Vulnerability in obsolete SASL mechanism"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libauthen-sasl-perl",
"purl": "pkg:deb/ubuntu/libauthen-sasl-perl?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.1700-1",
"2.2000-1",
"2.2000-1ubuntu0.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40918.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libauthen-sasl-perl",
"binary_version": "2.2000-1ubuntu0.1"
}
],
"priority_reason": "Vulnerability in obsolete SASL mechanism"
}
}
],
"modified": "2026-10-17T12:56:51.051032816Z",
"provider": "osv",
"upstream": [
"CVE-2025-40918"
],
"references": [
"https://ubuntu.com/security/CVE-2025-40918",
"https://www.cve.org/CVERecord?id=CVE-2025-40918",
"https://lists.security.metacpan.org/cve-announce/msg/31224910/",
"https://datatracker.ietf.org/doc/html/rfc2831",
"https://metacpan.org/dist/Authen-SASL/source/lib/Authen/SASL/Perl/DIGEST_MD5.pm#L263"
]
},
"related_cves": [
{
"value": "CVE-2025-40918",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 356460,
"published_at": "2025-07-16T14:15:00+00:00"
}