Skip to content
Heist/ feed
Back to feed
High

Apache::API::Password versions through 0.5.2 for Perl can generate insecure random values for salts

Type: advisorySources: OSV

Apache::API::Password versions through 0.5.2 for Perl can generate insecure random values for salts. The _make_salt and _make_salt_bcrypt methods will attept to load Crypt::URandom and then Bytes::Random::Secure to generate random bytes for the salt. If those modules are unavailable, it will simply return 16 bytes generated with Perl's built-in rand function. The rand function is unsuitable for cryptographic use. These salts are used for password hashing.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-5088
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:38 UTC · Revision 1

Source evidence

Apache::API::Password versions through 0.5.2 for Perl can generate insecure random values for salts

core-osv · Original source

Published 15 Apr 2026, 07:03 UTC

Apache::API::Password versions through 0.5.2 for Perl can generate insecure random values for salts. The _make_salt and _make_salt_bcrypt methods will attept to load Crypt::URandom and then Bytes::Random::Secure to generate random bytes for the salt. If those modules are unavailable, it will simply return 16 bytes generated with Perl's built-in rand function. The rand function is unsuitable for cryptographic use. These salts are used for password hashing.

osv:CVE-2026-5088
Complete source record
{
  "id": "90528ba7a29b93f0ef06d109e03f8b7119669617b9baf319d5438f1d611a50c3",
  "url": "https://osv.dev/vulnerability/CVE-2026-5088",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Apache::API::Password versions through 0.5.2 for Perl can generate insecure random values for salts",
    "summary": "Apache::API::Password versions through 0.5.2 for Perl can generate insecure random values for salts. The _make_salt and _make_salt_bcrypt methods will attept to load Crypt::URandom and then Bytes::Random::Secure to generate random bytes for the salt. If those modules are unavailable, it will simply return 16 bytes generated with Perl's built-in rand function. The rand function is unsuitable for cryptographic use. These salts are used for password hashing.",
    "evidence": "osv:CVE-2026-5088",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-5088",
      "aliases": [
        "CVE-2026-5088"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://gitlab.com/deguest/Apache2-API",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "5d60bbd0de4d45d507c5ce586cc2667080d14aa3"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.5.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.5.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-5088.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.659979765Z",
      "provider": "osv",
      "references": [
        "https://cpan.org/modules",
        "https://metacpan.org/pod/Crypt::URandom",
        "https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.2/view/lib/Apache2/API/Password.pod",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5088.json",
        "https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.3/changes",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-5088",
        "https://gitlab.com/jackdeguest/Apache2-API",
        "https://security.metacpan.org/docs/guides/random-data-for-security.html"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-338"
        ],
        "cna_assigner": "CPANSec",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5088.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-5088",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504781,
  "published_at": "2026-04-15T07:03:13.742+00:00"
}