Skip to content
Heist/ feed
Back to feed
High

libapache-sessionx-perl — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-40932

Apache::SessionX versions through 2.01 for Perl create insecure session id. Apache::SessionX generates session ids insecurely. The default session id generator in Apache::SessionX::Generate::MD5 returns a MD5 hash seeded with the built-in rand() function, the epoch time, and the PID. 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. Predicable session ids could allow an attacker to gain access to systems.

Products
libapache-sessionx-perl
Affected versions
2.01-4, 2.01-5, 2.01-6, 2.01-7, 2.01-8
Fixed versions
Not specified
CVEs
CVE-2025-40932
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:28 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-40932

core-osv · Original source

Published 27 Feb 2026, 00:16 UTC

Apache::SessionX versions through 2.01 for Perl create insecure session id. Apache::SessionX generates session ids insecurely. The default session id generator in Apache::SessionX::Generate::MD5 returns a MD5 hash seeded with the built-in rand() function, the epoch time, and the PID. 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. Predicable session ids could allow an attacker to gain access to systems.

osv:UBUNTU-CVE-2025-40932

libapache-sessionx-perl

Fixed versions: Not specified

libapache-sessionx-perl

Fixed versions: Not specified

libapache-sessionx-perl

Fixed versions: Not specified

libapache-sessionx-perl

Fixed versions: Not specified

libapache-sessionx-perl

Fixed versions: Not specified

libapache-sessionx-perl

Fixed versions: Not specified

libapache-sessionx-perl

Fixed versions: Not specified

libapache-sessionx-perl

Fixed versions: Not specified

Complete source record
{
  "id": "0affd12d549b4bea8100911ad92417824d03811caf44c47602c1c970fb71e847",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-40932",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-40932",
    "summary": "Apache::SessionX versions through 2.01 for Perl create insecure session id. Apache::SessionX generates session ids insecurely. The default session id generator in Apache::SessionX::Generate::MD5 returns a MD5 hash seeded with the built-in rand() function, the epoch time, and the PID. 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. Predicable session ids could allow an attacker to gain access to systems.",
    "evidence": "osv:UBUNTU-CVE-2025-40932",
    "products": [
      {
        "name": {
          "value": "libapache-sessionx-perl",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.01-4",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libapache-sessionx-perl",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.01-4",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libapache-sessionx-perl",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.01-5",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libapache-sessionx-perl",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.01-5",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libapache-sessionx-perl",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.01-5",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.01-6",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libapache-sessionx-perl",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.01-6",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libapache-sessionx-perl",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.01-6",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "2.01-7",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "2.01-8",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libapache-sessionx-perl",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.01-6",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2025-40932",
      "aliases": [
        "UBUNTU-CVE-2025-40932"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache-sessionx-perl",
            "purl": "pkg:deb/ubuntu/libapache-sessionx-perl?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "2.01-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40932.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-sessionx-perl",
                "binary_version": "2.01-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache-sessionx-perl",
            "purl": "pkg:deb/ubuntu/libapache-sessionx-perl?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "2.01-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40932.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-sessionx-perl",
                "binary_version": "2.01-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache-sessionx-perl",
            "purl": "pkg:deb/ubuntu/libapache-sessionx-perl?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "2.01-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40932.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-sessionx-perl",
                "binary_version": "2.01-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache-sessionx-perl",
            "purl": "pkg:deb/ubuntu/libapache-sessionx-perl?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.01-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40932.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-sessionx-perl",
                "binary_version": "2.01-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache-sessionx-perl",
            "purl": "pkg:deb/ubuntu/libapache-sessionx-perl?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.01-5",
            "2.01-6"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40932.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-sessionx-perl",
                "binary_version": "2.01-6"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache-sessionx-perl",
            "purl": "pkg:deb/ubuntu/libapache-sessionx-perl?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.01-6"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40932.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-sessionx-perl",
                "binary_version": "2.01-6"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache-sessionx-perl",
            "purl": "pkg:deb/ubuntu/libapache-sessionx-perl?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.01-6",
            "2.01-7",
            "2.01-8"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40932.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-sessionx-perl",
                "binary_version": "2.01-8"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache-sessionx-perl",
            "purl": "pkg:deb/ubuntu/libapache-sessionx-perl?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.01-6"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40932.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-sessionx-perl",
                "binary_version": "2.01-6"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:51.561591981Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-40932"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-40932",
        "https://www.cve.org/CVERecord?id=CVE-2025-40932",
        "https://lists.security.metacpan.org/cve-announce/msg/37425045/",
        "https://metacpan.org/release/GRICHTER/Apache-SessionX-2.01/source/SessionX/Generate/MD5.pm#L29"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-40932",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356471,
  "published_at": "2026-02-27T00:16:00+00:00"
}